@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
|
@@ -24,12 +24,14 @@ import * as protos from '../../protos/protos';
|
|
|
24
24
|
export declare class GrafeasV1Beta1Client {
|
|
25
25
|
private _terminated;
|
|
26
26
|
private _opts;
|
|
27
|
+
private _providedCustomServicePath;
|
|
27
28
|
private _gaxModule;
|
|
28
29
|
private _gaxGrpc;
|
|
29
30
|
private _protos;
|
|
30
31
|
private _defaults;
|
|
31
32
|
auth: gax.GoogleAuth;
|
|
32
33
|
descriptors: Descriptors;
|
|
34
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
|
33
35
|
innerApiCalls: {
|
|
34
36
|
[name: string]: Function;
|
|
35
37
|
};
|
|
@@ -112,42 +114,308 @@ export declare class GrafeasV1Beta1Client {
|
|
|
112
114
|
static get scopes(): string[];
|
|
113
115
|
getProjectId(): Promise<string>;
|
|
114
116
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
117
|
+
/**
|
|
118
|
+
* Gets the specified occurrence.
|
|
119
|
+
*
|
|
120
|
+
* @param {Object} request
|
|
121
|
+
* The request object that will be sent.
|
|
122
|
+
* @param {string} request.name
|
|
123
|
+
* The name of the occurrence in the form of
|
|
124
|
+
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
|
125
|
+
* @param {object} [options]
|
|
126
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
127
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
128
|
+
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1beta1.Occurrence}.
|
|
129
|
+
* Please see the
|
|
130
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
131
|
+
* for more details and examples.
|
|
132
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence.js</caption>
|
|
133
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_async
|
|
134
|
+
*/
|
|
115
135
|
getOccurrence(request?: protos.grafeas.v1beta1.IGetOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IGetOccurrenceRequest | undefined, {} | undefined]>;
|
|
116
136
|
getOccurrence(request: protos.grafeas.v1beta1.IGetOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IGetOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
117
137
|
getOccurrence(request: protos.grafeas.v1beta1.IGetOccurrenceRequest, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IGetOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
138
|
+
/**
|
|
139
|
+
* Deletes the specified occurrence. For example, use this method to delete an
|
|
140
|
+
* occurrence when the occurrence is no longer applicable for the given
|
|
141
|
+
* resource.
|
|
142
|
+
*
|
|
143
|
+
* @param {Object} request
|
|
144
|
+
* The request object that will be sent.
|
|
145
|
+
* @param {string} request.name
|
|
146
|
+
* The name of the occurrence in the form of
|
|
147
|
+
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
|
148
|
+
* @param {object} [options]
|
|
149
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
150
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
151
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
152
|
+
* Please see the
|
|
153
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
154
|
+
* for more details and examples.
|
|
155
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js</caption>
|
|
156
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_async
|
|
157
|
+
*/
|
|
118
158
|
deleteOccurrence(request?: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteOccurrenceRequest | undefined, {} | undefined]>;
|
|
119
159
|
deleteOccurrence(request: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
120
160
|
deleteOccurrence(request: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
161
|
+
/**
|
|
162
|
+
* Creates a new occurrence.
|
|
163
|
+
*
|
|
164
|
+
* @param {Object} request
|
|
165
|
+
* The request object that will be sent.
|
|
166
|
+
* @param {string} request.parent
|
|
167
|
+
* The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
|
168
|
+
* the occurrence is to be created.
|
|
169
|
+
* @param {grafeas.v1beta1.Occurrence} request.occurrence
|
|
170
|
+
* The occurrence to create.
|
|
171
|
+
* @param {object} [options]
|
|
172
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
173
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
174
|
+
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1beta1.Occurrence}.
|
|
175
|
+
* Please see the
|
|
176
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
177
|
+
* for more details and examples.
|
|
178
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js</caption>
|
|
179
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_async
|
|
180
|
+
*/
|
|
121
181
|
createOccurrence(request?: protos.grafeas.v1beta1.ICreateOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.ICreateOccurrenceRequest | undefined, {} | undefined]>;
|
|
122
182
|
createOccurrence(request: protos.grafeas.v1beta1.ICreateOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.ICreateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
123
183
|
createOccurrence(request: protos.grafeas.v1beta1.ICreateOccurrenceRequest, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.ICreateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
184
|
+
/**
|
|
185
|
+
* Creates new occurrences in batch.
|
|
186
|
+
*
|
|
187
|
+
* @param {Object} request
|
|
188
|
+
* The request object that will be sent.
|
|
189
|
+
* @param {string} request.parent
|
|
190
|
+
* The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
|
191
|
+
* the occurrences are to be created.
|
|
192
|
+
* @param {number[]} request.occurrences
|
|
193
|
+
* The occurrences to create.
|
|
194
|
+
* @param {object} [options]
|
|
195
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
196
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
197
|
+
* The first element of the array is an object representing [BatchCreateOccurrencesResponse]{@link grafeas.v1beta1.BatchCreateOccurrencesResponse}.
|
|
198
|
+
* Please see the
|
|
199
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
200
|
+
* for more details and examples.
|
|
201
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js</caption>
|
|
202
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_async
|
|
203
|
+
*/
|
|
124
204
|
batchCreateOccurrences(request?: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse, protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | undefined, {} | undefined]>;
|
|
125
205
|
batchCreateOccurrences(request: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse, protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | null | undefined, {} | null | undefined>): void;
|
|
126
206
|
batchCreateOccurrences(request: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, callback: Callback<protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse, protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | null | undefined, {} | null | undefined>): void;
|
|
207
|
+
/**
|
|
208
|
+
* Updates the specified occurrence.
|
|
209
|
+
*
|
|
210
|
+
* @param {Object} request
|
|
211
|
+
* The request object that will be sent.
|
|
212
|
+
* @param {string} request.name
|
|
213
|
+
* The name of the occurrence in the form of
|
|
214
|
+
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
|
215
|
+
* @param {grafeas.v1beta1.Occurrence} request.occurrence
|
|
216
|
+
* The updated occurrence.
|
|
217
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
218
|
+
* The fields to update.
|
|
219
|
+
* @param {object} [options]
|
|
220
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
221
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
222
|
+
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1beta1.Occurrence}.
|
|
223
|
+
* Please see the
|
|
224
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
225
|
+
* for more details and examples.
|
|
226
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js</caption>
|
|
227
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_async
|
|
228
|
+
*/
|
|
127
229
|
updateOccurrence(request?: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IUpdateOccurrenceRequest | undefined, {} | undefined]>;
|
|
128
230
|
updateOccurrence(request: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IUpdateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
129
231
|
updateOccurrence(request: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IUpdateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
|
|
232
|
+
/**
|
|
233
|
+
* Gets the note attached to the specified occurrence. Consumer projects can
|
|
234
|
+
* use this method to get a note that belongs to a provider project.
|
|
235
|
+
*
|
|
236
|
+
* @param {Object} request
|
|
237
|
+
* The request object that will be sent.
|
|
238
|
+
* @param {string} request.name
|
|
239
|
+
* The name of the occurrence in the form of
|
|
240
|
+
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
|
|
241
|
+
* @param {object} [options]
|
|
242
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
243
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
244
|
+
* The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
|
|
245
|
+
* Please see the
|
|
246
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
247
|
+
* for more details and examples.
|
|
248
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js</caption>
|
|
249
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_async
|
|
250
|
+
*/
|
|
130
251
|
getOccurrenceNote(request?: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | undefined, {} | undefined]>;
|
|
131
252
|
getOccurrenceNote(request: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
132
253
|
getOccurrenceNote(request: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
254
|
+
/**
|
|
255
|
+
* Gets the specified note.
|
|
256
|
+
*
|
|
257
|
+
* @param {Object} request
|
|
258
|
+
* The request object that will be sent.
|
|
259
|
+
* @param {string} request.name
|
|
260
|
+
* The name of the note in the form of
|
|
261
|
+
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
|
262
|
+
* @param {object} [options]
|
|
263
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
264
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
265
|
+
* The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
|
|
266
|
+
* Please see the
|
|
267
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
268
|
+
* for more details and examples.
|
|
269
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_note.js</caption>
|
|
270
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_async
|
|
271
|
+
*/
|
|
133
272
|
getNote(request?: protos.grafeas.v1beta1.IGetNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetNoteRequest | undefined, {} | undefined]>;
|
|
134
273
|
getNote(request: protos.grafeas.v1beta1.IGetNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
135
274
|
getNote(request: protos.grafeas.v1beta1.IGetNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
275
|
+
/**
|
|
276
|
+
* Deletes the specified note.
|
|
277
|
+
*
|
|
278
|
+
* @param {Object} request
|
|
279
|
+
* The request object that will be sent.
|
|
280
|
+
* @param {string} request.name
|
|
281
|
+
* The name of the note in the form of
|
|
282
|
+
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
|
283
|
+
* @param {object} [options]
|
|
284
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
285
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
286
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
287
|
+
* Please see the
|
|
288
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
289
|
+
* for more details and examples.
|
|
290
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js</caption>
|
|
291
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_async
|
|
292
|
+
*/
|
|
136
293
|
deleteNote(request?: protos.grafeas.v1beta1.IDeleteNoteRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteNoteRequest | undefined, {} | undefined]>;
|
|
137
294
|
deleteNote(request: protos.grafeas.v1beta1.IDeleteNoteRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
138
295
|
deleteNote(request: protos.grafeas.v1beta1.IDeleteNoteRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
296
|
+
/**
|
|
297
|
+
* Creates a new note.
|
|
298
|
+
*
|
|
299
|
+
* @param {Object} request
|
|
300
|
+
* The request object that will be sent.
|
|
301
|
+
* @param {string} request.parent
|
|
302
|
+
* The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
|
303
|
+
* the note is to be created.
|
|
304
|
+
* @param {string} request.noteId
|
|
305
|
+
* The ID to use for this note.
|
|
306
|
+
* @param {grafeas.v1beta1.Note} request.note
|
|
307
|
+
* The note to create.
|
|
308
|
+
* @param {object} [options]
|
|
309
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
310
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
311
|
+
* The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
|
|
312
|
+
* Please see the
|
|
313
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
314
|
+
* for more details and examples.
|
|
315
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.create_note.js</caption>
|
|
316
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_async
|
|
317
|
+
*/
|
|
139
318
|
createNote(request?: protos.grafeas.v1beta1.ICreateNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.ICreateNoteRequest | undefined, {} | undefined]>;
|
|
140
319
|
createNote(request: protos.grafeas.v1beta1.ICreateNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.ICreateNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
141
320
|
createNote(request: protos.grafeas.v1beta1.ICreateNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.ICreateNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
321
|
+
/**
|
|
322
|
+
* Creates new notes in batch.
|
|
323
|
+
*
|
|
324
|
+
* @param {Object} request
|
|
325
|
+
* The request object that will be sent.
|
|
326
|
+
* @param {string} request.parent
|
|
327
|
+
* The name of the project in the form of `projects/[PROJECT_ID]`, under which
|
|
328
|
+
* the notes are to be created.
|
|
329
|
+
* @param {number[]} request.notes
|
|
330
|
+
* The notes to create.
|
|
331
|
+
* @param {object} [options]
|
|
332
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
333
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
334
|
+
* The first element of the array is an object representing [BatchCreateNotesResponse]{@link grafeas.v1beta1.BatchCreateNotesResponse}.
|
|
335
|
+
* Please see the
|
|
336
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
337
|
+
* for more details and examples.
|
|
338
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js</caption>
|
|
339
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_async
|
|
340
|
+
*/
|
|
142
341
|
batchCreateNotes(request?: protos.grafeas.v1beta1.IBatchCreateNotesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IBatchCreateNotesResponse, protos.grafeas.v1beta1.IBatchCreateNotesRequest | undefined, {} | undefined]>;
|
|
143
342
|
batchCreateNotes(request: protos.grafeas.v1beta1.IBatchCreateNotesRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IBatchCreateNotesResponse, protos.grafeas.v1beta1.IBatchCreateNotesRequest | null | undefined, {} | null | undefined>): void;
|
|
144
343
|
batchCreateNotes(request: protos.grafeas.v1beta1.IBatchCreateNotesRequest, callback: Callback<protos.grafeas.v1beta1.IBatchCreateNotesResponse, protos.grafeas.v1beta1.IBatchCreateNotesRequest | null | undefined, {} | null | undefined>): void;
|
|
344
|
+
/**
|
|
345
|
+
* Updates the specified note.
|
|
346
|
+
*
|
|
347
|
+
* @param {Object} request
|
|
348
|
+
* The request object that will be sent.
|
|
349
|
+
* @param {string} request.name
|
|
350
|
+
* The name of the note in the form of
|
|
351
|
+
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
|
352
|
+
* @param {grafeas.v1beta1.Note} request.note
|
|
353
|
+
* The updated note.
|
|
354
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
355
|
+
* The fields to update.
|
|
356
|
+
* @param {object} [options]
|
|
357
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
358
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
359
|
+
* The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
|
|
360
|
+
* Please see the
|
|
361
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
362
|
+
* for more details and examples.
|
|
363
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.update_note.js</caption>
|
|
364
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_async
|
|
365
|
+
*/
|
|
145
366
|
updateNote(request?: protos.grafeas.v1beta1.IUpdateNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IUpdateNoteRequest | undefined, {} | undefined]>;
|
|
146
367
|
updateNote(request: protos.grafeas.v1beta1.IUpdateNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IUpdateNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
147
368
|
updateNote(request: protos.grafeas.v1beta1.IUpdateNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IUpdateNoteRequest | null | undefined, {} | null | undefined>): void;
|
|
369
|
+
/**
|
|
370
|
+
* Gets a summary of the number and severity of occurrences.
|
|
371
|
+
*
|
|
372
|
+
* @param {Object} request
|
|
373
|
+
* The request object that will be sent.
|
|
374
|
+
* @param {string} request.parent
|
|
375
|
+
* The name of the project to get a vulnerability summary for in the form of
|
|
376
|
+
* `projects/[PROJECT_ID]`.
|
|
377
|
+
* @param {string} request.filter
|
|
378
|
+
* The filter expression.
|
|
379
|
+
* @param {object} [options]
|
|
380
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
381
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
382
|
+
* The first element of the array is an object representing [VulnerabilityOccurrencesSummary]{@link grafeas.v1beta1.VulnerabilityOccurrencesSummary}.
|
|
383
|
+
* Please see the
|
|
384
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
385
|
+
* for more details and examples.
|
|
386
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js</caption>
|
|
387
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_async
|
|
388
|
+
*/
|
|
148
389
|
getVulnerabilityOccurrencesSummary(request?: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary, (protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | undefined), {} | undefined]>;
|
|
149
390
|
getVulnerabilityOccurrencesSummary(request: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary, protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
|
|
150
391
|
getVulnerabilityOccurrencesSummary(request: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, callback: Callback<protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary, protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
|
|
392
|
+
/**
|
|
393
|
+
* Lists occurrences for the specified project.
|
|
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 list occurrences for in the form of
|
|
399
|
+
* `projects/[PROJECT_ID]`.
|
|
400
|
+
* @param {string} request.filter
|
|
401
|
+
* The filter expression.
|
|
402
|
+
* @param {number} request.pageSize
|
|
403
|
+
* Number of occurrences to return in the list.
|
|
404
|
+
* @param {string} request.pageToken
|
|
405
|
+
* Token to provide to skip to a particular spot in the list.
|
|
406
|
+
* @param {object} [options]
|
|
407
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
408
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
409
|
+
* The first element of the array is Array of [Occurrence]{@link grafeas.v1beta1.Occurrence}.
|
|
410
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
411
|
+
* times as needed and will merge results from all the pages into this array.
|
|
412
|
+
* Note that it can affect your quota.
|
|
413
|
+
* We recommend using `listOccurrencesAsync()`
|
|
414
|
+
* method described below for async iteration which you can stop as needed.
|
|
415
|
+
* Please see the
|
|
416
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
417
|
+
* for more details and examples.
|
|
418
|
+
*/
|
|
151
419
|
listOccurrences(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence[], protos.grafeas.v1beta1.IListOccurrencesRequest | null, protos.grafeas.v1beta1.IListOccurrencesResponse]>;
|
|
152
420
|
listOccurrences(request: protos.grafeas.v1beta1.IListOccurrencesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1beta1.IListOccurrencesRequest, protos.grafeas.v1beta1.IListOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
153
421
|
listOccurrences(request: protos.grafeas.v1beta1.IListOccurrencesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListOccurrencesRequest, protos.grafeas.v1beta1.IListOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
@@ -202,13 +470,37 @@ export declare class GrafeasV1Beta1Client {
|
|
|
202
470
|
* Please see the
|
|
203
471
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
204
472
|
* for more details and examples.
|
|
205
|
-
* @example
|
|
206
|
-
*
|
|
207
|
-
* for await (const response of iterable) {
|
|
208
|
-
* // process response
|
|
209
|
-
* }
|
|
473
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js</caption>
|
|
474
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async
|
|
210
475
|
*/
|
|
211
476
|
listOccurrencesAsync(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1beta1.IOccurrence>;
|
|
477
|
+
/**
|
|
478
|
+
* Lists notes for the specified project.
|
|
479
|
+
*
|
|
480
|
+
* @param {Object} request
|
|
481
|
+
* The request object that will be sent.
|
|
482
|
+
* @param {string} request.parent
|
|
483
|
+
* The name of the project to list notes for in the form of
|
|
484
|
+
* `projects/[PROJECT_ID]`.
|
|
485
|
+
* @param {string} request.filter
|
|
486
|
+
* The filter expression.
|
|
487
|
+
* @param {number} request.pageSize
|
|
488
|
+
* Number of notes to return in the list.
|
|
489
|
+
* @param {string} request.pageToken
|
|
490
|
+
* Token to provide to skip to a particular spot in the list.
|
|
491
|
+
* @param {object} [options]
|
|
492
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
493
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
494
|
+
* The first element of the array is Array of [Note]{@link grafeas.v1beta1.Note}.
|
|
495
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
496
|
+
* times as needed and will merge results from all the pages into this array.
|
|
497
|
+
* Note that it can affect your quota.
|
|
498
|
+
* We recommend using `listNotesAsync()`
|
|
499
|
+
* method described below for async iteration which you can stop as needed.
|
|
500
|
+
* Please see the
|
|
501
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
502
|
+
* for more details and examples.
|
|
503
|
+
*/
|
|
212
504
|
listNotes(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote[], protos.grafeas.v1beta1.IListNotesRequest | null, protos.grafeas.v1beta1.IListNotesResponse]>;
|
|
213
505
|
listNotes(request: protos.grafeas.v1beta1.IListNotesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1beta1.IListNotesRequest, protos.grafeas.v1beta1.IListNotesResponse | null | undefined, protos.grafeas.v1beta1.INote>): void;
|
|
214
506
|
listNotes(request: protos.grafeas.v1beta1.IListNotesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListNotesRequest, protos.grafeas.v1beta1.IListNotesResponse | null | undefined, protos.grafeas.v1beta1.INote>): void;
|
|
@@ -263,13 +555,39 @@ export declare class GrafeasV1Beta1Client {
|
|
|
263
555
|
* Please see the
|
|
264
556
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
265
557
|
* for more details and examples.
|
|
266
|
-
* @example
|
|
267
|
-
*
|
|
268
|
-
* for await (const response of iterable) {
|
|
269
|
-
* // process response
|
|
270
|
-
* }
|
|
558
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js</caption>
|
|
559
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async
|
|
271
560
|
*/
|
|
272
561
|
listNotesAsync(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1beta1.INote>;
|
|
562
|
+
/**
|
|
563
|
+
* Lists occurrences referencing the specified note. Provider projects can use
|
|
564
|
+
* this method to get all occurrences across consumer projects referencing the
|
|
565
|
+
* specified note.
|
|
566
|
+
*
|
|
567
|
+
* @param {Object} request
|
|
568
|
+
* The request object that will be sent.
|
|
569
|
+
* @param {string} request.name
|
|
570
|
+
* The name of the note to list occurrences for in the form of
|
|
571
|
+
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
|
|
572
|
+
* @param {string} request.filter
|
|
573
|
+
* The filter expression.
|
|
574
|
+
* @param {number} request.pageSize
|
|
575
|
+
* Number of occurrences to return in the list.
|
|
576
|
+
* @param {string} request.pageToken
|
|
577
|
+
* Token to provide to skip to a particular spot in the list.
|
|
578
|
+
* @param {object} [options]
|
|
579
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
580
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
581
|
+
* The first element of the array is Array of [Occurrence]{@link grafeas.v1beta1.Occurrence}.
|
|
582
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
583
|
+
* times as needed and will merge results from all the pages into this array.
|
|
584
|
+
* Note that it can affect your quota.
|
|
585
|
+
* We recommend using `listNoteOccurrencesAsync()`
|
|
586
|
+
* method described below for async iteration which you can stop as needed.
|
|
587
|
+
* Please see the
|
|
588
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
589
|
+
* for more details and examples.
|
|
590
|
+
*/
|
|
273
591
|
listNoteOccurrences(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence[], protos.grafeas.v1beta1.IListNoteOccurrencesRequest | null, protos.grafeas.v1beta1.IListNoteOccurrencesResponse]>;
|
|
274
592
|
listNoteOccurrences(request: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1beta1.IListNoteOccurrencesRequest, protos.grafeas.v1beta1.IListNoteOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
275
593
|
listNoteOccurrences(request: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListNoteOccurrencesRequest, protos.grafeas.v1beta1.IListNoteOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
@@ -324,11 +642,8 @@ export declare class GrafeasV1Beta1Client {
|
|
|
324
642
|
* Please see the
|
|
325
643
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
326
644
|
* for more details and examples.
|
|
327
|
-
* @example
|
|
328
|
-
*
|
|
329
|
-
* for await (const response of iterable) {
|
|
330
|
-
* // process response
|
|
331
|
-
* }
|
|
645
|
+
* @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js</caption>
|
|
646
|
+
* region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async
|
|
332
647
|
*/
|
|
333
648
|
listNoteOccurrencesAsync(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1beta1.IOccurrence>;
|
|
334
649
|
/**
|