@google-cloud/containeranalysis 3.2.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +17 -17
- package/build/protos/google/devtools/containeranalysis/v1/containeranalysis.proto +12 -18
- package/build/protos/grafeas/v1/attestation.proto +17 -0
- package/build/protos/grafeas/v1/build.proto +13 -1
- package/build/protos/grafeas/v1/common.proto +20 -2
- package/build/protos/grafeas/v1/compliance.proto +79 -0
- package/build/protos/grafeas/v1/cvss.proto +76 -0
- package/build/protos/grafeas/v1/discovery.proto +5 -0
- package/build/protos/grafeas/v1/dsse_attestation.proto +52 -0
- package/build/protos/grafeas/v1/grafeas.proto +13 -0
- package/build/protos/grafeas/v1/intoto_provenance.proto +113 -0
- package/build/protos/grafeas/v1/intoto_statement.proto +50 -0
- package/build/protos/grafeas/v1/package.proto +9 -1
- package/build/protos/grafeas/v1/severity.proto +38 -0
- package/build/protos/grafeas/v1/slsa_provenance.proto +114 -0
- package/build/protos/grafeas/v1/vulnerability.proto +31 -19
- package/build/protos/protos.d.ts +6876 -3889
- package/build/protos/protos.js +19779 -11905
- package/build/protos/protos.json +1078 -410
- package/build/src/v1/container_analysis_client.d.ts +133 -4
- package/build/src/v1/container_analysis_client.js +2 -110
- package/build/src/v1/container_analysis_client.js.map +1 -1
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +190 -11
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +8 -163
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +403 -30
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +20 -349
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/index.js +1 -0
- package/build/src/v1beta1/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -111,16 +111,145 @@ export declare class ContainerAnalysisClient {
|
|
|
111
111
|
static get scopes(): string[];
|
|
112
112
|
getProjectId(): Promise<string>;
|
|
113
113
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
114
|
-
|
|
114
|
+
/**
|
|
115
|
+
* Sets the access control policy on the specified note or occurrence.
|
|
116
|
+
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
117
|
+
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
118
|
+
* a note or an occurrence, respectively.
|
|
119
|
+
*
|
|
120
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
121
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
122
|
+
* occurrences.
|
|
123
|
+
*
|
|
124
|
+
* @param {Object} request
|
|
125
|
+
* The request object that will be sent.
|
|
126
|
+
* @param {string} request.resource
|
|
127
|
+
* REQUIRED: The resource for which the policy is being specified.
|
|
128
|
+
* See the operation documentation for the appropriate value for this field.
|
|
129
|
+
* @param {google.iam.v1.Policy} request.policy
|
|
130
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
131
|
+
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
132
|
+
* valid policy but certain Cloud Platform services (such as Projects)
|
|
133
|
+
* might reject them.
|
|
134
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
135
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
136
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
137
|
+
* following default mask is used:
|
|
138
|
+
*
|
|
139
|
+
* `paths: "bindings, etag"`
|
|
140
|
+
* @param {object} [options]
|
|
141
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
142
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
143
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
144
|
+
* Please see the
|
|
145
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
146
|
+
* for more details and examples.
|
|
147
|
+
* @example <caption>include:samples/generated/v1/container_analysis.set_iam_policy.js</caption>
|
|
148
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async
|
|
149
|
+
*/
|
|
150
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
151
|
+
protos.google.iam.v1.IPolicy,
|
|
152
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
153
|
+
{} | undefined
|
|
154
|
+
]>;
|
|
115
155
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
116
156
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
117
|
-
|
|
157
|
+
/**
|
|
158
|
+
* Gets the access control policy for a note or an occurrence resource.
|
|
159
|
+
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
160
|
+
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
161
|
+
* a note or occurrence, respectively.
|
|
162
|
+
*
|
|
163
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
164
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
165
|
+
* occurrences.
|
|
166
|
+
*
|
|
167
|
+
* @param {Object} request
|
|
168
|
+
* The request object that will be sent.
|
|
169
|
+
* @param {string} request.resource
|
|
170
|
+
* REQUIRED: The resource for which the policy is being requested.
|
|
171
|
+
* See the operation documentation for the appropriate value for this field.
|
|
172
|
+
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
173
|
+
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
174
|
+
* `GetIamPolicy`.
|
|
175
|
+
* @param {object} [options]
|
|
176
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
177
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
178
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
179
|
+
* Please see the
|
|
180
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
181
|
+
* for more details and examples.
|
|
182
|
+
* @example <caption>include:samples/generated/v1/container_analysis.get_iam_policy.js</caption>
|
|
183
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async
|
|
184
|
+
*/
|
|
185
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
186
|
+
protos.google.iam.v1.IPolicy,
|
|
187
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
188
|
+
{} | undefined
|
|
189
|
+
]>;
|
|
118
190
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
119
191
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
120
|
-
|
|
192
|
+
/**
|
|
193
|
+
* Returns the permissions that a caller has on the specified note or
|
|
194
|
+
* occurrence. Requires list permission on the project (for example,
|
|
195
|
+
* `containeranalysis.notes.list`).
|
|
196
|
+
*
|
|
197
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
198
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
199
|
+
* occurrences.
|
|
200
|
+
*
|
|
201
|
+
* @param {Object} request
|
|
202
|
+
* The request object that will be sent.
|
|
203
|
+
* @param {string} request.resource
|
|
204
|
+
* REQUIRED: The resource for which the policy detail is being requested.
|
|
205
|
+
* See the operation documentation for the appropriate value for this field.
|
|
206
|
+
* @param {string[]} request.permissions
|
|
207
|
+
* The set of permissions to check for the `resource`. Permissions with
|
|
208
|
+
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
209
|
+
* information see
|
|
210
|
+
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
211
|
+
* @param {object} [options]
|
|
212
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
213
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
214
|
+
* The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
|
|
215
|
+
* Please see the
|
|
216
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
217
|
+
* for more details and examples.
|
|
218
|
+
* @example <caption>include:samples/generated/v1/container_analysis.test_iam_permissions.js</caption>
|
|
219
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async
|
|
220
|
+
*/
|
|
221
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
222
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
223
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
224
|
+
{} | undefined
|
|
225
|
+
]>;
|
|
121
226
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
122
227
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
123
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Gets a summary of the number and severity of occurrences.
|
|
230
|
+
*
|
|
231
|
+
* @param {Object} request
|
|
232
|
+
* The request object that will be sent.
|
|
233
|
+
* @param {string} request.parent
|
|
234
|
+
* Required. The name of the project to get a vulnerability summary for in the form of
|
|
235
|
+
* `projects/[PROJECT_ID]`.
|
|
236
|
+
* @param {string} request.filter
|
|
237
|
+
* The filter expression.
|
|
238
|
+
* @param {object} [options]
|
|
239
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
240
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
241
|
+
* The first element of the array is an object representing [VulnerabilityOccurrencesSummary]{@link google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary}.
|
|
242
|
+
* Please see the
|
|
243
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
244
|
+
* for more details and examples.
|
|
245
|
+
* @example <caption>include:samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js</caption>
|
|
246
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async
|
|
247
|
+
*/
|
|
248
|
+
getVulnerabilityOccurrencesSummary(request?: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest, options?: CallOptions): Promise<[
|
|
249
|
+
protos.google.devtools.containeranalysis.v1.IVulnerabilityOccurrencesSummary,
|
|
250
|
+
(protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest | undefined),
|
|
251
|
+
{} | undefined
|
|
252
|
+
]>;
|
|
124
253
|
getVulnerabilityOccurrencesSummary(request: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest, options: CallOptions, callback: Callback<protos.google.devtools.containeranalysis.v1.IVulnerabilityOccurrencesSummary, protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
|
|
125
254
|
getVulnerabilityOccurrencesSummary(request: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest, callback: Callback<protos.google.devtools.containeranalysis.v1.IVulnerabilityOccurrencesSummary, protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
|
|
126
255
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2022 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -242,36 +242,6 @@ class ContainerAnalysisClient {
|
|
|
242
242
|
}
|
|
243
243
|
return this.auth.getProjectId();
|
|
244
244
|
}
|
|
245
|
-
/**
|
|
246
|
-
* Sets the access control policy on the specified note or occurrence.
|
|
247
|
-
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
248
|
-
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
249
|
-
* a note or an occurrence, respectively.
|
|
250
|
-
*
|
|
251
|
-
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
252
|
-
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
253
|
-
* occurrences.
|
|
254
|
-
*
|
|
255
|
-
* @param {Object} request
|
|
256
|
-
* The request object that will be sent.
|
|
257
|
-
* @param {string} request.resource
|
|
258
|
-
* REQUIRED: The resource for which the policy is being specified.
|
|
259
|
-
* See the operation documentation for the appropriate value for this field.
|
|
260
|
-
* @param {google.iam.v1.Policy} request.policy
|
|
261
|
-
* REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
262
|
-
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
263
|
-
* valid policy but certain Cloud Platform services (such as Projects)
|
|
264
|
-
* might reject them.
|
|
265
|
-
* @param {object} [options]
|
|
266
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
267
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
268
|
-
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
269
|
-
* Please see the
|
|
270
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
271
|
-
* for more details and examples.
|
|
272
|
-
* @example
|
|
273
|
-
* const [response] = await client.setIamPolicy(request);
|
|
274
|
-
*/
|
|
275
245
|
setIamPolicy(request, optionsOrCallback, callback) {
|
|
276
246
|
request = request || {};
|
|
277
247
|
let options;
|
|
@@ -292,34 +262,6 @@ class ContainerAnalysisClient {
|
|
|
292
262
|
this.initialize();
|
|
293
263
|
return this.innerApiCalls.setIamPolicy(request, options, callback);
|
|
294
264
|
}
|
|
295
|
-
/**
|
|
296
|
-
* Gets the access control policy for a note or an occurrence resource.
|
|
297
|
-
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
298
|
-
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
299
|
-
* a note or occurrence, respectively.
|
|
300
|
-
*
|
|
301
|
-
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
302
|
-
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
303
|
-
* occurrences.
|
|
304
|
-
*
|
|
305
|
-
* @param {Object} request
|
|
306
|
-
* The request object that will be sent.
|
|
307
|
-
* @param {string} request.resource
|
|
308
|
-
* REQUIRED: The resource for which the policy is being requested.
|
|
309
|
-
* See the operation documentation for the appropriate value for this field.
|
|
310
|
-
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
311
|
-
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
312
|
-
* `GetIamPolicy`. This field is only used by Cloud IAM.
|
|
313
|
-
* @param {object} [options]
|
|
314
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
315
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
316
|
-
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
317
|
-
* Please see the
|
|
318
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
319
|
-
* for more details and examples.
|
|
320
|
-
* @example
|
|
321
|
-
* const [response] = await client.getIamPolicy(request);
|
|
322
|
-
*/
|
|
323
265
|
getIamPolicy(request, optionsOrCallback, callback) {
|
|
324
266
|
request = request || {};
|
|
325
267
|
let options;
|
|
@@ -340,35 +282,6 @@ class ContainerAnalysisClient {
|
|
|
340
282
|
this.initialize();
|
|
341
283
|
return this.innerApiCalls.getIamPolicy(request, options, callback);
|
|
342
284
|
}
|
|
343
|
-
/**
|
|
344
|
-
* Returns the permissions that a caller has on the specified note or
|
|
345
|
-
* occurrence. Requires list permission on the project (for example,
|
|
346
|
-
* `containeranalysis.notes.list`).
|
|
347
|
-
*
|
|
348
|
-
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
349
|
-
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
350
|
-
* occurrences.
|
|
351
|
-
*
|
|
352
|
-
* @param {Object} request
|
|
353
|
-
* The request object that will be sent.
|
|
354
|
-
* @param {string} request.resource
|
|
355
|
-
* REQUIRED: The resource for which the policy detail is being requested.
|
|
356
|
-
* See the operation documentation for the appropriate value for this field.
|
|
357
|
-
* @param {string[]} request.permissions
|
|
358
|
-
* The set of permissions to check for the `resource`. Permissions with
|
|
359
|
-
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
360
|
-
* information see
|
|
361
|
-
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
362
|
-
* @param {object} [options]
|
|
363
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
364
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
365
|
-
* The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
|
|
366
|
-
* Please see the
|
|
367
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
368
|
-
* for more details and examples.
|
|
369
|
-
* @example
|
|
370
|
-
* const [response] = await client.testIamPermissions(request);
|
|
371
|
-
*/
|
|
372
285
|
testIamPermissions(request, optionsOrCallback, callback) {
|
|
373
286
|
request = request || {};
|
|
374
287
|
let options;
|
|
@@ -389,26 +302,6 @@ class ContainerAnalysisClient {
|
|
|
389
302
|
this.initialize();
|
|
390
303
|
return this.innerApiCalls.testIamPermissions(request, options, callback);
|
|
391
304
|
}
|
|
392
|
-
/**
|
|
393
|
-
* Gets a summary of the number and severity of occurrences.
|
|
394
|
-
*
|
|
395
|
-
* @param {Object} request
|
|
396
|
-
* The request object that will be sent.
|
|
397
|
-
* @param {string} request.parent
|
|
398
|
-
* The name of the project to get a vulnerability summary for in the form of
|
|
399
|
-
* `projects/[PROJECT_ID]`.
|
|
400
|
-
* @param {string} request.filter
|
|
401
|
-
* The filter expression.
|
|
402
|
-
* @param {object} [options]
|
|
403
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
404
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
405
|
-
* The first element of the array is an object representing [VulnerabilityOccurrencesSummary]{@link google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary}.
|
|
406
|
-
* Please see the
|
|
407
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
408
|
-
* for more details and examples.
|
|
409
|
-
* @example
|
|
410
|
-
* const [response] = await client.getVulnerabilityOccurrencesSummary(request);
|
|
411
|
-
*/
|
|
412
305
|
getVulnerabilityOccurrencesSummary(request, optionsOrCallback, callback) {
|
|
413
306
|
request = request || {};
|
|
414
307
|
let options;
|
|
@@ -528,8 +421,7 @@ class ContainerAnalysisClient {
|
|
|
528
421
|
* @returns {Promise} A promise that resolves when the client is closed.
|
|
529
422
|
*/
|
|
530
423
|
close() {
|
|
531
|
-
this.
|
|
532
|
-
if (!this._terminated) {
|
|
424
|
+
if (this.containerAnalysisStub && !this._terminated) {
|
|
533
425
|
return this.containerAnalysisStub.then(stub => {
|
|
534
426
|
this._terminated = true;
|
|
535
427
|
stub.close();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container_analysis_client.js","sourceRoot":"","sources":["../../../src/v1/container_analysis_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,mBAAmB;AACnB,kCAAkC;AAClC,mDAAoD;AAIpD,uDAAwD;AACxD;;;;GAIG;AACH,uEAAuE;AAEvE,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,uBAAuB;IAoBlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,YAAY,IAAoB;;QArDxB,gBAAW,GAAG,KAAK,CAAC;QAQ5B,gBAAW,GAAgB;YACzB,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb,CAAC;QAyCA,uDAAuD;QACvD,MAAM,aAAa,GAAG,IAAI,CAAC,WAA6C,CAAC;QACzE,MAAM,WAAW,GACf,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,MAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAA,IAAI,aAAa,CAAC,WAAW,CAAC;QACtE,IAAI,CAAC,0BAA0B,GAAG,CAAC,CAAC,CAClC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,MAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAA,CACvC,CAAC;QACF,MAAM,IAAI,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAI,aAAa,CAAC,IAAI,CAAC;QAC9C,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"container_analysis_client.js","sourceRoot":"","sources":["../../../src/v1/container_analysis_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,mBAAmB;AACnB,kCAAkC;AAClC,mDAAoD;AAIpD,uDAAwD;AACxD;;;;GAIG;AACH,uEAAuE;AAEvE,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,uBAAuB;IAoBlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,YAAY,IAAoB;;QArDxB,gBAAW,GAAG,KAAK,CAAC;QAQ5B,gBAAW,GAAgB;YACzB,IAAI,EAAE,EAAE;YACR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AAC,WAAmB;QAC7C,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,qBAAqB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnD,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;;;OAQG;IACH,gBAAgB;QACd,OAAO,IAAI,uBAAa,CAAC,IAAI,CAAC,KAAW,CAAC,CAAC;IAC7C,CAAC;CACF;AAxxBD,0DAwxBC"}
|
package/build/src/v1/index.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
|
18
18
|
// ** All changes to this file may be overwritten. **
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.ContainerAnalysisClient = void 0;
|
|
20
21
|
var container_analysis_client_1 = require("./container_analysis_client");
|
|
21
22
|
Object.defineProperty(exports, "ContainerAnalysisClient", { enumerable: true, get: function () { return container_analysis_client_1.ContainerAnalysisClient; } });
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,yEAAoE;AAA5D,oIAAA,uBAAuB,OAAA"}
|
|
@@ -113,22 +113,204 @@ export declare class ContainerAnalysisV1Beta1Client {
|
|
|
113
113
|
static get scopes(): string[];
|
|
114
114
|
getProjectId(): Promise<string>;
|
|
115
115
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
116
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Sets the access control policy on the specified note or occurrence.
|
|
118
|
+
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
119
|
+
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
120
|
+
* a note or an occurrence, respectively.
|
|
121
|
+
*
|
|
122
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
123
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
124
|
+
* occurrences.
|
|
125
|
+
*
|
|
126
|
+
* @param {Object} request
|
|
127
|
+
* The request object that will be sent.
|
|
128
|
+
* @param {string} request.resource
|
|
129
|
+
* REQUIRED: The resource for which the policy is being specified.
|
|
130
|
+
* See the operation documentation for the appropriate value for this field.
|
|
131
|
+
* @param {google.iam.v1.Policy} request.policy
|
|
132
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
133
|
+
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
134
|
+
* valid policy but certain Cloud Platform services (such as Projects)
|
|
135
|
+
* might reject them.
|
|
136
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
137
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
138
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
139
|
+
* following default mask is used:
|
|
140
|
+
*
|
|
141
|
+
* `paths: "bindings, etag"`
|
|
142
|
+
* @param {object} [options]
|
|
143
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
144
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
145
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
146
|
+
* Please see the
|
|
147
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
148
|
+
* for more details and examples.
|
|
149
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js</caption>
|
|
150
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_SetIamPolicy_async
|
|
151
|
+
*/
|
|
152
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
153
|
+
protos.google.iam.v1.IPolicy,
|
|
154
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
155
|
+
{} | undefined
|
|
156
|
+
]>;
|
|
117
157
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
118
158
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
119
|
-
|
|
159
|
+
/**
|
|
160
|
+
* Gets the access control policy for a note or an occurrence resource.
|
|
161
|
+
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
162
|
+
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
163
|
+
* a note or occurrence, respectively.
|
|
164
|
+
*
|
|
165
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
166
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
167
|
+
* occurrences.
|
|
168
|
+
*
|
|
169
|
+
* @param {Object} request
|
|
170
|
+
* The request object that will be sent.
|
|
171
|
+
* @param {string} request.resource
|
|
172
|
+
* REQUIRED: The resource for which the policy is being requested.
|
|
173
|
+
* See the operation documentation for the appropriate value for this field.
|
|
174
|
+
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
175
|
+
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
176
|
+
* `GetIamPolicy`.
|
|
177
|
+
* @param {object} [options]
|
|
178
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
179
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
180
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
181
|
+
* Please see the
|
|
182
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
183
|
+
* for more details and examples.
|
|
184
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js</caption>
|
|
185
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetIamPolicy_async
|
|
186
|
+
*/
|
|
187
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
188
|
+
protos.google.iam.v1.IPolicy,
|
|
189
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
190
|
+
{} | undefined
|
|
191
|
+
]>;
|
|
120
192
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
121
193
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
122
|
-
|
|
194
|
+
/**
|
|
195
|
+
* Returns the permissions that a caller has on the specified note or
|
|
196
|
+
* occurrence. Requires list permission on the project (for example,
|
|
197
|
+
* `containeranalysis.notes.list`).
|
|
198
|
+
*
|
|
199
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
200
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
201
|
+
* occurrences.
|
|
202
|
+
*
|
|
203
|
+
* @param {Object} request
|
|
204
|
+
* The request object that will be sent.
|
|
205
|
+
* @param {string} request.resource
|
|
206
|
+
* REQUIRED: The resource for which the policy detail is being requested.
|
|
207
|
+
* See the operation documentation for the appropriate value for this field.
|
|
208
|
+
* @param {string[]} request.permissions
|
|
209
|
+
* The set of permissions to check for the `resource`. Permissions with
|
|
210
|
+
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
211
|
+
* information see
|
|
212
|
+
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
213
|
+
* @param {object} [options]
|
|
214
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
215
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
216
|
+
* The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
|
|
217
|
+
* Please see the
|
|
218
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
219
|
+
* for more details and examples.
|
|
220
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js</caption>
|
|
221
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_TestIamPermissions_async
|
|
222
|
+
*/
|
|
223
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
224
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
225
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
226
|
+
{} | undefined
|
|
227
|
+
]>;
|
|
123
228
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
124
229
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
125
|
-
|
|
230
|
+
/**
|
|
231
|
+
* Gets the specified scan configuration.
|
|
232
|
+
*
|
|
233
|
+
* @param {Object} request
|
|
234
|
+
* The request object that will be sent.
|
|
235
|
+
* @param {string} request.name
|
|
236
|
+
* Required. The name of the scan configuration in the form of
|
|
237
|
+
* `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
238
|
+
* @param {object} [options]
|
|
239
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
240
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
241
|
+
* The first element of the array is an object representing [ScanConfig]{@link google.devtools.containeranalysis.v1beta1.ScanConfig}.
|
|
242
|
+
* Please see the
|
|
243
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
244
|
+
* for more details and examples.
|
|
245
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.get_scan_config.js</caption>
|
|
246
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetScanConfig_async
|
|
247
|
+
*/
|
|
248
|
+
getScanConfig(request?: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest, options?: CallOptions): Promise<[
|
|
249
|
+
protos.google.devtools.containeranalysis.v1beta1.IScanConfig,
|
|
250
|
+
(protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest | undefined),
|
|
251
|
+
{} | undefined
|
|
252
|
+
]>;
|
|
126
253
|
getScanConfig(request: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest, options: CallOptions, callback: Callback<protos.google.devtools.containeranalysis.v1beta1.IScanConfig, protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
127
254
|
getScanConfig(request: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest, callback: Callback<protos.google.devtools.containeranalysis.v1beta1.IScanConfig, protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
128
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Updates the specified scan configuration.
|
|
257
|
+
*
|
|
258
|
+
* @param {Object} request
|
|
259
|
+
* The request object that will be sent.
|
|
260
|
+
* @param {string} request.name
|
|
261
|
+
* Required. The name of the scan configuration in the form of
|
|
262
|
+
* `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
263
|
+
* @param {google.devtools.containeranalysis.v1beta1.ScanConfig} request.scanConfig
|
|
264
|
+
* Required. The updated scan configuration.
|
|
265
|
+
* @param {object} [options]
|
|
266
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
267
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
268
|
+
* The first element of the array is an object representing [ScanConfig]{@link google.devtools.containeranalysis.v1beta1.ScanConfig}.
|
|
269
|
+
* Please see the
|
|
270
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
271
|
+
* for more details and examples.
|
|
272
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.update_scan_config.js</caption>
|
|
273
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_UpdateScanConfig_async
|
|
274
|
+
*/
|
|
275
|
+
updateScanConfig(request?: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest, options?: CallOptions): Promise<[
|
|
276
|
+
protos.google.devtools.containeranalysis.v1beta1.IScanConfig,
|
|
277
|
+
(protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest | undefined),
|
|
278
|
+
{} | undefined
|
|
279
|
+
]>;
|
|
129
280
|
updateScanConfig(request: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest, options: CallOptions, callback: Callback<protos.google.devtools.containeranalysis.v1beta1.IScanConfig, protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
130
281
|
updateScanConfig(request: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest, callback: Callback<protos.google.devtools.containeranalysis.v1beta1.IScanConfig, protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
131
|
-
|
|
282
|
+
/**
|
|
283
|
+
* Lists scan configurations for the specified project.
|
|
284
|
+
*
|
|
285
|
+
* @param {Object} request
|
|
286
|
+
* The request object that will be sent.
|
|
287
|
+
* @param {string} request.parent
|
|
288
|
+
* Required. The name of the project to list scan configurations for in the form of
|
|
289
|
+
* `projects/[PROJECT_ID]`.
|
|
290
|
+
* @param {string} request.filter
|
|
291
|
+
* Required. The filter expression.
|
|
292
|
+
* @param {number} request.pageSize
|
|
293
|
+
* The number of scan configs to return in the list.
|
|
294
|
+
* @param {string} request.pageToken
|
|
295
|
+
* Token to provide to skip to a particular spot in the list.
|
|
296
|
+
* @param {object} [options]
|
|
297
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
298
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
299
|
+
* The first element of the array is Array of [ScanConfig]{@link google.devtools.containeranalysis.v1beta1.ScanConfig}.
|
|
300
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
301
|
+
* times as needed and will merge results from all the pages into this array.
|
|
302
|
+
* Note that it can affect your quota.
|
|
303
|
+
* We recommend using `listScanConfigsAsync()`
|
|
304
|
+
* method described below for async iteration which you can stop as needed.
|
|
305
|
+
* Please see the
|
|
306
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
307
|
+
* for more details and examples.
|
|
308
|
+
*/
|
|
309
|
+
listScanConfigs(request?: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, options?: CallOptions): Promise<[
|
|
310
|
+
protos.google.devtools.containeranalysis.v1beta1.IScanConfig[],
|
|
311
|
+
protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest | null,
|
|
312
|
+
protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsResponse
|
|
313
|
+
]>;
|
|
132
314
|
listScanConfigs(request: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsResponse | null | undefined, protos.google.devtools.containeranalysis.v1beta1.IScanConfig>): void;
|
|
133
315
|
listScanConfigs(request: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, callback: PaginationCallback<protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsResponse | null | undefined, protos.google.devtools.containeranalysis.v1beta1.IScanConfig>): void;
|
|
134
316
|
/**
|
|
@@ -182,11 +364,8 @@ export declare class ContainerAnalysisV1Beta1Client {
|
|
|
182
364
|
* Please see the
|
|
183
365
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
184
366
|
* for more details and examples.
|
|
185
|
-
* @example
|
|
186
|
-
*
|
|
187
|
-
* for await (const response of iterable) {
|
|
188
|
-
* // process response
|
|
189
|
-
* }
|
|
367
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.list_scan_configs.js</caption>
|
|
368
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_ListScanConfigs_async
|
|
190
369
|
*/
|
|
191
370
|
listScanConfigsAsync(request?: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.containeranalysis.v1beta1.IScanConfig>;
|
|
192
371
|
/**
|