@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.
Files changed (34) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +17 -17
  3. package/build/protos/google/devtools/containeranalysis/v1/containeranalysis.proto +12 -18
  4. package/build/protos/grafeas/v1/attestation.proto +17 -0
  5. package/build/protos/grafeas/v1/build.proto +13 -1
  6. package/build/protos/grafeas/v1/common.proto +20 -2
  7. package/build/protos/grafeas/v1/compliance.proto +79 -0
  8. package/build/protos/grafeas/v1/cvss.proto +76 -0
  9. package/build/protos/grafeas/v1/discovery.proto +5 -0
  10. package/build/protos/grafeas/v1/dsse_attestation.proto +52 -0
  11. package/build/protos/grafeas/v1/grafeas.proto +13 -0
  12. package/build/protos/grafeas/v1/intoto_provenance.proto +113 -0
  13. package/build/protos/grafeas/v1/intoto_statement.proto +50 -0
  14. package/build/protos/grafeas/v1/package.proto +9 -1
  15. package/build/protos/grafeas/v1/severity.proto +38 -0
  16. package/build/protos/grafeas/v1/slsa_provenance.proto +114 -0
  17. package/build/protos/grafeas/v1/vulnerability.proto +31 -19
  18. package/build/protos/protos.d.ts +6876 -3889
  19. package/build/protos/protos.js +19779 -11905
  20. package/build/protos/protos.json +1078 -410
  21. package/build/src/v1/container_analysis_client.d.ts +133 -4
  22. package/build/src/v1/container_analysis_client.js +2 -110
  23. package/build/src/v1/container_analysis_client.js.map +1 -1
  24. package/build/src/v1/index.js +1 -0
  25. package/build/src/v1/index.js.map +1 -1
  26. package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +190 -11
  27. package/build/src/v1beta1/container_analysis_v1_beta1_client.js +8 -163
  28. package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
  29. package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +403 -30
  30. package/build/src/v1beta1/grafeas_v1_beta1_client.js +20 -349
  31. package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
  32. package/build/src/v1beta1/index.js +1 -0
  33. package/build/src/v1beta1/index.js.map +1 -1
  34. package/package.json +9 -9
