@google-cloud/grafeas
Advanced tools
Comparing version 3.6.0 to 3.6.1
@@ -117,35 +117,282 @@ /// <reference types="node" /> | ||
getProjectId(callback: Callback<string, undefined, undefined>): void; | ||
/** | ||
* Gets the specified occurrence. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.get_occurrence.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_GetOccurrence_async | ||
*/ | ||
getOccurrence(request?: protos.grafeas.v1.IGetOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IOccurrence, protos.grafeas.v1.IGetOccurrenceRequest | undefined, {} | undefined]>; | ||
getOccurrence(request: protos.grafeas.v1.IGetOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.IOccurrence, protos.grafeas.v1.IGetOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
getOccurrence(request: protos.grafeas.v1.IGetOccurrenceRequest, callback: Callback<protos.grafeas.v1.IOccurrence, protos.grafeas.v1.IGetOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Deletes the specified occurrence. For example, use this method to delete an | ||
* occurrence when the occurrence is no longer applicable for the given | ||
* resource. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.delete_occurrence.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_DeleteOccurrence_async | ||
*/ | ||
deleteOccurrence(request?: protos.grafeas.v1.IDeleteOccurrenceRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.grafeas.v1.IDeleteOccurrenceRequest | undefined, {} | undefined]>; | ||
deleteOccurrence(request: protos.grafeas.v1.IDeleteOccurrenceRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1.IDeleteOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
deleteOccurrence(request: protos.grafeas.v1.IDeleteOccurrenceRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1.IDeleteOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Creates a new occurrence. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the occurrence is to be created. | ||
* @param {grafeas.v1.Occurrence} request.occurrence | ||
* The occurrence to create. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.create_occurrence.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_CreateOccurrence_async | ||
*/ | ||
createOccurrence(request?: protos.grafeas.v1.ICreateOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IOccurrence, protos.grafeas.v1.ICreateOccurrenceRequest | undefined, {} | undefined]>; | ||
createOccurrence(request: protos.grafeas.v1.ICreateOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.IOccurrence, protos.grafeas.v1.ICreateOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
createOccurrence(request: protos.grafeas.v1.ICreateOccurrenceRequest, callback: Callback<protos.grafeas.v1.IOccurrence, protos.grafeas.v1.ICreateOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Creates new occurrences in batch. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the occurrences are to be created. | ||
* @param {number[]} request.occurrences | ||
* The occurrences to create. Max allowed length is 1000. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [BatchCreateOccurrencesResponse]{@link grafeas.v1.BatchCreateOccurrencesResponse}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.batch_create_occurrences.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_async | ||
*/ | ||
batchCreateOccurrences(request?: protos.grafeas.v1.IBatchCreateOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IBatchCreateOccurrencesResponse, protos.grafeas.v1.IBatchCreateOccurrencesRequest | undefined, {} | undefined]>; | ||
batchCreateOccurrences(request: protos.grafeas.v1.IBatchCreateOccurrencesRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.IBatchCreateOccurrencesResponse, protos.grafeas.v1.IBatchCreateOccurrencesRequest | null | undefined, {} | null | undefined>): void; | ||
batchCreateOccurrences(request: protos.grafeas.v1.IBatchCreateOccurrencesRequest, callback: Callback<protos.grafeas.v1.IBatchCreateOccurrencesResponse, protos.grafeas.v1.IBatchCreateOccurrencesRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Updates the specified occurrence. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {grafeas.v1.Occurrence} request.occurrence | ||
* The updated occurrence. | ||
* @param {google.protobuf.FieldMask} request.updateMask | ||
* The fields to update. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.update_occurrence.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_UpdateOccurrence_async | ||
*/ | ||
updateOccurrence(request?: protos.grafeas.v1.IUpdateOccurrenceRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IOccurrence, protos.grafeas.v1.IUpdateOccurrenceRequest | undefined, {} | undefined]>; | ||
updateOccurrence(request: protos.grafeas.v1.IUpdateOccurrenceRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.IOccurrence, protos.grafeas.v1.IUpdateOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
updateOccurrence(request: protos.grafeas.v1.IUpdateOccurrenceRequest, callback: Callback<protos.grafeas.v1.IOccurrence, protos.grafeas.v1.IUpdateOccurrenceRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Gets the note attached to the specified occurrence. Consumer projects can | ||
* use this method to get a note that belongs to a provider project. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.get_occurrence_note.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_async | ||
*/ | ||
getOccurrenceNote(request?: protos.grafeas.v1.IGetOccurrenceNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1.INote, protos.grafeas.v1.IGetOccurrenceNoteRequest | undefined, {} | undefined]>; | ||
getOccurrenceNote(request: protos.grafeas.v1.IGetOccurrenceNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.IGetOccurrenceNoteRequest | null | undefined, {} | null | undefined>): void; | ||
getOccurrenceNote(request: protos.grafeas.v1.IGetOccurrenceNoteRequest, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.IGetOccurrenceNoteRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Gets the specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.get_note.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_GetNote_async | ||
*/ | ||
getNote(request?: protos.grafeas.v1.IGetNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1.INote, protos.grafeas.v1.IGetNoteRequest | undefined, {} | undefined]>; | ||
getNote(request: protos.grafeas.v1.IGetNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.IGetNoteRequest | null | undefined, {} | null | undefined>): void; | ||
getNote(request: protos.grafeas.v1.IGetNoteRequest, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.IGetNoteRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Deletes the specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.delete_note.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_DeleteNote_async | ||
*/ | ||
deleteNote(request?: protos.grafeas.v1.IDeleteNoteRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.grafeas.v1.IDeleteNoteRequest | undefined, {} | undefined]>; | ||
deleteNote(request: protos.grafeas.v1.IDeleteNoteRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1.IDeleteNoteRequest | null | undefined, {} | null | undefined>): void; | ||
deleteNote(request: protos.grafeas.v1.IDeleteNoteRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.grafeas.v1.IDeleteNoteRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Creates a new note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the note is to be created. | ||
* @param {string} request.noteId | ||
* The ID to use for this note. | ||
* @param {grafeas.v1.Note} request.note | ||
* The note to create. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.create_note.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_CreateNote_async | ||
*/ | ||
createNote(request?: protos.grafeas.v1.ICreateNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1.INote, protos.grafeas.v1.ICreateNoteRequest | undefined, {} | undefined]>; | ||
createNote(request: protos.grafeas.v1.ICreateNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.ICreateNoteRequest | null | undefined, {} | null | undefined>): void; | ||
createNote(request: protos.grafeas.v1.ICreateNoteRequest, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.ICreateNoteRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Creates new notes in batch. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the notes are to be created. | ||
* @param {number[]} request.notes | ||
* The notes to create. Max allowed length is 1000. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [BatchCreateNotesResponse]{@link grafeas.v1.BatchCreateNotesResponse}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.batch_create_notes.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_BatchCreateNotes_async | ||
*/ | ||
batchCreateNotes(request?: protos.grafeas.v1.IBatchCreateNotesRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IBatchCreateNotesResponse, protos.grafeas.v1.IBatchCreateNotesRequest | undefined, {} | undefined]>; | ||
batchCreateNotes(request: protos.grafeas.v1.IBatchCreateNotesRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.IBatchCreateNotesResponse, protos.grafeas.v1.IBatchCreateNotesRequest | null | undefined, {} | null | undefined>): void; | ||
batchCreateNotes(request: protos.grafeas.v1.IBatchCreateNotesRequest, callback: Callback<protos.grafeas.v1.IBatchCreateNotesResponse, protos.grafeas.v1.IBatchCreateNotesRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Updates the specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {grafeas.v1.Note} request.note | ||
* The updated note. | ||
* @param {google.protobuf.FieldMask} request.updateMask | ||
* The fields to update. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/grafeas.update_note.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_UpdateNote_async | ||
*/ | ||
updateNote(request?: protos.grafeas.v1.IUpdateNoteRequest, options?: CallOptions): Promise<[protos.grafeas.v1.INote, protos.grafeas.v1.IUpdateNoteRequest | undefined, {} | undefined]>; | ||
updateNote(request: protos.grafeas.v1.IUpdateNoteRequest, options: CallOptions, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.IUpdateNoteRequest | null | undefined, {} | null | undefined>): void; | ||
updateNote(request: protos.grafeas.v1.IUpdateNoteRequest, callback: Callback<protos.grafeas.v1.INote, protos.grafeas.v1.IUpdateNoteRequest | null | undefined, {} | null | undefined>): void; | ||
/** | ||
* Lists occurrences for the specified project. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project to list occurrences for in the form of | ||
* `projects/[PROJECT_ID]`. | ||
* @param {string} request.filter | ||
* The filter expression. | ||
* @param {number} request.pageSize | ||
* Number of occurrences to return in the list. Must be positive. Max allowed | ||
* page size is 1000. If not specified, page size defaults to 20. | ||
* @param {string} request.pageToken | ||
* Token to provide to skip to a particular spot in the list. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is Array of [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* The client library will perform auto-pagination by default: it will call the API as many | ||
* times as needed and will merge results from all the pages into this array. | ||
* Note that it can affect your quota. | ||
* We recommend using `listOccurrencesAsync()` | ||
* method described below for async iteration which you can stop as needed. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) | ||
* for more details and examples. | ||
*/ | ||
listOccurrences(request?: protos.grafeas.v1.IListOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IOccurrence[], protos.grafeas.v1.IListOccurrencesRequest | null, protos.grafeas.v1.IListOccurrencesResponse]>; | ||
@@ -207,9 +454,34 @@ listOccurrences(request: protos.grafeas.v1.IListOccurrencesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1.IListOccurrencesRequest, protos.grafeas.v1.IListOccurrencesResponse | null | undefined, protos.grafeas.v1.IOccurrence>): void; | ||
* for more details and examples. | ||
* @example | ||
* const iterable = client.listOccurrencesAsync(request); | ||
* for await (const response of iterable) { | ||
* // process response | ||
* } | ||
* @example <caption>include:samples/generated/v1/grafeas.list_occurrences.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_ListOccurrences_async | ||
*/ | ||
listOccurrencesAsync(request?: protos.grafeas.v1.IListOccurrencesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1.IOccurrence>; | ||
/** | ||
* Lists notes for the specified project. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project to list notes for in the form of | ||
* `projects/[PROJECT_ID]`. | ||
* @param {string} request.filter | ||
* The filter expression. | ||
* @param {number} request.pageSize | ||
* Number of notes to return in the list. Must be positive. Max allowed page | ||
* size is 1000. If not specified, page size defaults to 20. | ||
* @param {string} request.pageToken | ||
* Token to provide to skip to a particular spot in the list. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is Array of [Note]{@link grafeas.v1.Note}. | ||
* The client library will perform auto-pagination by default: it will call the API as many | ||
* times as needed and will merge results from all the pages into this array. | ||
* Note that it can affect your quota. | ||
* We recommend using `listNotesAsync()` | ||
* method described below for async iteration which you can stop as needed. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) | ||
* for more details and examples. | ||
*/ | ||
listNotes(request?: protos.grafeas.v1.IListNotesRequest, options?: CallOptions): Promise<[protos.grafeas.v1.INote[], protos.grafeas.v1.IListNotesRequest | null, protos.grafeas.v1.IListNotesResponse]>; | ||
@@ -271,9 +543,35 @@ listNotes(request: protos.grafeas.v1.IListNotesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1.IListNotesRequest, protos.grafeas.v1.IListNotesResponse | null | undefined, protos.grafeas.v1.INote>): void; | ||
* for more details and examples. | ||
* @example | ||
* const iterable = client.listNotesAsync(request); | ||
* for await (const response of iterable) { | ||
* // process response | ||
* } | ||
* @example <caption>include:samples/generated/v1/grafeas.list_notes.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_ListNotes_async | ||
*/ | ||
listNotesAsync(request?: protos.grafeas.v1.IListNotesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1.INote>; | ||
/** | ||
* Lists occurrences referencing the specified note. Provider projects can use | ||
* this method to get all occurrences across consumer projects referencing the | ||
* specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note to list occurrences for in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {string} request.filter | ||
* The filter expression. | ||
* @param {number} request.pageSize | ||
* Number of occurrences to return in the list. | ||
* @param {string} request.pageToken | ||
* Token to provide to skip to a particular spot in the list. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is Array of [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* The client library will perform auto-pagination by default: it will call the API as many | ||
* times as needed and will merge results from all the pages into this array. | ||
* Note that it can affect your quota. | ||
* We recommend using `listNoteOccurrencesAsync()` | ||
* method described below for async iteration which you can stop as needed. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) | ||
* for more details and examples. | ||
*/ | ||
listNoteOccurrences(request?: protos.grafeas.v1.IListNoteOccurrencesRequest, options?: CallOptions): Promise<[protos.grafeas.v1.IOccurrence[], protos.grafeas.v1.IListNoteOccurrencesRequest | null, protos.grafeas.v1.IListNoteOccurrencesResponse]>; | ||
@@ -333,7 +631,4 @@ listNoteOccurrences(request: protos.grafeas.v1.IListNoteOccurrencesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1.IListNoteOccurrencesRequest, protos.grafeas.v1.IListNoteOccurrencesResponse | null | undefined, protos.grafeas.v1.IOccurrence>): void; | ||
* for more details and examples. | ||
* @example | ||
* const iterable = client.listNoteOccurrencesAsync(request); | ||
* for await (const response of iterable) { | ||
* // process response | ||
* } | ||
* @example <caption>include:samples/generated/v1/grafeas.list_note_occurrences.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async | ||
*/ | ||
@@ -340,0 +635,0 @@ listNoteOccurrencesAsync(request?: protos.grafeas.v1.IListNoteOccurrencesRequest, options?: CallOptions): AsyncIterable<protos.grafeas.v1.IOccurrence>; |
"use strict"; | ||
// Copyright 2021 Google LLC | ||
// Copyright 2022 Google LLC | ||
// | ||
@@ -262,20 +262,2 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
} | ||
/** | ||
* Gets the specified occurrence. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.getOccurrence(request); | ||
*/ | ||
getOccurrence(request, optionsOrCallback, callback) { | ||
@@ -301,22 +283,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Deletes the specified occurrence. For example, use this method to delete an | ||
* occurrence when the occurrence is no longer applicable for the given | ||
* resource. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.deleteOccurrence(request); | ||
*/ | ||
deleteOccurrence(request, optionsOrCallback, callback) { | ||
@@ -342,22 +304,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Creates a new occurrence. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the occurrence is to be created. | ||
* @param {grafeas.v1.Occurrence} request.occurrence | ||
* The occurrence to create. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.createOccurrence(request); | ||
*/ | ||
createOccurrence(request, optionsOrCallback, callback) { | ||
@@ -383,22 +325,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Creates new occurrences in batch. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the occurrences are to be created. | ||
* @param {number[]} request.occurrences | ||
* The occurrences to create. Max allowed length is 1000. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [BatchCreateOccurrencesResponse]{@link grafeas.v1.BatchCreateOccurrencesResponse}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.batchCreateOccurrences(request); | ||
*/ | ||
batchCreateOccurrences(request, optionsOrCallback, callback) { | ||
@@ -424,24 +346,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Updates the specified occurrence. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {grafeas.v1.Occurrence} request.occurrence | ||
* The updated occurrence. | ||
* @param {google.protobuf.FieldMask} request.updateMask | ||
* The fields to update. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.updateOccurrence(request); | ||
*/ | ||
updateOccurrence(request, optionsOrCallback, callback) { | ||
@@ -467,21 +367,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Gets the note attached to the specified occurrence. Consumer projects can | ||
* use this method to get a note that belongs to a provider project. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the occurrence in the form of | ||
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.getOccurrenceNote(request); | ||
*/ | ||
getOccurrenceNote(request, optionsOrCallback, callback) { | ||
@@ -507,20 +388,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Gets the specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.getNote(request); | ||
*/ | ||
getNote(request, optionsOrCallback, callback) { | ||
@@ -546,20 +409,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Deletes the specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.deleteNote(request); | ||
*/ | ||
deleteNote(request, optionsOrCallback, callback) { | ||
@@ -585,24 +430,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Creates a new note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the note is to be created. | ||
* @param {string} request.noteId | ||
* The ID to use for this note. | ||
* @param {grafeas.v1.Note} request.note | ||
* The note to create. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.createNote(request); | ||
*/ | ||
createNote(request, optionsOrCallback, callback) { | ||
@@ -628,22 +451,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Creates new notes in batch. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project in the form of `projects/[PROJECT_ID]`, under which | ||
* the notes are to be created. | ||
* @param {number[]} request.notes | ||
* The notes to create. Max allowed length is 1000. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [BatchCreateNotesResponse]{@link grafeas.v1.BatchCreateNotesResponse}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.batchCreateNotes(request); | ||
*/ | ||
batchCreateNotes(request, optionsOrCallback, callback) { | ||
@@ -669,24 +472,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Updates the specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {grafeas.v1.Note} request.note | ||
* The updated note. | ||
* @param {google.protobuf.FieldMask} request.updateMask | ||
* The fields to update. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) | ||
* for more details and examples. | ||
* @example | ||
* const [response] = await client.updateNote(request); | ||
*/ | ||
updateNote(request, optionsOrCallback, callback) { | ||
@@ -712,30 +493,2 @@ request = request || {}; | ||
} | ||
/** | ||
* Lists occurrences for the specified project. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project to list occurrences for in the form of | ||
* `projects/[PROJECT_ID]`. | ||
* @param {string} request.filter | ||
* The filter expression. | ||
* @param {number} request.pageSize | ||
* Number of occurrences to return in the list. Must be positive. Max allowed | ||
* page size is 1000. If not specified, page size defaults to 20. | ||
* @param {string} request.pageToken | ||
* Token to provide to skip to a particular spot in the list. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is Array of [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* The client library will perform auto-pagination by default: it will call the API as many | ||
* times as needed and will merge results from all the pages into this array. | ||
* Note that it can affect your quota. | ||
* We recommend using `listOccurrencesAsync()` | ||
* method described below for async iteration which you can stop as needed. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) | ||
* for more details and examples. | ||
*/ | ||
listOccurrences(request, optionsOrCallback, callback) { | ||
@@ -827,7 +580,4 @@ request = request || {}; | ||
* for more details and examples. | ||
* @example | ||
* const iterable = client.listOccurrencesAsync(request); | ||
* for await (const response of iterable) { | ||
* // process response | ||
* } | ||
* @example <caption>include:samples/generated/v1/grafeas.list_occurrences.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_ListOccurrences_async | ||
*/ | ||
@@ -843,3 +593,2 @@ listOccurrencesAsync(request, options) { | ||
}); | ||
options = options || {}; | ||
const defaultCallSettings = this._defaults['listOccurrences']; | ||
@@ -850,30 +599,2 @@ const callSettings = defaultCallSettings.merge(options); | ||
} | ||
/** | ||
* Lists notes for the specified project. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.parent | ||
* The name of the project to list notes for in the form of | ||
* `projects/[PROJECT_ID]`. | ||
* @param {string} request.filter | ||
* The filter expression. | ||
* @param {number} request.pageSize | ||
* Number of notes to return in the list. Must be positive. Max allowed page | ||
* size is 1000. If not specified, page size defaults to 20. | ||
* @param {string} request.pageToken | ||
* Token to provide to skip to a particular spot in the list. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is Array of [Note]{@link grafeas.v1.Note}. | ||
* The client library will perform auto-pagination by default: it will call the API as many | ||
* times as needed and will merge results from all the pages into this array. | ||
* Note that it can affect your quota. | ||
* We recommend using `listNotesAsync()` | ||
* method described below for async iteration which you can stop as needed. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) | ||
* for more details and examples. | ||
*/ | ||
listNotes(request, optionsOrCallback, callback) { | ||
@@ -965,7 +686,4 @@ request = request || {}; | ||
* for more details and examples. | ||
* @example | ||
* const iterable = client.listNotesAsync(request); | ||
* for await (const response of iterable) { | ||
* // process response | ||
* } | ||
* @example <caption>include:samples/generated/v1/grafeas.list_notes.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_ListNotes_async | ||
*/ | ||
@@ -981,3 +699,2 @@ listNotesAsync(request, options) { | ||
}); | ||
options = options || {}; | ||
const defaultCallSettings = this._defaults['listNotes']; | ||
@@ -988,31 +705,2 @@ const callSettings = defaultCallSettings.merge(options); | ||
} | ||
/** | ||
* Lists occurrences referencing the specified note. Provider projects can use | ||
* this method to get all occurrences across consumer projects referencing the | ||
* specified note. | ||
* | ||
* @param {Object} request | ||
* The request object that will be sent. | ||
* @param {string} request.name | ||
* The name of the note to list occurrences for in the form of | ||
* `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | ||
* @param {string} request.filter | ||
* The filter expression. | ||
* @param {number} request.pageSize | ||
* Number of occurrences to return in the list. | ||
* @param {string} request.pageToken | ||
* Token to provide to skip to a particular spot in the list. | ||
* @param {object} [options] | ||
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. | ||
* @returns {Promise} - The promise which resolves to an array. | ||
* The first element of the array is Array of [Occurrence]{@link grafeas.v1.Occurrence}. | ||
* The client library will perform auto-pagination by default: it will call the API as many | ||
* times as needed and will merge results from all the pages into this array. | ||
* Note that it can affect your quota. | ||
* We recommend using `listNoteOccurrencesAsync()` | ||
* method described below for async iteration which you can stop as needed. | ||
* Please see the | ||
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) | ||
* for more details and examples. | ||
*/ | ||
listNoteOccurrences(request, optionsOrCallback, callback) { | ||
@@ -1102,7 +790,4 @@ request = request || {}; | ||
* for more details and examples. | ||
* @example | ||
* const iterable = client.listNoteOccurrencesAsync(request); | ||
* for await (const response of iterable) { | ||
* // process response | ||
* } | ||
* @example <caption>include:samples/generated/v1/grafeas.list_note_occurrences.js</caption> | ||
* region_tag:containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async | ||
*/ | ||
@@ -1118,3 +803,2 @@ listNoteOccurrencesAsync(request, options) { | ||
}); | ||
options = options || {}; | ||
const defaultCallSettings = this._defaults['listNoteOccurrences']; | ||
@@ -1224,4 +908,3 @@ const callSettings = defaultCallSettings.merge(options); | ||
close() { | ||
this.initialize(); | ||
if (!this._terminated) { | ||
if (this.grafeasStub && !this._terminated) { | ||
return this.grafeasStub.then(stub => { | ||
@@ -1228,0 +911,0 @@ this._terminated = true; |
"use strict"; | ||
// Copyright 2021 Google LLC | ||
// Copyright 2022 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -7,2 +7,9 @@ # Changelog | ||
### [3.6.1](https://github.com/googleapis/nodejs-grafeas/compare/v3.6.0...v3.6.1) (2022-03-14) | ||
### Bug Fixes | ||
* Make the library compatible with the latest version of the vulnerability occurrence proto ([4268b06](https://github.com/googleapis/nodejs-grafeas/commit/4268b06cd0e34faaaeb7e806fbb22d8906c653de)) | ||
## [3.6.0](https://www.github.com/googleapis/nodejs-grafeas/compare/v3.5.0...v3.6.0) (2021-11-03) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"repository": "googleapis/nodejs-grafeas", | ||
"name": "@google-cloud/grafeas", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"author": "Google LLC", | ||
@@ -33,3 +33,3 @@ "description": "Grafeas API client for Node.js", | ||
"c8": "^7.0.0", | ||
"gts": "^2.0.0", | ||
"gts": "^3.0.0", | ||
"jsdoc": "^3.6.2", | ||
@@ -42,3 +42,3 @@ "jsdoc-fresh": "^1.0.1", | ||
"pack-n-play": "^1.0.0-2", | ||
"sinon": "^11.0.0", | ||
"sinon": "^13.0.0", | ||
"ts-loader": "^9.0.0", | ||
@@ -45,0 +45,0 @@ "typescript": "^3.8.3", |
@@ -7,5 +7,4 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) | ||
[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) | ||
[![npm version](https://img.shields.io/npm/v/@google-cloud/grafeas.svg)](https://www.npmjs.org/package/@google-cloud/grafeas) | ||
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-grafeas/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-grafeas) | ||
@@ -106,18 +105,18 @@ | ||
Node.js. | ||
If you are using an end-of-life version of Node.js, we recommend that you update | ||
as soon as possible to an actively supported LTS version. | ||
Google's client libraries support legacy versions of Node.js runtimes on a | ||
best-efforts basis with the following warnings: | ||
* Legacy versions are not tested in continuous integration. | ||
* Some security patches and features cannot be backported. | ||
* Dependencies cannot be kept up-to-date. | ||
Client libraries targeting some end-of-life versions of Node.js are available, and | ||
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
The dist-tags follow the naming convention `legacy-(version)`. | ||
For example, `npm install @google-cloud/grafeas@legacy-8` installs client libraries | ||
for versions compatible with Node.js 8. | ||
_Legacy Node.js versions are supported as a best effort:_ | ||
* Legacy versions will not be tested in continuous integration. | ||
* Some security patches may not be able to be backported. | ||
* Dependencies will not be kept up-to-date, and features will not be backported. | ||
#### Legacy tags available | ||
* `legacy-8`: install client libraries from this dist-tag for versions | ||
compatible with Node.js 8. | ||
## Versioning | ||
@@ -128,6 +127,6 @@ | ||
This library is considered to be **General Availability (GA)**. This means it | ||
is stable; the code surface will not change in backwards-incompatible ways | ||
This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways | ||
unless absolutely necessary (e.g. because of critical security issues) or with | ||
an extensive deprecation period. Issues and requests against **GA** libraries | ||
an extensive deprecation period. Issues and requests against **stable** libraries | ||
are addressed with the highest priority. | ||
@@ -139,2 +138,3 @@ | ||
More Information: [Google Cloud Platform Launch Stages][launch_stages] | ||
@@ -141,0 +141,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3023451
36
52983