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

@google-cloud/assured-workloads

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/assured-workloads - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

141

build/src/v1/assured_workloads_service_client.d.ts

@@ -105,11 +105,108 @@ /// <reference types="node" />

getProjectId(callback: Callback<string, undefined, undefined>): void;
/**
* Updates an existing workload.
* Currently allows updating of workload display_name and labels.
* For force updates don't set etag field in the Workload.
* Only one update operation per workload can be in progress.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.assuredworkloads.v1.Workload} request.workload
* Required. The workload to update.
* The workload’s `name` field is used to identify the workload to be updated.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {google.protobuf.FieldMask} request.updateMask
* Required. The list of fields to be updated.
* @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 [Workload]{@link google.cloud.assuredworkloads.v1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1/assured_workloads_service.update_workload.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_UpdateWorkload_async
*/
updateWorkload(request?: protos.google.cloud.assuredworkloads.v1.IUpdateWorkloadRequest, options?: CallOptions): Promise<[protos.google.cloud.assuredworkloads.v1.IWorkload, (protos.google.cloud.assuredworkloads.v1.IUpdateWorkloadRequest | undefined), {} | undefined]>;
updateWorkload(request: protos.google.cloud.assuredworkloads.v1.IUpdateWorkloadRequest, options: CallOptions, callback: Callback<protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.IUpdateWorkloadRequest | null | undefined, {} | null | undefined>): void;
updateWorkload(request: protos.google.cloud.assuredworkloads.v1.IUpdateWorkloadRequest, callback: Callback<protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.IUpdateWorkloadRequest | null | undefined, {} | null | undefined>): void;
/**
* Deletes the workload. Make sure that workload's direct children are already
* in a deleted state, otherwise the request will fail with a
* FAILED_PRECONDITION error.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The `name` field is used to identify the workload.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {string} [request.etag]
* Optional. The etag of the workload.
* If this is provided, it must match the server's etag.
* @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 [Empty]{@link google.protobuf.Empty}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1/assured_workloads_service.delete_workload.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_DeleteWorkload_async
*/
deleteWorkload(request?: protos.google.cloud.assuredworkloads.v1.IDeleteWorkloadRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, (protos.google.cloud.assuredworkloads.v1.IDeleteWorkloadRequest | undefined), {} | undefined]>;
deleteWorkload(request: protos.google.cloud.assuredworkloads.v1.IDeleteWorkloadRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.assuredworkloads.v1.IDeleteWorkloadRequest | null | undefined, {} | null | undefined>): void;
deleteWorkload(request: protos.google.cloud.assuredworkloads.v1.IDeleteWorkloadRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.assuredworkloads.v1.IDeleteWorkloadRequest | null | undefined, {} | null | undefined>): void;
/**
* Gets Assured Workload associated with a CRM Node
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The resource name of the Workload to fetch. This is the
* workloads's relative path in the API, formatted as
* "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
* For example,
* "organizations/123/locations/us-east1/workloads/assured-workload-1".
* @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 [Workload]{@link google.cloud.assuredworkloads.v1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1/assured_workloads_service.get_workload.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_GetWorkload_async
*/
getWorkload(request?: protos.google.cloud.assuredworkloads.v1.IGetWorkloadRequest, options?: CallOptions): Promise<[protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.IGetWorkloadRequest | undefined, {} | undefined]>;
getWorkload(request: protos.google.cloud.assuredworkloads.v1.IGetWorkloadRequest, options: CallOptions, callback: Callback<protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.IGetWorkloadRequest | null | undefined, {} | null | undefined>): void;
getWorkload(request: protos.google.cloud.assuredworkloads.v1.IGetWorkloadRequest, callback: Callback<protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.IGetWorkloadRequest | null | undefined, {} | null | undefined>): void;
/**
* Creates Assured Workload.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource name of the new Workload's parent.
* Must be of the form `organizations/{org_id}/locations/{location_id}`.
* @param {google.cloud.assuredworkloads.v1.Workload} request.workload
* Required. Assured Workload to create
* @param {string} [request.externalId]
* Optional. A identifier associated with the workload and underlying projects
* which allows for the break down of billing costs for a workload. The value
* provided for the identifier will add a label to the workload and contained
* projects with the identifier as the value.
* @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/v1/assured_workloads_service.create_workload.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_CreateWorkload_async
*/
createWorkload(request?: protos.google.cloud.assuredworkloads.v1.ICreateWorkloadRequest, options?: CallOptions): Promise<[LROperation<protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.ICreateWorkloadOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;

@@ -127,9 +224,36 @@ createWorkload(request: protos.google.cloud.assuredworkloads.v1.ICreateWorkloadRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.assuredworkloads.v1.IWorkload, protos.google.cloud.assuredworkloads.v1.ICreateWorkloadOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;

* for more details and examples.
* @example
* const decodedOperation = await checkCreateWorkloadProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/assured_workloads_service.create_workload.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_CreateWorkload_async
*/
checkCreateWorkloadProgress(name: string): Promise<LROperation<protos.google.cloud.assuredworkloads.v1.Workload, protos.google.cloud.assuredworkloads.v1.CreateWorkloadOperationMetadata>>;
/**
* Lists Assured Workloads under a CRM Node.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. Parent Resource to list workloads from.
* Must be of the form `organizations/{org_id}/locations/{location}`.
* @param {number} request.pageSize
* Page size.
* @param {string} request.pageToken
* Page token returned from previous request. Page token contains context from
* previous request. Page token needs to be passed in the second and following
* requests.
* @param {string} request.filter
* A custom filter for filtering by properties of a workload. At this time,
* only filtering by labels is supported.
* @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 Array of [Workload]{@link google.cloud.assuredworkloads.v1.Workload}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listWorkloadsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listWorkloads(request?: protos.google.cloud.assuredworkloads.v1.IListWorkloadsRequest, options?: CallOptions): Promise<[protos.google.cloud.assuredworkloads.v1.IWorkload[], protos.google.cloud.assuredworkloads.v1.IListWorkloadsRequest | null, protos.google.cloud.assuredworkloads.v1.IListWorkloadsResponse]>;

@@ -195,7 +319,4 @@ listWorkloads(request: protos.google.cloud.assuredworkloads.v1.IListWorkloadsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.assuredworkloads.v1.IListWorkloadsRequest, protos.google.cloud.assuredworkloads.v1.IListWorkloadsResponse | null | undefined, protos.google.cloud.assuredworkloads.v1.IWorkload>): void;

* for more details and examples.
* @example
* const iterable = client.listWorkloadsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1/assured_workloads_service.list_workloads.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_ListWorkloads_async
*/

@@ -202,0 +323,0 @@ listWorkloadsAsync(request?: protos.google.cloud.assuredworkloads.v1.IListWorkloadsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.assuredworkloads.v1.IWorkload>;

149

build/src/v1/assured_workloads_service_client.js

@@ -258,27 +258,2 @@ "use strict";

}
/**
* Updates an existing workload.
* Currently allows updating of workload display_name and labels.
* For force updates don't set etag field in the Workload.
* Only one update operation per workload can be in progress.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.assuredworkloads.v1.Workload} request.workload
* Required. The workload to update.
* The workload’s `name` field is used to identify the workload to be updated.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {google.protobuf.FieldMask} request.updateMask
* Required. The list of fields to be updated.
* @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 [Workload]{@link google.cloud.assuredworkloads.v1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.updateWorkload(request);
*/
updateWorkload(request, optionsOrCallback, callback) {

@@ -304,26 +279,2 @@ request = request || {};

}
/**
* Deletes the workload. Make sure that workload's direct children are already
* in a deleted state, otherwise the request will fail with a
* FAILED_PRECONDITION error.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The `name` field is used to identify the workload.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {string} [request.etag]
* Optional. The etag of the workload.
* If this is provided, it must match the server's etag.
* @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 [Empty]{@link google.protobuf.Empty}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.deleteWorkload(request);
*/
deleteWorkload(request, optionsOrCallback, callback) {

@@ -349,23 +300,2 @@ request = request || {};

}
/**
* Gets Assured Workload associated with a CRM Node
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The resource name of the Workload to fetch. This is the workloads's
* relative path in the API, formatted as
* "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
* For example,
* "organizations/123/locations/us-east1/workloads/assured-workload-1".
* @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 [Workload]{@link google.cloud.assuredworkloads.v1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.getWorkload(request);
*/
getWorkload(request, optionsOrCallback, callback) {

@@ -391,30 +321,2 @@ request = request || {};

}
/**
* Creates Assured Workload.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource name of the new Workload's parent.
* Must be of the form `organizations/{org_id}/locations/{location_id}`.
* @param {google.cloud.assuredworkloads.v1.Workload} request.workload
* Required. Assured Workload to create
* @param {string} [request.externalId]
* Optional. A identifier associated with the workload and underlying projects which
* allows for the break down of billing costs for a workload. The value
* provided for the identifier will add a label to the workload and contained
* projects with the identifier as the value.
* @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.createWorkload(request);
* const [response] = await operation.promise();
*/
createWorkload(request, optionsOrCallback, callback) {

@@ -449,7 +351,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkCreateWorkloadProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1/assured_workloads_service.create_workload.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_CreateWorkload_async
*/

@@ -462,32 +361,2 @@ async checkCreateWorkloadProgress(name) {

}
/**
* Lists Assured Workloads under a CRM Node.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. Parent Resource to list workloads from.
* Must be of the form `organizations/{org_id}/locations/{location}`.
* @param {number} request.pageSize
* Page size.
* @param {string} request.pageToken
* Page token returned from previous request. Page token contains context from
* previous request. Page token needs to be passed in the second and following
* requests.
* @param {string} request.filter
* A custom filter for filtering by properties of a workload. At this time,
* only filtering by labels is supported.
* @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 Array of [Workload]{@link google.cloud.assuredworkloads.v1.Workload}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listWorkloadsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listWorkloads(request, optionsOrCallback, callback) {

@@ -550,3 +419,4 @@ request = request || {};

});
const callSettings = new gax.CallSettings(options);
const defaultCallSettings = this._defaults['listWorkloads'];
const callSettings = defaultCallSettings.merge(options);
this.initialize();

@@ -583,7 +453,4 @@ return this.descriptors.page.listWorkloads.createStream(this.innerApiCalls.listWorkloads, request, callSettings);

* for more details and examples.
* @example
* const iterable = client.listWorkloadsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1/assured_workloads_service.list_workloads.js</caption>
* region_tag:assuredworkloads_v1_generated_AssuredWorkloadsService_ListWorkloads_async
*/

@@ -599,4 +466,4 @@ listWorkloadsAsync(request, options) {

});
options = options || {};
const callSettings = new gax.CallSettings(options);
const defaultCallSettings = this._defaults['listWorkloads'];
const callSettings = defaultCallSettings.merge(options);
this.initialize();

@@ -603,0 +470,0 @@ return this.descriptors.page.listWorkloads.asyncIterate(this.innerApiCalls['listWorkloads'], request, callSettings);

@@ -105,11 +105,108 @@ /// <reference types="node" />

getProjectId(callback: Callback<string, undefined, undefined>): void;
/**
* Updates an existing workload.
* Currently allows updating of workload display_name and labels.
* For force updates don't set etag field in the Workload.
* Only one update operation per workload can be in progress.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.assuredworkloads.v1beta1.Workload} request.workload
* Required. The workload to update.
* The workload’s `name` field is used to identify the workload to be updated.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {google.protobuf.FieldMask} request.updateMask
* Required. The list of fields to be updated.
* @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 [Workload]{@link google.cloud.assuredworkloads.v1beta1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.update_workload.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_UpdateWorkload_async
*/
updateWorkload(request?: protos.google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest, options?: CallOptions): Promise<[protos.google.cloud.assuredworkloads.v1beta1.IWorkload, (protos.google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest | undefined), {} | undefined]>;
updateWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest, options: CallOptions, callback: Callback<protos.google.cloud.assuredworkloads.v1beta1.IWorkload, protos.google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest | null | undefined, {} | null | undefined>): void;
updateWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest, callback: Callback<protos.google.cloud.assuredworkloads.v1beta1.IWorkload, protos.google.cloud.assuredworkloads.v1beta1.IUpdateWorkloadRequest | null | undefined, {} | null | undefined>): void;
/**
* Deletes the workload. Make sure that workload's direct children are already
* in a deleted state, otherwise the request will fail with a
* FAILED_PRECONDITION error.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The `name` field is used to identify the workload.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {string} [request.etag]
* Optional. The etag of the workload.
* If this is provided, it must match the server's etag.
* @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 [Empty]{@link google.protobuf.Empty}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.delete_workload.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_DeleteWorkload_async
*/
deleteWorkload(request?: protos.google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, (protos.google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest | undefined), {} | undefined]>;
deleteWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest | null | undefined, {} | null | undefined>): void;
deleteWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.assuredworkloads.v1beta1.IDeleteWorkloadRequest | null | undefined, {} | null | undefined>): void;
/**
* Gets Assured Workload associated with a CRM Node
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The resource name of the Workload to fetch. This is the
* workloads's relative path in the API, formatted as
* "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
* For example,
* "organizations/123/locations/us-east1/workloads/assured-workload-1".
* @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 [Workload]{@link google.cloud.assuredworkloads.v1beta1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.get_workload.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_GetWorkload_async
*/
getWorkload(request?: protos.google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest, options?: CallOptions): Promise<[protos.google.cloud.assuredworkloads.v1beta1.IWorkload, (protos.google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest | undefined), {} | undefined]>;
getWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest, options: CallOptions, callback: Callback<protos.google.cloud.assuredworkloads.v1beta1.IWorkload, protos.google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest | null | undefined, {} | null | undefined>): void;
getWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest, callback: Callback<protos.google.cloud.assuredworkloads.v1beta1.IWorkload, protos.google.cloud.assuredworkloads.v1beta1.IGetWorkloadRequest | null | undefined, {} | null | undefined>): void;
/**
* Creates Assured Workload.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource name of the new Workload's parent.
* Must be of the form `organizations/{org_id}/locations/{location_id}`.
* @param {google.cloud.assuredworkloads.v1beta1.Workload} request.workload
* Required. Assured Workload to create
* @param {string} [request.externalId]
* Optional. A identifier associated with the workload and underlying projects
* which allows for the break down of billing costs for a workload. The value
* provided for the identifier will add a label to the workload and contained
* projects with the identifier as the value.
* @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/v1beta1/assured_workloads_service.create_workload.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_async
*/
createWorkload(request?: protos.google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest, options?: CallOptions): Promise<[LROperation<protos.google.cloud.assuredworkloads.v1beta1.IWorkload, protos.google.cloud.assuredworkloads.v1beta1.ICreateWorkloadOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;

@@ -127,9 +224,36 @@ createWorkload(request: protos.google.cloud.assuredworkloads.v1beta1.ICreateWorkloadRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.assuredworkloads.v1beta1.IWorkload, protos.google.cloud.assuredworkloads.v1beta1.ICreateWorkloadOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;

* for more details and examples.
* @example
* const decodedOperation = await checkCreateWorkloadProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.create_workload.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_async
*/
checkCreateWorkloadProgress(name: string): Promise<LROperation<protos.google.cloud.assuredworkloads.v1beta1.Workload, protos.google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata>>;
/**
* Lists Assured Workloads under a CRM Node.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. Parent Resource to list workloads from.
* Must be of the form `organizations/{org_id}/locations/{location}`.
* @param {number} request.pageSize
* Page size.
* @param {string} request.pageToken
* Page token returned from previous request. Page token contains context from
* previous request. Page token needs to be passed in the second and following
* requests.
* @param {string} request.filter
* A custom filter for filtering by properties of a workload. At this time,
* only filtering by labels is supported.
* @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 Array of [Workload]{@link google.cloud.assuredworkloads.v1beta1.Workload}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listWorkloadsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listWorkloads(request?: protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest, options?: CallOptions): Promise<[protos.google.cloud.assuredworkloads.v1beta1.IWorkload[], protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest | null, protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsResponse]>;

@@ -195,7 +319,4 @@ listWorkloads(request: protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest, protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsResponse | null | undefined, protos.google.cloud.assuredworkloads.v1beta1.IWorkload>): void;

* for more details and examples.
* @example
* const iterable = client.listWorkloadsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.list_workloads.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_ListWorkloads_async
*/

@@ -202,0 +323,0 @@ listWorkloadsAsync(request?: protos.google.cloud.assuredworkloads.v1beta1.IListWorkloadsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.assuredworkloads.v1beta1.IWorkload>;

@@ -258,27 +258,2 @@ "use strict";

}
/**
* Updates an existing workload.
* Currently allows updating of workload display_name and labels.
* For force updates don't set etag field in the Workload.
* Only one update operation per workload can be in progress.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.assuredworkloads.v1beta1.Workload} request.workload
* Required. The workload to update.
* The workload’s `name` field is used to identify the workload to be updated.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {google.protobuf.FieldMask} request.updateMask
* Required. The list of fields to be updated.
* @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 [Workload]{@link google.cloud.assuredworkloads.v1beta1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.updateWorkload(request);
*/
updateWorkload(request, optionsOrCallback, callback) {

@@ -304,26 +279,2 @@ request = request || {};

}
/**
* Deletes the workload. Make sure that workload's direct children are already
* in a deleted state, otherwise the request will fail with a
* FAILED_PRECONDITION error.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The `name` field is used to identify the workload.
* Format:
* organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @param {string} [request.etag]
* Optional. The etag of the workload.
* If this is provided, it must match the server's etag.
* @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 [Empty]{@link google.protobuf.Empty}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.deleteWorkload(request);
*/
deleteWorkload(request, optionsOrCallback, callback) {

@@ -349,23 +300,2 @@ request = request || {};

}
/**
* Gets Assured Workload associated with a CRM Node
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The resource name of the Workload to fetch. This is the workloads's
* relative path in the API, formatted as
* "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
* For example,
* "organizations/123/locations/us-east1/workloads/assured-workload-1".
* @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 [Workload]{@link google.cloud.assuredworkloads.v1beta1.Workload}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example
* const [response] = await client.getWorkload(request);
*/
getWorkload(request, optionsOrCallback, callback) {

@@ -391,30 +321,2 @@ request = request || {};

}
/**
* Creates Assured Workload.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. The resource name of the new Workload's parent.
* Must be of the form `organizations/{org_id}/locations/{location_id}`.
* @param {google.cloud.assuredworkloads.v1beta1.Workload} request.workload
* Required. Assured Workload to create
* @param {string} [request.externalId]
* Optional. A identifier associated with the workload and underlying projects which
* allows for the break down of billing costs for a workload. The value
* provided for the identifier will add a label to the workload and contained
* projects with the identifier as the value.
* @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.createWorkload(request);
* const [response] = await operation.promise();
*/
createWorkload(request, optionsOrCallback, callback) {

@@ -449,7 +351,4 @@ request = request || {};

* for more details and examples.
* @example
* const decodedOperation = await checkCreateWorkloadProgress(name);
* console.log(decodedOperation.result);
* console.log(decodedOperation.done);
* console.log(decodedOperation.metadata);
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.create_workload.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_async
*/

@@ -462,32 +361,2 @@ async checkCreateWorkloadProgress(name) {

}
/**
* Lists Assured Workloads under a CRM Node.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.parent
* Required. Parent Resource to list workloads from.
* Must be of the form `organizations/{org_id}/locations/{location}`.
* @param {number} request.pageSize
* Page size.
* @param {string} request.pageToken
* Page token returned from previous request. Page token contains context from
* previous request. Page token needs to be passed in the second and following
* requests.
* @param {string} request.filter
* A custom filter for filtering by properties of a workload. At this time,
* only filtering by labels is supported.
* @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 Array of [Workload]{@link google.cloud.assuredworkloads.v1beta1.Workload}.
* The client library will perform auto-pagination by default: it will call the API as many
* times as needed and will merge results from all the pages into this array.
* Note that it can affect your quota.
* We recommend using `listWorkloadsAsync()`
* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* for more details and examples.
*/
listWorkloads(request, optionsOrCallback, callback) {

@@ -550,3 +419,4 @@ request = request || {};

});
const callSettings = new gax.CallSettings(options);
const defaultCallSettings = this._defaults['listWorkloads'];
const callSettings = defaultCallSettings.merge(options);
this.initialize();

@@ -583,7 +453,4 @@ return this.descriptors.page.listWorkloads.createStream(this.innerApiCalls.listWorkloads, request, callSettings);

* for more details and examples.
* @example
* const iterable = client.listWorkloadsAsync(request);
* for await (const response of iterable) {
* // process response
* }
* @example <caption>include:samples/generated/v1beta1/assured_workloads_service.list_workloads.js</caption>
* region_tag:assuredworkloads_v1beta1_generated_AssuredWorkloadsService_ListWorkloads_async
*/

@@ -599,4 +466,4 @@ listWorkloadsAsync(request, options) {

});
options = options || {};
const callSettings = new gax.CallSettings(options);
const defaultCallSettings = this._defaults['listWorkloads'];
const callSettings = defaultCallSettings.merge(options);
this.initialize();

@@ -603,0 +470,0 @@ return this.descriptors.page.listWorkloads.asyncIterate(this.innerApiCalls['listWorkloads'], request, callSettings);

# Changelog
## [2.1.0](https://www.github.com/googleapis/nodejs-assured-workloads/compare/v2.0.0...v2.1.0) (2021-12-10)
### Features
* EU Regions and Support With Sovereign Controls ([#125](https://www.github.com/googleapis/nodejs-assured-workloads/issues/125)) ([29706fc](https://www.github.com/googleapis/nodejs-assured-workloads/commit/29706fc359d17fbb85af1d91fcdecf638be52a8a))
## [2.0.0](https://www.github.com/googleapis/nodejs-assured-workloads/compare/v1.8.0...v2.0.0) (2021-10-14)

@@ -4,0 +11,0 @@

{
"name": "@google-cloud/assured-workloads",
"version": "2.0.0",
"version": "2.1.0",
"description": "Assured Workloads client for Node.js",

@@ -46,3 +46,3 @@ "repository": "googleapis/nodejs-assured-workloads",

"@types/mocha": "^8.0.3",
"@types/node": "^14.6.1",
"@types/node": "^16.0.0",
"@types/sinon": "^10.0.0",

@@ -58,3 +58,3 @@ "c8": "^7.3.0",

"pack-n-play": "^1.0.0-2",
"sinon": "^11.0.0",
"sinon": "^12.0.0",
"ts-loader": "^9.0.0",

@@ -61,0 +61,0 @@ "typescript": "^3.9.7",

Sorry, the diff of this file is not supported yet

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 too big to display

Sorry, the diff of this file is not supported yet

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