Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/life-sciences

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/life-sciences - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

22

build/protos/protos.json

@@ -770,3 +770,4 @@ {

"IMMUTABLE": 5,
"UNORDERED_LIST": 6
"UNORDERED_LIST": 6,
"NON_EMPTY_DEFAULT": 7
}

@@ -1354,2 +1355,14 @@ },

[
4,
4
],
[
5,
5
],
[
6,
6
],
[
8,

@@ -1391,2 +1404,9 @@ 8

},
"unverifiedLazy": {
"type": "bool",
"id": 15,
"options": {
"default": false
}
},
"deprecated": {

@@ -1393,0 +1413,0 @@ "type": "bool",

2

build/src/v2beta/index.js
"use strict";
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -101,2 +101,51 @@ import * as gax from 'google-gax';

getProjectId(callback: Callback<string, undefined, undefined>): void;
/**
* Runs a pipeline. The returned Operation's [metadata]
* [google.longrunning.Operation.metadata] field will contain a
* {@link google.cloud.lifesciences.v2beta.Metadata|google.cloud.lifesciences.v2beta.Metadata} object describing the status
* of the pipeline execution. The
* {@link google.longrunning.Operation.response|response} field will contain a
* {@link google.cloud.lifesciences.v2beta.RunPipelineResponse|google.cloud.lifesciences.v2beta.RunPipelineResponse} object if the
* pipeline completes successfully.
*
* **Note:** Before you can use this method, the *Life Sciences Service Agent*
* must have access to your project. This is done automatically when the
* Cloud Life Sciences API is first enabled, but if you delete this permission
* you must disable and re-enable the API to grant the Life Sciences
* Service Agent the required permissions.
* Authorization requires the following [Google
* IAM](https://cloud.google.com/iam/) permission:
*
* * `lifesciences.workflows.run`
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* The project and location that this request should be executed against.
* @param {google.cloud.lifesciences.v2beta.Pipeline} request.pipeline
* Required. The description of the pipeline to run.
* @param {number[]} request.labels
* User-defined labels to associate with the returned operation. These
* labels are not propagated to any Google Cloud Platform resources used by
* the operation, and can be modified at any time.
*
* To associate labels with resources created while executing the operation,
* see the appropriate resource message (for example, `VirtualMachine`).
* @param {string} request.pubSubTopic
* The name of an existing Pub/Sub topic. The server will publish
* messages to this topic whenever the status of the operation changes.
* The Life Sciences Service Agent account must have publisher permissions to
* the specified topic or notifications will not be sent.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example <caption>include:samples/generated/v2beta/workflows_service_v2_beta.run_pipeline.js</caption>
* region_tag:lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_async
*/
runPipeline(request?: protos.google.cloud.lifesciences.v2beta.IRunPipelineRequest, options?: CallOptions): Promise<[

@@ -118,7 +167,4 @@ LROperation<protos.google.cloud.lifesciences.v2beta.IRunPipelineResponse, protos.google.cloud.lifesciences.v2beta.IMetadata>,

* for more details and examples.
* @example
* const decodedOperation = await checkRunPipelineProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v2beta/workflows_service_v2_beta.run_pipeline.js</caption>
* region_tag:lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_async
*/

@@ -125,0 +171,0 @@ checkRunPipelineProgress(name: string): Promise<LROperation<protos.google.cloud.lifesciences.v2beta.RunPipelineResponse, protos.google.cloud.lifesciences.v2beta.Metadata>>;

"use strict";
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//

@@ -237,52 +237,2 @@ // Licensed under the Apache License, Version 2.0 (the "License");

}
/**
* Runs a pipeline. The returned Operation's [metadata]
* [google.longrunning.Operation.metadata] field will contain a
* {@link google.cloud.lifesciences.v2beta.Metadata|google.cloud.lifesciences.v2beta.Metadata} object describing the status
* of the pipeline execution. The
* {@link google.longrunning.Operation.response|response} field will contain a
* {@link google.cloud.lifesciences.v2beta.RunPipelineResponse|google.cloud.lifesciences.v2beta.RunPipelineResponse} object if the
* pipeline completes successfully.
*
* **Note:** Before you can use this method, the *Life Sciences Service Agent*
* must have access to your project. This is done automatically when the
* Cloud Life Sciences API is first enabled, but if you delete this permission
* you must disable and re-enable the API to grant the Life Sciences
* Service Agent the required permissions.
* Authorization requires the following [Google
* IAM](https://cloud.google.com/iam/) permission:
*
* * `lifesciences.workflows.run`
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* The project and location that this request should be executed against.
* @param {google.cloud.lifesciences.v2beta.Pipeline} request.pipeline
* Required. The description of the pipeline to run.
* @param {number[]} request.labels
* User-defined labels to associate with the returned operation. These
* labels are not propagated to any Google Cloud Platform resources used by
* the operation, and can be modified at any time.
*
* To associate labels with resources created while executing the operation,
* see the appropriate resource message (for example, `VirtualMachine`).
* @param {string} request.pubSubTopic
* The name of an existing Pub/Sub topic. The server will publish
* messages to this topic whenever the status of the operation changes.
* The Life Sciences Service Agent account must have publisher permissions to
* the specified topic or notifications will not be sent.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing
* a long running operation. Its `promise()` method returns a promise
* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* for more details and examples.
* @example
* const [operation] = await client.runPipeline(request);
* const [response] = await operation.promise();
*/
runPipeline(request, optionsOrCallback, callback) {

@@ -317,7 +267,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkRunPipelineProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v2beta/workflows_service_v2_beta.run_pipeline.js</caption>
* region_tag:lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_async
*/

@@ -337,4 +284,3 @@ async checkRunPipelineProgress(name) {

close() {
this.initialize();
if (!this._terminated) {
if (this.workflowsServiceV2BetaStub && !this._terminated) {
return this.workflowsServiceV2BetaStub.then(stub => {

@@ -341,0 +287,0 @@ this._terminated = true;

# Changelog
## [2.0.0](https://github.com/googleapis/nodejs-life-sciences/compare/v1.1.1...v2.0.0) (2022-05-19)
### ⚠ BREAKING CHANGES
* update library to use Node 12 (#77)
### Build System
* update library to use Node 12 ([#77](https://github.com/googleapis/nodejs-life-sciences/issues/77)) ([3130af4](https://github.com/googleapis/nodejs-life-sciences/commit/3130af44cc9e8d0b98daef92a828a96cbea874c1))
### [1.1.1](https://www.github.com/googleapis/nodejs-life-sciences/compare/v1.1.0...v1.1.1) (2021-09-08)

@@ -4,0 +15,0 @@

{
"name": "@google-cloud/life-sciences",
"version": "1.1.1",
"version": "2.0.0",
"description": "lifesciences client for Node.js",

@@ -42,7 +42,7 @@ "repository": "googleapis/nodejs-life-sciences",

"dependencies": {
"google-gax": "^2.24.1"
"google-gax": "^3.0.1"
},
"devDependencies": {
"@types/mocha": "^9.0.0",
"@types/node": "^14.14.44",
"@types/node": "^16.0.0",
"@types/sinon": "^10.0.0",

@@ -55,8 +55,8 @@ "c8": "^7.7.2",

"linkinator": "^2.13.6",
"mocha": "^9.0.0",
"mocha": "^9.2.2",
"null-loader": "^4.0.1",
"pack-n-play": "^1.0.0-2",
"sinon": "^11.0.0",
"sinon": "^14.0.0",
"ts-loader": "^9.1.2",
"typescript": "^4.2.4",
"typescript": "^4.6.4",
"webpack": "^5.36.2",

@@ -66,4 +66,4 @@ "webpack-cli": "^4.7.0"

"engines": {
"node": ">=v10.0.0"
"node": ">=12.0.0"
}
}

@@ -7,5 +7,4 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/life-sciences.svg)](https://www.npmjs.org/package/@google-cloud/life-sciences)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-life-sciences/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-life-sciences)

@@ -103,27 +102,33 @@

Node.js.
If you are using an end-of-life version of Node.js, we recommend that you update
as soon as possible to an actively supported LTS version.
Google's client libraries support legacy versions of Node.js runtimes on a
best-efforts basis with the following warnings:
* Legacy versions are not tested in continuous integration.
* Some security patches and features cannot be backported.
* Dependencies cannot be kept up-to-date.
Client libraries targeting some end-of-life versions of Node.js are available, and
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
The dist-tags follow the naming convention `legacy-(version)`.
For example, `npm install @google-cloud/life-sciences@legacy-8` installs client libraries
for versions compatible with Node.js 8.
_Legacy Node.js versions are supported as a best effort:_
## Versioning
* Legacy versions will not be tested in continuous integration.
* Some security patches may not be able to be backported.
* Dependencies will not be kept up-to-date, and features will not be backported.
This library follows [Semantic Versioning](http://semver.org/).
#### Legacy tags available
* `legacy-8`: install client libraries from this dist-tag for versions
compatible with Node.js 8.
## Versioning
This library follows [Semantic Versioning](http://semver.org/).
This library is considered to be in **preview**. This means it is still a
work-in-progress and under active development. Any release is subject to
backwards-incompatible changes at any time.
More Information: [Google Cloud Platform Launch Stages][launch_stages]

@@ -130,0 +135,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc