Socket
Socket
Sign inDemoInstall

googleapis

Package Overview
Dependencies
43
Maintainers
2
Versions
254
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 125.0.0 to 126.0.0

2

build/src/apis/assuredworkloads/v1.d.ts

@@ -171,3 +171,3 @@ /// <reference types="node" />

/**
* Workload monitoring Violation. Next Id: 27
* Workload monitoring Violation. Next Id: 28
*/

@@ -174,0 +174,0 @@ export interface Schema$GoogleCloudAssuredworkloadsV1Violation {

@@ -72,3 +72,2 @@ /// <reference types="node" />

organizations: Resource$Organizations;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);

@@ -242,3 +241,3 @@ }

/**
* Workload monitoring Violation. Next Id: 27
* Workload monitoring Violation. Next Id: 28
*/

@@ -800,2 +799,16 @@ export interface Schema$GoogleCloudAssuredworkloadsV1beta1Violation {

/**
* Analyzes a hypothetical move of a source resource to a target(destination) folder-based workload to surface compliance risks.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
analyzeWorkloadMove(params: Params$Resource$Organizations$Locations$Workloads$Analyzeworkloadmove, options: StreamMethodOptions): GaxiosPromise<Readable>;
analyzeWorkloadMove(params?: Params$Resource$Organizations$Locations$Workloads$Analyzeworkloadmove, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>;
analyzeWorkloadMove(params: Params$Resource$Organizations$Locations$Workloads$Analyzeworkloadmove, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
analyzeWorkloadMove(params: Params$Resource$Organizations$Locations$Workloads$Analyzeworkloadmove, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>): void;
analyzeWorkloadMove(params: Params$Resource$Organizations$Locations$Workloads$Analyzeworkloadmove, callback: BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>): void;
analyzeWorkloadMove(callback: BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>): void;
/**
* Creates Assured Workload.

@@ -899,2 +912,28 @@ *

}
export interface Params$Resource$Organizations$Locations$Workloads$Analyzeworkloadmove extends StandardParameters {
/**
* Optional. Indicates if all child assets of the source resource should also be analyzed in addition to the source.
*/
analyzeChildAssets?: boolean;
/**
* Optional. Page size. If a value is not specified, the default value of 10 is used.
*/
pageSize?: number;
/**
* Optional. The page token from the previous response. It needs to be passed in the second and following requests.
*/
pageToken?: string;
/**
* The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: "projects/{PROJECT_NUMBER\}" or "projects/{PROJECT_ID\}" For example: "projects/951040570662" when specifying a project number, or "projects/my-project-123" when specifying a project ID.
*/
project?: string;
/**
* The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: "organizations/{ORGANIZATION_ID\}/locations/{LOCATION_ID\}/workloads/{WORKLOAD_ID\}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-1" This option is now deprecated.
*/
source?: string;
/**
* Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: "organizations/{ORGANIZATION_ID\}/locations/{LOCATION_ID\}/workloads/{WORKLOAD_ID\}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-2"
*/
target?: string;
}
export interface Params$Resource$Organizations$Locations$Workloads$Create extends StandardParameters {

@@ -1066,62 +1105,3 @@ /**

}
export class Resource$Projects {
context: APIRequestContext;
organizations: Resource$Projects$Organizations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Organizations {
context: APIRequestContext;
locations: Resource$Projects$Organizations$Locations;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Organizations$Locations {
context: APIRequestContext;
workloads: Resource$Projects$Organizations$Locations$Workloads;
constructor(context: APIRequestContext);
}
export class Resource$Projects$Organizations$Locations$Workloads {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* Analyzes a hypothetical move of a source resource to a target(destination) folder-based workload to surface compliance risks.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
analyzeWorkloadMove(params: Params$Resource$Projects$Organizations$Locations$Workloads$Analyzeworkloadmove, options: StreamMethodOptions): GaxiosPromise<Readable>;
analyzeWorkloadMove(params?: Params$Resource$Projects$Organizations$Locations$Workloads$Analyzeworkloadmove, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>;
analyzeWorkloadMove(params: Params$Resource$Projects$Organizations$Locations$Workloads$Analyzeworkloadmove, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
analyzeWorkloadMove(params: Params$Resource$Projects$Organizations$Locations$Workloads$Analyzeworkloadmove, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>, callback: BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>): void;
analyzeWorkloadMove(params: Params$Resource$Projects$Organizations$Locations$Workloads$Analyzeworkloadmove, callback: BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>): void;
analyzeWorkloadMove(callback: BodyResponseCallback<Schema$GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse>): void;
}
export interface Params$Resource$Projects$Organizations$Locations$Workloads$Analyzeworkloadmove extends StandardParameters {
/**
* Optional. Indicates if all child assets of the source resource should also be analyzed in addition to the source.
*/
analyzeChildAssets?: boolean;
/**
* Optional. Page size. If a value is not specified, the default value of 10 is used.
*/
pageSize?: number;
/**
* Optional. The page token from the previous response. It needs to be passed in the second and following requests.
*/
pageToken?: string;
/**
* The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: "projects/{PROJECT_NUMBER\}" or "projects/{PROJECT_ID\}" For example: "projects/951040570662" when specifying a project number, or "projects/my-project-123" when specifying a project ID.
*/
project?: string;
/**
* The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: "organizations/{ORGANIZATION_ID\}/locations/{LOCATION_ID\}/workloads/{WORKLOAD_ID\}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-1" This option is now deprecated.
*/
source?: string;
/**
* Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: "organizations/{ORGANIZATION_ID\}/locations/{LOCATION_ID\}/workloads/{WORKLOAD_ID\}" For example: "organizations/123/locations/us-east1/workloads/assured-workload-2"
*/
target?: string;
}
export {};
}

