@google-cloud/containeranalysis 3.1.6 → 3.3.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 +22 -22
- 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/dsse_attestation.proto +52 -0
- package/build/protos/grafeas/v1/grafeas.proto +13 -0
- package/build/protos/grafeas/v1/intoto_provenance.proto +112 -0
- package/build/protos/grafeas/v1/intoto_statement.proto +49 -0
- package/build/protos/grafeas/v1/package.proto +9 -1
- package/build/protos/grafeas/v1/slsa_provenance.proto +114 -0
- package/build/protos/grafeas/v1/vulnerability.proto +35 -0
- package/build/protos/protos.d.ts +3288 -645
- package/build/protos/protos.js +8742 -1992
- package/build/protos/protos.json +516 -4
- package/build/src/v1/container_analysis_client.d.ts +109 -0
- package/build/src/v1/container_analysis_client.js +8 -108
- package/build/src/v1/container_analysis_client.js.map +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +156 -5
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +14 -161
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +330 -15
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +26 -347
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
- package/package.json +4 -4
|
@@ -21,12 +21,14 @@ import * as protos from '../../protos/protos';
|
|
|
21
21
|
export declare class ContainerAnalysisClient {
|
|
22
22
|
private _terminated;
|
|
23
23
|
private _opts;
|
|
24
|
+
private _providedCustomServicePath;
|
|
24
25
|
private _gaxModule;
|
|
25
26
|
private _gaxGrpc;
|
|
26
27
|
private _protos;
|
|
27
28
|
private _defaults;
|
|
28
29
|
auth: gax.GoogleAuth;
|
|
29
30
|
descriptors: Descriptors;
|
|
31
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
|
30
32
|
innerApiCalls: {
|
|
31
33
|
[name: string]: Function;
|
|
32
34
|
};
|
|
@@ -109,15 +111,122 @@ export declare class ContainerAnalysisClient {
|
|
|
109
111
|
static get scopes(): string[];
|
|
110
112
|
getProjectId(): Promise<string>;
|
|
111
113
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
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 {object} [options]
|
|
135
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
136
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
137
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
138
|
+
* Please see the
|
|
139
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
140
|
+
* for more details and examples.
|
|
141
|
+
* @example <caption>include:samples/generated/v1/container_analysis.set_iam_policy.js</caption>
|
|
142
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async
|
|
143
|
+
*/
|
|
112
144
|
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | undefined, {} | undefined]>;
|
|
113
145
|
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;
|
|
114
146
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
147
|
+
/**
|
|
148
|
+
* Gets the access control policy for a note or an occurrence resource.
|
|
149
|
+
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
150
|
+
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
151
|
+
* a note or occurrence, respectively.
|
|
152
|
+
*
|
|
153
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
154
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
155
|
+
* occurrences.
|
|
156
|
+
*
|
|
157
|
+
* @param {Object} request
|
|
158
|
+
* The request object that will be sent.
|
|
159
|
+
* @param {string} request.resource
|
|
160
|
+
* REQUIRED: The resource for which the policy is being requested.
|
|
161
|
+
* See the operation documentation for the appropriate value for this field.
|
|
162
|
+
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
163
|
+
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
164
|
+
* `GetIamPolicy`. This field is only used by Cloud IAM.
|
|
165
|
+
* @param {object} [options]
|
|
166
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
167
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
168
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
169
|
+
* Please see the
|
|
170
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
171
|
+
* for more details and examples.
|
|
172
|
+
* @example <caption>include:samples/generated/v1/container_analysis.get_iam_policy.js</caption>
|
|
173
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async
|
|
174
|
+
*/
|
|
115
175
|
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | undefined, {} | undefined]>;
|
|
116
176
|
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;
|
|
117
177
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
178
|
+
/**
|
|
179
|
+
* Returns the permissions that a caller has on the specified note or
|
|
180
|
+
* occurrence. Requires list permission on the project (for example,
|
|
181
|
+
* `containeranalysis.notes.list`).
|
|
182
|
+
*
|
|
183
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
184
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
185
|
+
* occurrences.
|
|
186
|
+
*
|
|
187
|
+
* @param {Object} request
|
|
188
|
+
* The request object that will be sent.
|
|
189
|
+
* @param {string} request.resource
|
|
190
|
+
* REQUIRED: The resource for which the policy detail is being requested.
|
|
191
|
+
* See the operation documentation for the appropriate value for this field.
|
|
192
|
+
* @param {string[]} request.permissions
|
|
193
|
+
* The set of permissions to check for the `resource`. Permissions with
|
|
194
|
+
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
195
|
+
* information see
|
|
196
|
+
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
197
|
+
* @param {object} [options]
|
|
198
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
199
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
200
|
+
* The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
|
|
201
|
+
* Please see the
|
|
202
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
203
|
+
* for more details and examples.
|
|
204
|
+
* @example <caption>include:samples/generated/v1/container_analysis.test_iam_permissions.js</caption>
|
|
205
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async
|
|
206
|
+
*/
|
|
118
207
|
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | undefined, {} | undefined]>;
|
|
119
208
|
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;
|
|
120
209
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
210
|
+
/**
|
|
211
|
+
* Gets a summary of the number and severity of occurrences.
|
|
212
|
+
*
|
|
213
|
+
* @param {Object} request
|
|
214
|
+
* The request object that will be sent.
|
|
215
|
+
* @param {string} request.parent
|
|
216
|
+
* The name of the project to get a vulnerability summary for in the form of
|
|
217
|
+
* `projects/[PROJECT_ID]`.
|
|
218
|
+
* @param {string} request.filter
|
|
219
|
+
* The filter expression.
|
|
220
|
+
* @param {object} [options]
|
|
221
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
222
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
223
|
+
* The first element of the array is an object representing [VulnerabilityOccurrencesSummary]{@link google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary}.
|
|
224
|
+
* Please see the
|
|
225
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
226
|
+
* for more details and examples.
|
|
227
|
+
* @example <caption>include:samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js</caption>
|
|
228
|
+
* region_tag:containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async
|
|
229
|
+
*/
|
|
121
230
|
getVulnerabilityOccurrencesSummary(request?: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest, options?: CallOptions): Promise<[protos.google.devtools.containeranalysis.v1.IVulnerabilityOccurrencesSummary, (protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest | undefined), {} | undefined]>;
|
|
122
231
|
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;
|
|
123
232
|
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;
|
|
@@ -93,6 +93,7 @@ class ContainerAnalysisClient {
|
|
|
93
93
|
// Ensure that options include all the required fields.
|
|
94
94
|
const staticMembers = this.constructor;
|
|
95
95
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
|
|
96
|
+
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
96
97
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
97
98
|
const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
|
|
98
99
|
const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
@@ -109,6 +110,10 @@ class ContainerAnalysisClient {
|
|
|
109
110
|
this._opts = opts;
|
|
110
111
|
// Save the auth object to the client, for use by other methods.
|
|
111
112
|
this.auth = this._gaxGrpc.auth;
|
|
113
|
+
// Set useJWTAccessWithScope on the auth object.
|
|
114
|
+
this.auth.useJWTAccessWithScope = true;
|
|
115
|
+
// Set defaultServicePath on the auth object.
|
|
116
|
+
this.auth.defaultServicePath = staticMembers.servicePath;
|
|
112
117
|
// Set the default scopes in auth client if needed.
|
|
113
118
|
if (servicePath === staticMembers.servicePath) {
|
|
114
119
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
@@ -146,6 +151,8 @@ class ContainerAnalysisClient {
|
|
|
146
151
|
// of calling the API is handled in `google-gax`, with this code
|
|
147
152
|
// merely providing the destination and request information.
|
|
148
153
|
this.innerApiCalls = {};
|
|
154
|
+
// Add a warn function to the client constructor so it can be easily tested.
|
|
155
|
+
this.warn = gax.warn;
|
|
149
156
|
}
|
|
150
157
|
/**
|
|
151
158
|
* Initialize the client.
|
|
@@ -169,7 +176,7 @@ class ContainerAnalysisClient {
|
|
|
169
176
|
? this._protos.lookupService('google.devtools.containeranalysis.v1.ContainerAnalysis')
|
|
170
177
|
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
171
178
|
this._protos.google.devtools.containeranalysis.v1
|
|
172
|
-
.ContainerAnalysis, this._opts);
|
|
179
|
+
.ContainerAnalysis, this._opts, this._providedCustomServicePath);
|
|
173
180
|
// Iterate over each of the methods that the service provides
|
|
174
181
|
// and create an API call method for each.
|
|
175
182
|
const containerAnalysisStubMethods = [
|
|
@@ -235,36 +242,6 @@ class ContainerAnalysisClient {
|
|
|
235
242
|
}
|
|
236
243
|
return this.auth.getProjectId();
|
|
237
244
|
}
|
|
238
|
-
/**
|
|
239
|
-
* Sets the access control policy on the specified note or occurrence.
|
|
240
|
-
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
241
|
-
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
242
|
-
* a note or an occurrence, respectively.
|
|
243
|
-
*
|
|
244
|
-
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
245
|
-
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
246
|
-
* occurrences.
|
|
247
|
-
*
|
|
248
|
-
* @param {Object} request
|
|
249
|
-
* The request object that will be sent.
|
|
250
|
-
* @param {string} request.resource
|
|
251
|
-
* REQUIRED: The resource for which the policy is being specified.
|
|
252
|
-
* See the operation documentation for the appropriate value for this field.
|
|
253
|
-
* @param {google.iam.v1.Policy} request.policy
|
|
254
|
-
* REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
255
|
-
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
256
|
-
* valid policy but certain Cloud Platform services (such as Projects)
|
|
257
|
-
* might reject them.
|
|
258
|
-
* @param {object} [options]
|
|
259
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
260
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
261
|
-
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
262
|
-
* Please see the
|
|
263
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
264
|
-
* for more details and examples.
|
|
265
|
-
* @example
|
|
266
|
-
* const [response] = await client.setIamPolicy(request);
|
|
267
|
-
*/
|
|
268
245
|
setIamPolicy(request, optionsOrCallback, callback) {
|
|
269
246
|
request = request || {};
|
|
270
247
|
let options;
|
|
@@ -285,34 +262,6 @@ class ContainerAnalysisClient {
|
|
|
285
262
|
this.initialize();
|
|
286
263
|
return this.innerApiCalls.setIamPolicy(request, options, callback);
|
|
287
264
|
}
|
|
288
|
-
/**
|
|
289
|
-
* Gets the access control policy for a note or an occurrence resource.
|
|
290
|
-
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
291
|
-
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
292
|
-
* a note or occurrence, respectively.
|
|
293
|
-
*
|
|
294
|
-
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
295
|
-
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
296
|
-
* occurrences.
|
|
297
|
-
*
|
|
298
|
-
* @param {Object} request
|
|
299
|
-
* The request object that will be sent.
|
|
300
|
-
* @param {string} request.resource
|
|
301
|
-
* REQUIRED: The resource for which the policy is being requested.
|
|
302
|
-
* See the operation documentation for the appropriate value for this field.
|
|
303
|
-
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
304
|
-
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
305
|
-
* `GetIamPolicy`. This field is only used by Cloud IAM.
|
|
306
|
-
* @param {object} [options]
|
|
307
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
308
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
309
|
-
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
310
|
-
* Please see the
|
|
311
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
312
|
-
* for more details and examples.
|
|
313
|
-
* @example
|
|
314
|
-
* const [response] = await client.getIamPolicy(request);
|
|
315
|
-
*/
|
|
316
265
|
getIamPolicy(request, optionsOrCallback, callback) {
|
|
317
266
|
request = request || {};
|
|
318
267
|
let options;
|
|
@@ -333,35 +282,6 @@ class ContainerAnalysisClient {
|
|
|
333
282
|
this.initialize();
|
|
334
283
|
return this.innerApiCalls.getIamPolicy(request, options, callback);
|
|
335
284
|
}
|
|
336
|
-
/**
|
|
337
|
-
* Returns the permissions that a caller has on the specified note or
|
|
338
|
-
* occurrence. Requires list permission on the project (for example,
|
|
339
|
-
* `containeranalysis.notes.list`).
|
|
340
|
-
*
|
|
341
|
-
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
342
|
-
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
343
|
-
* occurrences.
|
|
344
|
-
*
|
|
345
|
-
* @param {Object} request
|
|
346
|
-
* The request object that will be sent.
|
|
347
|
-
* @param {string} request.resource
|
|
348
|
-
* REQUIRED: The resource for which the policy detail is being requested.
|
|
349
|
-
* See the operation documentation for the appropriate value for this field.
|
|
350
|
-
* @param {string[]} request.permissions
|
|
351
|
-
* The set of permissions to check for the `resource`. Permissions with
|
|
352
|
-
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
353
|
-
* information see
|
|
354
|
-
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
355
|
-
* @param {object} [options]
|
|
356
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
357
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
358
|
-
* The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
|
|
359
|
-
* Please see the
|
|
360
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
361
|
-
* for more details and examples.
|
|
362
|
-
* @example
|
|
363
|
-
* const [response] = await client.testIamPermissions(request);
|
|
364
|
-
*/
|
|
365
285
|
testIamPermissions(request, optionsOrCallback, callback) {
|
|
366
286
|
request = request || {};
|
|
367
287
|
let options;
|
|
@@ -382,26 +302,6 @@ class ContainerAnalysisClient {
|
|
|
382
302
|
this.initialize();
|
|
383
303
|
return this.innerApiCalls.testIamPermissions(request, options, callback);
|
|
384
304
|
}
|
|
385
|
-
/**
|
|
386
|
-
* Gets a summary of the number and severity of occurrences.
|
|
387
|
-
*
|
|
388
|
-
* @param {Object} request
|
|
389
|
-
* The request object that will be sent.
|
|
390
|
-
* @param {string} request.parent
|
|
391
|
-
* The name of the project to get a vulnerability summary for in the form of
|
|
392
|
-
* `projects/[PROJECT_ID]`.
|
|
393
|
-
* @param {string} request.filter
|
|
394
|
-
* The filter expression.
|
|
395
|
-
* @param {object} [options]
|
|
396
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
397
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
398
|
-
* The first element of the array is an object representing [VulnerabilityOccurrencesSummary]{@link google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary}.
|
|
399
|
-
* Please see the
|
|
400
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
401
|
-
* for more details and examples.
|
|
402
|
-
* @example
|
|
403
|
-
* const [response] = await client.getVulnerabilityOccurrencesSummary(request);
|
|
404
|
-
*/
|
|
405
305
|
getVulnerabilityOccurrencesSummary(request, optionsOrCallback, callback) {
|
|
406
306
|
request = request || {};
|
|
407
307
|
let options;
|
|
@@ -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;
|
|
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;QAQ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AED;;;;;;OAMG;IACH,2BAA2B,CAAC,WAAmB;QAC7C,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,OAAO,IAAI,CAAC,qBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAC7C,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;AAnxBD,0DAmxBC"}
|
|
@@ -23,12 +23,14 @@ import * as protos from '../../protos/protos';
|
|
|
23
23
|
export declare class ContainerAnalysisV1Beta1Client {
|
|
24
24
|
private _terminated;
|
|
25
25
|
private _opts;
|
|
26
|
+
private _providedCustomServicePath;
|
|
26
27
|
private _gaxModule;
|
|
27
28
|
private _gaxGrpc;
|
|
28
29
|
private _protos;
|
|
29
30
|
private _defaults;
|
|
30
31
|
auth: gax.GoogleAuth;
|
|
31
32
|
descriptors: Descriptors;
|
|
33
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
|
32
34
|
innerApiCalls: {
|
|
33
35
|
[name: string]: Function;
|
|
34
36
|
};
|
|
@@ -111,21 +113,173 @@ export declare class ContainerAnalysisV1Beta1Client {
|
|
|
111
113
|
static get scopes(): string[];
|
|
112
114
|
getProjectId(): Promise<string>;
|
|
113
115
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
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 {object} [options]
|
|
137
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
138
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
139
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
140
|
+
* Please see the
|
|
141
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
142
|
+
* for more details and examples.
|
|
143
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js</caption>
|
|
144
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_SetIamPolicy_async
|
|
145
|
+
*/
|
|
114
146
|
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | undefined, {} | undefined]>;
|
|
115
147
|
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
148
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
149
|
+
/**
|
|
150
|
+
* Gets the access control policy for a note or an occurrence resource.
|
|
151
|
+
* Requires `containeranalysis.notes.setIamPolicy` or
|
|
152
|
+
* `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
|
153
|
+
* a note or occurrence, respectively.
|
|
154
|
+
*
|
|
155
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
156
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
157
|
+
* occurrences.
|
|
158
|
+
*
|
|
159
|
+
* @param {Object} request
|
|
160
|
+
* The request object that will be sent.
|
|
161
|
+
* @param {string} request.resource
|
|
162
|
+
* REQUIRED: The resource for which the policy is being requested.
|
|
163
|
+
* See the operation documentation for the appropriate value for this field.
|
|
164
|
+
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
165
|
+
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
166
|
+
* `GetIamPolicy`. This field is only used by Cloud IAM.
|
|
167
|
+
* @param {object} [options]
|
|
168
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
169
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
170
|
+
* The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
|
|
171
|
+
* Please see the
|
|
172
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
173
|
+
* for more details and examples.
|
|
174
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js</caption>
|
|
175
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetIamPolicy_async
|
|
176
|
+
*/
|
|
117
177
|
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | undefined, {} | undefined]>;
|
|
118
178
|
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
179
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
180
|
+
/**
|
|
181
|
+
* Returns the permissions that a caller has on the specified note or
|
|
182
|
+
* occurrence. Requires list permission on the project (for example,
|
|
183
|
+
* `containeranalysis.notes.list`).
|
|
184
|
+
*
|
|
185
|
+
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
186
|
+
* notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
187
|
+
* occurrences.
|
|
188
|
+
*
|
|
189
|
+
* @param {Object} request
|
|
190
|
+
* The request object that will be sent.
|
|
191
|
+
* @param {string} request.resource
|
|
192
|
+
* REQUIRED: The resource for which the policy detail is being requested.
|
|
193
|
+
* See the operation documentation for the appropriate value for this field.
|
|
194
|
+
* @param {string[]} request.permissions
|
|
195
|
+
* The set of permissions to check for the `resource`. Permissions with
|
|
196
|
+
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
197
|
+
* information see
|
|
198
|
+
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
199
|
+
* @param {object} [options]
|
|
200
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
201
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
202
|
+
* The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
|
|
203
|
+
* Please see the
|
|
204
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
205
|
+
* for more details and examples.
|
|
206
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js</caption>
|
|
207
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_TestIamPermissions_async
|
|
208
|
+
*/
|
|
120
209
|
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | undefined, {} | undefined]>;
|
|
121
210
|
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
211
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the specified scan configuration.
|
|
214
|
+
*
|
|
215
|
+
* @param {Object} request
|
|
216
|
+
* The request object that will be sent.
|
|
217
|
+
* @param {string} request.name
|
|
218
|
+
* Required. The name of the scan configuration in the form of
|
|
219
|
+
* `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
220
|
+
* @param {object} [options]
|
|
221
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
222
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
223
|
+
* The first element of the array is an object representing [ScanConfig]{@link google.devtools.containeranalysis.v1beta1.ScanConfig}.
|
|
224
|
+
* Please see the
|
|
225
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
226
|
+
* for more details and examples.
|
|
227
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.get_scan_config.js</caption>
|
|
228
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetScanConfig_async
|
|
229
|
+
*/
|
|
123
230
|
getScanConfig(request?: protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest, options?: CallOptions): Promise<[protos.google.devtools.containeranalysis.v1beta1.IScanConfig, (protos.google.devtools.containeranalysis.v1beta1.IGetScanConfigRequest | undefined), {} | undefined]>;
|
|
124
231
|
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;
|
|
125
232
|
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;
|
|
233
|
+
/**
|
|
234
|
+
* Updates the specified scan configuration.
|
|
235
|
+
*
|
|
236
|
+
* @param {Object} request
|
|
237
|
+
* The request object that will be sent.
|
|
238
|
+
* @param {string} request.name
|
|
239
|
+
* Required. The name of the scan configuration in the form of
|
|
240
|
+
* `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
241
|
+
* @param {google.devtools.containeranalysis.v1beta1.ScanConfig} request.scanConfig
|
|
242
|
+
* Required. The updated scan configuration.
|
|
243
|
+
* @param {object} [options]
|
|
244
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
245
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
246
|
+
* The first element of the array is an object representing [ScanConfig]{@link google.devtools.containeranalysis.v1beta1.ScanConfig}.
|
|
247
|
+
* Please see the
|
|
248
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
249
|
+
* for more details and examples.
|
|
250
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.update_scan_config.js</caption>
|
|
251
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_UpdateScanConfig_async
|
|
252
|
+
*/
|
|
126
253
|
updateScanConfig(request?: protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest, options?: CallOptions): Promise<[protos.google.devtools.containeranalysis.v1beta1.IScanConfig, (protos.google.devtools.containeranalysis.v1beta1.IUpdateScanConfigRequest | undefined), {} | undefined]>;
|
|
127
254
|
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;
|
|
128
255
|
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;
|
|
256
|
+
/**
|
|
257
|
+
* Lists scan configurations for the specified project.
|
|
258
|
+
*
|
|
259
|
+
* @param {Object} request
|
|
260
|
+
* The request object that will be sent.
|
|
261
|
+
* @param {string} request.parent
|
|
262
|
+
* Required. The name of the project to list scan configurations for in the form of
|
|
263
|
+
* `projects/[PROJECT_ID]`.
|
|
264
|
+
* @param {string} request.filter
|
|
265
|
+
* Required. The filter expression.
|
|
266
|
+
* @param {number} request.pageSize
|
|
267
|
+
* The number of scan configs to return in the list.
|
|
268
|
+
* @param {string} request.pageToken
|
|
269
|
+
* Token to provide to skip to a particular spot in the list.
|
|
270
|
+
* @param {object} [options]
|
|
271
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
272
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
273
|
+
* The first element of the array is Array of [ScanConfig]{@link google.devtools.containeranalysis.v1beta1.ScanConfig}.
|
|
274
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
275
|
+
* times as needed and will merge results from all the pages into this array.
|
|
276
|
+
* Note that it can affect your quota.
|
|
277
|
+
* We recommend using `listScanConfigsAsync()`
|
|
278
|
+
* method described below for async iteration which you can stop as needed.
|
|
279
|
+
* Please see the
|
|
280
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
281
|
+
* for more details and examples.
|
|
282
|
+
*/
|
|
129
283
|
listScanConfigs(request?: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, options?: CallOptions): Promise<[protos.google.devtools.containeranalysis.v1beta1.IScanConfig[], protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest | null, protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsResponse]>;
|
|
130
284
|
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;
|
|
131
285
|
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;
|
|
@@ -180,11 +334,8 @@ export declare class ContainerAnalysisV1Beta1Client {
|
|
|
180
334
|
* Please see the
|
|
181
335
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
182
336
|
* for more details and examples.
|
|
183
|
-
* @example
|
|
184
|
-
*
|
|
185
|
-
* for await (const response of iterable) {
|
|
186
|
-
* // process response
|
|
187
|
-
* }
|
|
337
|
+
* @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.list_scan_configs.js</caption>
|
|
338
|
+
* region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_ListScanConfigs_async
|
|
188
339
|
*/
|
|
189
340
|
listScanConfigsAsync(request?: protos.google.devtools.containeranalysis.v1beta1.IListScanConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.devtools.containeranalysis.v1beta1.IScanConfig>;
|
|
190
341
|
/**
|