@@ -114,43 +114,361 @@ export declare class GrafeasV1Beta1Client {
114
114
  static get scopes(): string[];
115
115
  getProjectId(): Promise<string>;
116
116
  getProjectId(callback: Callback<string, undefined, undefined>): void;
117
- getOccurrence(request?: protos.grafeas.v1beta1.IGetOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IGetOccurrenceRequest | undefined, {} | undefined]>;
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
+ */
135
+ getOccurrence(request?: protos.grafeas.v1beta1.IGetOccurrenceRequest, options?: CallOptions): Promise<[
136
+ protos.grafeas.v1beta1.IOccurrence,
137
+ protos.grafeas.v1beta1.IGetOccurrenceRequest | undefined,
138
+ {} | undefined
139
+ ]>;
118
140
  getOccurrence(request: protos.grafeas.v1beta1.IGetOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IGetOccurrenceRequest | null | undefined, {} | null | undefined>): void;
119
141
  getOccurrence(request: protos.grafeas.v1beta1.IGetOccurrenceRequest, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IGetOccurrenceRequest | null | undefined, {} | null | undefined>): void;
120
- deleteOccurrence(request?: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteOccurrenceRequest | undefined, {} | undefined]>;
142
+ /**
143
+ * Deletes the specified occurrence. For example, use this method to delete an
144
+ * occurrence when the occurrence is no longer applicable for the given
145
+ * resource.
146
+ *
147
+ * @param {Object} request
148
+ * The request object that will be sent.
149
+ * @param {string} request.name
150
+ * The name of the occurrence in the form of
151
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
152
+ * @param {object} [options]
153
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
154
+ * @returns {Promise} - The promise which resolves to an array.
155
+ * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
156
+ * Please see the
157
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
158
+ * for more details and examples.
159
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js</caption>
160
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_async
161
+ */
162
+ deleteOccurrence(request?: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, options?: CallOptions): Promise<[
163
+ protos.google.protobuf.IEmpty,
164
+ protos.grafeas.v1beta1.IDeleteOccurrenceRequest | undefined,
165
+ {} | undefined
166
+ ]>;
121
167
  deleteOccurrence(request: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteOccurrenceRequest | null | undefined, {} | null | undefined>): void;
122
168
  deleteOccurrence(request: protos.grafeas.v1beta1.IDeleteOccurrenceRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteOccurrenceRequest | null | undefined, {} | null | undefined>): void;
123
- createOccurrence(request?: protos.grafeas.v1beta1.ICreateOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.ICreateOccurrenceRequest | undefined, {} | undefined]>;
169
+ /**
170
+ * Creates a new occurrence.
171
+ *
172
+ * @param {Object} request
173
+ * The request object that will be sent.
174
+ * @param {string} request.parent
175
+ * The name of the project in the form of `projects/[PROJECT_ID]`, under which
176
+ * the occurrence is to be created.
177
+ * @param {grafeas.v1beta1.Occurrence} request.occurrence
178
+ * The occurrence to create.
179
+ * @param {object} [options]
180
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
181
+ * @returns {Promise} - The promise which resolves to an array.
182
+ * The first element of the array is an object representing [Occurrence]{@link grafeas.v1beta1.Occurrence}.
183
+ * Please see the
184
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
185
+ * for more details and examples.
186
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js</caption>
187
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_async
188
+ */
189
+ createOccurrence(request?: protos.grafeas.v1beta1.ICreateOccurrenceRequest, options?: CallOptions): Promise<[
190
+ protos.grafeas.v1beta1.IOccurrence,
191
+ protos.grafeas.v1beta1.ICreateOccurrenceRequest | undefined,
192
+ {} | undefined
193
+ ]>;
124
194
  createOccurrence(request: protos.grafeas.v1beta1.ICreateOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.ICreateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
125
195
  createOccurrence(request: protos.grafeas.v1beta1.ICreateOccurrenceRequest, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.ICreateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
126
- batchCreateOccurrences(request?: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse, protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | undefined, {} | undefined]>;
196
+ /**
197
+ * Creates new occurrences in batch.
198
+ *
199
+ * @param {Object} request
200
+ * The request object that will be sent.
201
+ * @param {string} request.parent
202
+ * The name of the project in the form of `projects/[PROJECT_ID]`, under which
203
+ * the occurrences are to be created.
204
+ * @param {number[]} request.occurrences
205
+ * The occurrences to create.
206
+ * @param {object} [options]
207
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
208
+ * @returns {Promise} - The promise which resolves to an array.
209
+ * The first element of the array is an object representing [BatchCreateOccurrencesResponse]{@link grafeas.v1beta1.BatchCreateOccurrencesResponse}.
210
+ * Please see the
211
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
212
+ * for more details and examples.
213
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js</caption>
214
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_async
215
+ */
216
+ batchCreateOccurrences(request?: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, options?: CallOptions): Promise<[
217
+ protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse,
218
+ protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | undefined,
219
+ {} | undefined
220
+ ]>;
127
221
  batchCreateOccurrences(request: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse, protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | null | undefined, {} | null | undefined>): void;
128
222
  batchCreateOccurrences(request: protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest, callback: Callback<protos.grafeas.v1beta1.IBatchCreateOccurrencesResponse, protos.grafeas.v1beta1.IBatchCreateOccurrencesRequest | null | undefined, {} | null | undefined>): void;
129
- updateOccurrence(request?: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IUpdateOccurrenceRequest | undefined, {} | undefined]>;
223
+ /**
224
+ * Updates the specified occurrence.
225
+ *
226
+ * @param {Object} request
227
+ * The request object that will be sent.
228
+ * @param {string} request.name
229
+ * The name of the occurrence in the form of
230
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
231
+ * @param {grafeas.v1beta1.Occurrence} request.occurrence
232
+ * The updated occurrence.
233
+ * @param {google.protobuf.FieldMask} request.updateMask
234
+ * The fields to update.
235
+ * @param {object} [options]
236
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
237
+ * @returns {Promise} - The promise which resolves to an array.
238
+ * The first element of the array is an object representing [Occurrence]{@link grafeas.v1beta1.Occurrence}.
239
+ * Please see the
240
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
241
+ * for more details and examples.
242
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js</caption>
243
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_async
244
+ */
245
+ updateOccurrence(request?: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, options?: CallOptions): Promise<[
246
+ protos.grafeas.v1beta1.IOccurrence,
247
+ protos.grafeas.v1beta1.IUpdateOccurrenceRequest | undefined,
248
+ {} | undefined
249
+ ]>;
130
250
  updateOccurrence(request: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IUpdateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
131
251
  updateOccurrence(request: protos.grafeas.v1beta1.IUpdateOccurrenceRequest, callback: Callback<protos.grafeas.v1beta1.IOccurrence, protos.grafeas.v1beta1.IUpdateOccurrenceRequest | null | undefined, {} | null | undefined>): void;
132
- getOccurrenceNote(request?: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | undefined, {} | undefined]>;
252
+ /**
253
+ * Gets the note attached to the specified occurrence. Consumer projects can
254
+ * use this method to get a note that belongs to a provider project.
255
+ *
256
+ * @param {Object} request
257
+ * The request object that will be sent.
258
+ * @param {string} request.name
259
+ * The name of the occurrence in the form of
260
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
261
+ * @param {object} [options]
262
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
263
+ * @returns {Promise} - The promise which resolves to an array.
264
+ * The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
265
+ * Please see the
266
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
267
+ * for more details and examples.
268
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js</caption>
269
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_async
270
+ */
271
+ getOccurrenceNote(request?: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, options?: CallOptions): Promise<[
272
+ protos.grafeas.v1beta1.INote,
273
+ protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | undefined,
274
+ {} | undefined
275
+ ]>;
133
276
  getOccurrenceNote(request: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | null | undefined, {} | null | undefined>): void;
134
277
  getOccurrenceNote(request: protos.grafeas.v1beta1.IGetOccurrenceNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetOccurrenceNoteRequest | null | undefined, {} | null | undefined>): void;
135
- getNote(request?: protos.grafeas.v1beta1.IGetNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetNoteRequest | undefined, {} | undefined]>;
278
+ /**
279
+ * Gets the specified note.
280
+ *
281
+ * @param {Object} request
282
+ * The request object that will be sent.
283
+ * @param {string} request.name
284
+ * The name of the note in the form of
285
+ * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
286
+ * @param {object} [options]
287
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
288
+ * @returns {Promise} - The promise which resolves to an array.
289
+ * The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
290
+ * Please see the
291
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
292
+ * for more details and examples.
293
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_note.js</caption>
294
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_async
295
+ */
296
+ getNote(request?: protos.grafeas.v1beta1.IGetNoteRequest, options?: CallOptions): Promise<[
297
+ protos.grafeas.v1beta1.INote,
298
+ protos.grafeas.v1beta1.IGetNoteRequest | undefined,
299
+ {} | undefined
300
+ ]>;
136
301
  getNote(request: protos.grafeas.v1beta1.IGetNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetNoteRequest | null | undefined, {} | null | undefined>): void;
137
302
  getNote(request: protos.grafeas.v1beta1.IGetNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IGetNoteRequest | null | undefined, {} | null | undefined>): void;
138
- deleteNote(request?: protos.grafeas.v1beta1.IDeleteNoteRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteNoteRequest | undefined, {} | undefined]>;
303
+ /**
304
+ * Deletes the specified note.
305
+ *
306
+ * @param {Object} request
307
+ * The request object that will be sent.
308
+ * @param {string} request.name
309
+ * The name of the note in the form of
310
+ * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
311
+ * @param {object} [options]
312
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
313
+ * @returns {Promise} - The promise which resolves to an array.
314
+ * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
315
+ * Please see the
316
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
317
+ * for more details and examples.
318
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js</caption>
319
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_async
320
+ */
321
+ deleteNote(request?: protos.grafeas.v1beta1.IDeleteNoteRequest, options?: CallOptions): Promise<[
322
+ protos.google.protobuf.IEmpty,
323
+ protos.grafeas.v1beta1.IDeleteNoteRequest | undefined,
324
+ {} | undefined
325
+ ]>;
139
326
  deleteNote(request: protos.grafeas.v1beta1.IDeleteNoteRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteNoteRequest | null | undefined, {} | null | undefined>): void;
140
327
  deleteNote(request: protos.grafeas.v1beta1.IDeleteNoteRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1beta1.IDeleteNoteRequest | null | undefined, {} | null | undefined>): void;
141
- createNote(request?: protos.grafeas.v1beta1.ICreateNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.ICreateNoteRequest | undefined, {} | undefined]>;
328
+ /**
329
+ * Creates a new note.
330
+ *
331
+ * @param {Object} request
332
+ * The request object that will be sent.
333
+ * @param {string} request.parent
334
+ * The name of the project in the form of `projects/[PROJECT_ID]`, under which
335
+ * the note is to be created.
336
+ * @param {string} request.noteId
337
+ * The ID to use for this note.
338
+ * @param {grafeas.v1beta1.Note} request.note
339
+ * The note to create.
340
+ * @param {object} [options]
341
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
342
+ * @returns {Promise} - The promise which resolves to an array.
343
+ * The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
344
+ * Please see the
345
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
346
+ * for more details and examples.
347
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.create_note.js</caption>
348
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_async
349
+ */
350
+ createNote(request?: protos.grafeas.v1beta1.ICreateNoteRequest, options?: CallOptions): Promise<[
351
+ protos.grafeas.v1beta1.INote,
352
+ protos.grafeas.v1beta1.ICreateNoteRequest | undefined,
353
+ {} | undefined
354
+ ]>;
142
355
  createNote(request: protos.grafeas.v1beta1.ICreateNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.ICreateNoteRequest | null | undefined, {} | null | undefined>): void;
143
356
  createNote(request: protos.grafeas.v1beta1.ICreateNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.ICreateNoteRequest | null | undefined, {} | null | undefined>): void;
144
- batchCreateNotes(request?: protos.grafeas.v1beta1.IBatchCreateNotesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IBatchCreateNotesResponse, protos.grafeas.v1beta1.IBatchCreateNotesRequest | undefined, {} | undefined]>;
357
+ /**
358
+ * Creates new notes in batch.
359
+ *
360
+ * @param {Object} request
361
+ * The request object that will be sent.
362
+ * @param {string} request.parent
363
+ * The name of the project in the form of `projects/[PROJECT_ID]`, under which
364
+ * the notes are to be created.
365
+ * @param {number[]} request.notes
366
+ * The notes to create.
367
+ * @param {object} [options]
368
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
369
+ * @returns {Promise} - The promise which resolves to an array.
370
+ * The first element of the array is an object representing [BatchCreateNotesResponse]{@link grafeas.v1beta1.BatchCreateNotesResponse}.
371
+ * Please see the
372
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
373
+ * for more details and examples.
374
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js</caption>
375
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_async
376
+ */
377
+ batchCreateNotes(request?: protos.grafeas.v1beta1.IBatchCreateNotesRequest, options?: CallOptions): Promise<[
378
+ protos.grafeas.v1beta1.IBatchCreateNotesResponse,
379
+ protos.grafeas.v1beta1.IBatchCreateNotesRequest | undefined,
380
+ {} | undefined
381
+ ]>;
145
382
  batchCreateNotes(request: protos.grafeas.v1beta1.IBatchCreateNotesRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IBatchCreateNotesResponse, protos.grafeas.v1beta1.IBatchCreateNotesRequest | null | undefined, {} | null | undefined>): void;
146
383
  batchCreateNotes(request: protos.grafeas.v1beta1.IBatchCreateNotesRequest, callback: Callback<protos.grafeas.v1beta1.IBatchCreateNotesResponse, protos.grafeas.v1beta1.IBatchCreateNotesRequest | null | undefined, {} | null | undefined>): void;
147
- updateNote(request?: protos.grafeas.v1beta1.IUpdateNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IUpdateNoteRequest | undefined, {} | undefined]>;
384
+ /**
385
+ * Updates the specified note.
386
+ *
387
+ * @param {Object} request
388
+ * The request object that will be sent.
389
+ * @param {string} request.name
390
+ * The name of the note in the form of
391
+ * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
392
+ * @param {grafeas.v1beta1.Note} request.note
393
+ * The updated note.
394
+ * @param {google.protobuf.FieldMask} request.updateMask
395
+ * The fields to update.
396
+ * @param {object} [options]
397
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
398
+ * @returns {Promise} - The promise which resolves to an array.
399
+ * The first element of the array is an object representing [Note]{@link grafeas.v1beta1.Note}.
400
+ * Please see the
401
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
402
+ * for more details and examples.
403
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.update_note.js</caption>
404
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_async
405
+ */
406
+ updateNote(request?: protos.grafeas.v1beta1.IUpdateNoteRequest, options?: CallOptions): Promise<[
407
+ protos.grafeas.v1beta1.INote,
408
+ protos.grafeas.v1beta1.IUpdateNoteRequest | undefined,
409
+ {} | undefined
410
+ ]>;
148
411
  updateNote(request: protos.grafeas.v1beta1.IUpdateNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IUpdateNoteRequest | null | undefined, {} | null | undefined>): void;
149
412
  updateNote(request: protos.grafeas.v1beta1.IUpdateNoteRequest, callback: Callback<protos.grafeas.v1beta1.INote, protos.grafeas.v1beta1.IUpdateNoteRequest | null | undefined, {} | null | undefined>): void;
150
- getVulnerabilityOccurrencesSummary(request?: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary, (protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | undefined), {} | undefined]>;
413
+ /**
414
+ * Gets a summary of the number and severity of occurrences.
415
+ *
416
+ * @param {Object} request
417
+ * The request object that will be sent.
418
+ * @param {string} request.parent
419
+ * The name of the project to get a vulnerability summary for in the form of
420
+ * `projects/[PROJECT_ID]`.
421
+ * @param {string} request.filter
422
+ * The filter expression.
423
+ * @param {object} [options]
424
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
425
+ * @returns {Promise} - The promise which resolves to an array.
426
+ * The first element of the array is an object representing [VulnerabilityOccurrencesSummary]{@link grafeas.v1beta1.VulnerabilityOccurrencesSummary}.
427
+ * Please see the
428
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
429
+ * for more details and examples.
430
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js</caption>
431
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_async
432
+ */
433
+ getVulnerabilityOccurrencesSummary(request?: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, options?: CallOptions): Promise<[
434
+ protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary,
435
+ (protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | undefined),
436
+ {} | undefined
437
+ ]>;
151
438
  getVulnerabilityOccurrencesSummary(request: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, options: CallOptions, callback: Callback<protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary, protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
152
439
  getVulnerabilityOccurrencesSummary(request: protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest, callback: Callback<protos.grafeas.v1beta1.IVulnerabilityOccurrencesSummary, protos.grafeas.v1beta1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
153
- listOccurrences(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence[], protos.grafeas.v1beta1.IListOccurrencesRequest | null, protos.grafeas.v1beta1.IListOccurrencesResponse]>;
440
+ /**
441
+ * Lists occurrences for the specified project.
442
+ *
443
+ * @param {Object} request
444
+ * The request object that will be sent.
445
+ * @param {string} request.parent
446
+ * The name of the project to list occurrences for in the form of
447
+ * `projects/[PROJECT_ID]`.
448
+ * @param {string} request.filter
449
+ * The filter expression.
450
+ * @param {number} request.pageSize
451
+ * Number of occurrences to return in the list.
452
+ * @param {string} request.pageToken
453
+ * Token to provide to skip to a particular spot in the list.
454
+ * @param {object} [options]
455
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
456
+ * @returns {Promise} - The promise which resolves to an array.
457
+ * The first element of the array is Array of [Occurrence]{@link grafeas.v1beta1.Occurrence}.
458
+ * The client library will perform auto-pagination by default: it will call the API as many
459
+ * times as needed and will merge results from all the pages into this array.
460
+ * Note that it can affect your quota.
461
+ * We recommend using `listOccurrencesAsync()`
462
+ * method described below for async iteration which you can stop as needed.
463
+ * Please see the
464
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
465
+ * for more details and examples.
466
+ */
467
+ listOccurrences(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): Promise<[
468
+ protos.grafeas.v1beta1.IOccurrence[],
469
+ protos.grafeas.v1beta1.IListOccurrencesRequest | null,
470
+ protos.grafeas.v1beta1.IListOccurrencesResponse
471
+ ]>;
154
472
  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;
155
473
  listOccurrences(request: protos.grafeas.v1beta1.IListOccurrencesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListOccurrencesRequest, protos.grafeas.v1beta1.IListOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
156
474
  /**
@@ -204,14 +522,42 @@ export declare class GrafeasV1Beta1Client {
204
522
  * Please see the
205
523
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
206
524
  * for more details and examples.
207
- * @example
208
- * const iterable = client.listOccurrencesAsync(request);
209
- * for await (const response of iterable) {
210
- * // process response
211
- * }
525
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js</caption>
526
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async
212
527
  */
213
528
  listOccurrencesAsync(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1beta1.IOccurrence>;
214
- listNotes(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.INote[], protos.grafeas.v1beta1.IListNotesRequest | null, protos.grafeas.v1beta1.IListNotesResponse]>;
529
+ /**
530
+ * Lists notes for the specified project.
531
+ *
532
+ * @param {Object} request
533
+ * The request object that will be sent.
534
+ * @param {string} request.parent
535
+ * The name of the project to list notes for in the form of
536
+ * `projects/[PROJECT_ID]`.
537
+ * @param {string} request.filter
538
+ * The filter expression.
539
+ * @param {number} request.pageSize
540
+ * Number of notes to return in the list.
541
+ * @param {string} request.pageToken
542
+ * Token to provide to skip to a particular spot in the list.
543
+ * @param {object} [options]
544
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
545
+ * @returns {Promise} - The promise which resolves to an array.
546
+ * The first element of the array is Array of [Note]{@link grafeas.v1beta1.Note}.
547
+ * The client library will perform auto-pagination by default: it will call the API as many
548
+ * times as needed and will merge results from all the pages into this array.
549
+ * Note that it can affect your quota.
550
+ * We recommend using `listNotesAsync()`
551
+ * method described below for async iteration which you can stop as needed.
552
+ * Please see the
553
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
554
+ * for more details and examples.
555
+ */
556
+ listNotes(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): Promise<[
557
+ protos.grafeas.v1beta1.INote[],
558
+ protos.grafeas.v1beta1.IListNotesRequest | null,
559
+ protos.grafeas.v1beta1.IListNotesResponse
560
+ ]>;
215
561
  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;
216
562
  listNotes(request: protos.grafeas.v1beta1.IListNotesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListNotesRequest, protos.grafeas.v1beta1.IListNotesResponse | null | undefined, protos.grafeas.v1beta1.INote>): void;
217
563
  /**
@@ -265,14 +611,44 @@ export declare class GrafeasV1Beta1Client {
265
611
  * Please see the
266
612
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
267
613
  * for more details and examples.
268
- * @example
269
- * const iterable = client.listNotesAsync(request);
270
- * for await (const response of iterable) {
271
- * // process response
272
- * }
614
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js</caption>
615
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async
273
616
  */
274
617
  listNotesAsync(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1beta1.INote>;
275
- listNoteOccurrences(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1beta1.IOccurrence[], protos.grafeas.v1beta1.IListNoteOccurrencesRequest | null, protos.grafeas.v1beta1.IListNoteOccurrencesResponse]>;
618
+ /**
619
+ * Lists occurrences referencing the specified note. Provider projects can use
620
+ * this method to get all occurrences across consumer projects referencing the
621
+ * specified note.
622
+ *
623
+ * @param {Object} request
624
+ * The request object that will be sent.
625
+ * @param {string} request.name
626
+ * The name of the note to list occurrences for in the form of
627
+ * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
628
+ * @param {string} request.filter
629
+ * The filter expression.
630
+ * @param {number} request.pageSize
631
+ * Number of occurrences to return in the list.
632
+ * @param {string} request.pageToken
633
+ * Token to provide to skip to a particular spot in the list.
634
+ * @param {object} [options]
635
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
636
+ * @returns {Promise} - The promise which resolves to an array.
637
+ * The first element of the array is Array of [Occurrence]{@link grafeas.v1beta1.Occurrence}.
638
+ * The client library will perform auto-pagination by default: it will call the API as many
639
+ * times as needed and will merge results from all the pages into this array.
640
+ * Note that it can affect your quota.
641
+ * We recommend using `listNoteOccurrencesAsync()`
642
+ * method described below for async iteration which you can stop as needed.
643
+ * Please see the
644
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
645
+ * for more details and examples.
646
+ */
647
+ listNoteOccurrences(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): Promise<[
648
+ protos.grafeas.v1beta1.IOccurrence[],
649
+ protos.grafeas.v1beta1.IListNoteOccurrencesRequest | null,
650
+ protos.grafeas.v1beta1.IListNoteOccurrencesResponse
651
+ ]>;
276
652
  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;
277
653
  listNoteOccurrences(request: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListNoteOccurrencesRequest, protos.grafeas.v1beta1.IListNoteOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
278
654
  /**
@@ -326,11 +702,8 @@ export declare class GrafeasV1Beta1Client {
326
702
  * Please see the
327
703
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
328
704
  * for more details and examples.
329
- * @example
330
- * const iterable = client.listNoteOccurrencesAsync(request);
331
- * for await (const response of iterable) {
332
- * // process response
333
- * }
705
+ * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js</caption>
706
+ * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async
334
707
  */
335
708
  listNoteOccurrencesAsync(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1beta1.IOccurrence>;
336
709
  /**