@@ -42,3 +42,2 @@ "use strict";

this.organizations = new Resource$Organizations(this.context);
this.projects = new Resource$Projects(this.context);
}

@@ -136,2 +135,34 @@ }

}
analyzeWorkloadMove(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['target'],
pathParams: ['target'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
create(paramsOrCallback, optionsOrCallback, callback) {

@@ -460,61 +491,2 @@ let params = (paramsOrCallback ||

assuredworkloads_v1beta1.Resource$Organizations$Locations$Workloads$Violations = Resource$Organizations$Locations$Workloads$Violations;
class Resource$Projects {
constructor(context) {
this.context = context;
this.organizations = new Resource$Projects$Organizations(this.context);
}
}
assuredworkloads_v1beta1.Resource$Projects = Resource$Projects;
class Resource$Projects$Organizations {
constructor(context) {
this.context = context;
this.locations = new Resource$Projects$Organizations$Locations(this.context);
}
}
assuredworkloads_v1beta1.Resource$Projects$Organizations = Resource$Projects$Organizations;
class Resource$Projects$Organizations$Locations {
constructor(context) {
this.context = context;
this.workloads = new Resource$Projects$Organizations$Locations$Workloads(this.context);
}
}
assuredworkloads_v1beta1.Resource$Projects$Organizations$Locations = Resource$Projects$Organizations$Locations;
class Resource$Projects$Organizations$Locations$Workloads {
constructor(context) {
this.context = context;
}
analyzeWorkloadMove(paramsOrCallback, optionsOrCallback, callback) {
let params = (paramsOrCallback ||
{});
let options = (optionsOrCallback || {});
if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{};
options = {};
}
if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}
const rootUrl = options.rootUrl || 'https://assuredworkloads.googleapis.com/';
const parameters = {
options: Object.assign({
url: (rootUrl + '/v1beta1/{+project}/{+target}:analyzeWorkloadMove').replace(/([^:]\/)\/+/g, '$1'),
method: 'GET',
}, options),
params,
requiredParams: ['project', 'target'],
pathParams: ['project', 'target'],
context: this.context,
};
if (callback) {
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
}
else {
return (0, googleapis_common_1.createAPIRequest)(parameters);
}
}
}
assuredworkloads_v1beta1.Resource$Projects$Organizations$Locations$Workloads = Resource$Projects$Organizations$Locations$Workloads;
})(assuredworkloads_v1beta1 || (exports.assuredworkloads_v1beta1 = assuredworkloads_v1beta1 = {}));

@@ -314,3 +314,3 @@ /// <reference types="node" />

/**
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*/

@@ -317,0 +317,0 @@ response?: {

@@ -95,3 +95,3 @@ /// <reference types="node" />

/**
* Maximum throughput of the connector in Mbps. Default is 300, max is 1000. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput.
* Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
*/

@@ -104,3 +104,3 @@ maxThroughput?: number | null;

/**
* Minimum throughput of the connector in Mbps. Default and min is 200. If both min-throughput and min-instances are provided, min-instances takes precedence over min-throughput.
* Minimum throughput of the connector in Mbps. Default and min is 200.
*/

@@ -216,3 +216,3 @@ minThroughput?: number | null;

/**
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*/

@@ -441,3 +441,3 @@ response?: {

/**
* Required. The project id and location in which the configuration should be created, specified in the format `projects/x/locations/x`.
* Required. The project and location in which the configuration should be created, specified in the format `projects/x/locations/x`.
*/

@@ -444,0 +444,0 @@ parent?: string;

{
"name": "googleapis",
"version": "125.0.0",
"version": "126.0.0",
"repository": "googleapis/google-api-nodejs-client",

@@ -5,0 +5,0 @@ "license": "Apache-2.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 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 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 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 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 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 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 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 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 too big to display

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc