diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json b/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json index 8bc0ca70c46..7f007f39556 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json +++ b/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata.google.devtools.containeranalysis.v1.json @@ -1,827 +1,827 @@ { - "clientLibrary": { - "name": "nodejs-containeranalysis", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.containeranalysis.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async", - "title": "containeranalysis setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.SetIamPolicy", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } + "clientLibrary": { + "name": "nodejs-containeranalysis", + "version": "3.4.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.devtools.containeranalysis.v1", + "version": "v1" + } + ] }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async", - "title": "containeranalysis getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async", + "title": "containeranalysis setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", + "canonical": true, + "file": "container_analysis.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "policy", + "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "ContainerAnalysisClient", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.SetIamPolicy", + "service": { + "shortName": "ContainerAnalysis", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" + } + } + } }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetIamPolicy", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async", - "title": "containeranalysis testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async", + "title": "containeranalysis getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", + "canonical": true, + "file": "container_analysis.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "options", + "type": ".google.iam.v1.GetPolicyOptions" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "ContainerAnalysisClient", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetIamPolicy", + "service": { + "shortName": "ContainerAnalysis", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" + } + } + } }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.TestIamPermissions", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async", - "title": "containeranalysis getVulnerabilityOccurrencesSummary Sample", - "origin": "API_DEFINITION", - "description": " Gets a summary of the number and severity of occurrences.", - "canonical": true, - "file": "container_analysis.get_vulnerability_occurrences_summary.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetVulnerabilityOccurrencesSummary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async", + "title": "containeranalysis testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", + "canonical": true, + "file": "container_analysis.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "permissions", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.iam.v1.TestIamPermissionsResponse", + "client": { + "shortName": "ContainerAnalysisClient", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.TestIamPermissions", + "service": { + "shortName": "ContainerAnalysis", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" + } + } + } }, - "method": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetVulnerabilityOccurrencesSummary", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrence_async", - "title": "containeranalysis getOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified occurrence.", - "canonical": true, - "file": "grafeas.get_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async", + "title": "containeranalysis getVulnerabilityOccurrencesSummary Sample", + "origin": "API_DEFINITION", + "description": " Gets a summary of the number and severity of occurrences.", + "canonical": true, + "file": "container_analysis.get_vulnerability_occurrences_summary.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVulnerabilityOccurrencesSummary", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetVulnerabilityOccurrencesSummary", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary", + "client": { + "shortName": "ContainerAnalysisClient", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" + }, + "method": { + "shortName": "GetVulnerabilityOccurrencesSummary", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetVulnerabilityOccurrencesSummary", + "service": { + "shortName": "ContainerAnalysis", + "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" + } + } + } }, - "method": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListOccurrences_async", - "title": "containeranalysis listOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences for the specified project.", - "canonical": true, - "file": "grafeas.list_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrence_async", + "title": "containeranalysis getOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified occurrence.", + "canonical": true, + "file": "grafeas.get_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrence", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1.Occurrence", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "GetOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrence", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteOccurrence_async", - "title": "containeranalysis deleteOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", - "canonical": true, - "file": "grafeas.delete_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_ListOccurrences_async", + "title": "containeranalysis listOccurrences Sample", + "origin": "API_DEFINITION", + "description": " Lists occurrences for the specified project.", + "canonical": true, + "file": "grafeas.list_occurrences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListOccurrences", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListOccurrences", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1.ListOccurrencesResponse", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "ListOccurrences", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListOccurrences", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_CreateOccurrence_async", - "title": "containeranalysis createOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Creates a new occurrence.", - "canonical": true, - "file": "grafeas.create_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateOccurrence", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1.Occurrence" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteOccurrence_async", + "title": "containeranalysis deleteOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", + "canonical": true, + "file": "grafeas.delete_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteOccurrence", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "DeleteOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteOccurrence", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_async", - "title": "containeranalysis batchCreateOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Creates new occurrences in batch.", - "canonical": true, - "file": "grafeas.batch_create_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrences", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1.BatchCreateOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_CreateOccurrence_async", + "title": "containeranalysis createOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Creates a new occurrence.", + "canonical": true, + "file": "grafeas.create_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateOccurrence", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "occurrence", + "type": ".grafeas.v1.Occurrence" + } + ], + "resultType": ".grafeas.v1.Occurrence", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "CreateOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateOccurrence", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateOccurrence_async", - "title": "containeranalysis updateOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified occurrence.", - "canonical": true, - "file": "grafeas.update_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1.Occurrence" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_async", + "title": "containeranalysis batchCreateOccurrences Sample", + "origin": "API_DEFINITION", + "description": " Creates new occurrences in batch.", + "canonical": true, + "file": "grafeas.batch_create_occurrences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateOccurrences", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateOccurrences", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "occurrences", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".grafeas.v1.BatchCreateOccurrencesResponse", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "BatchCreateOccurrences", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateOccurrences", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_async", - "title": "containeranalysis getOccurrenceNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", - "canonical": true, - "file": "grafeas.get_occurrence_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrenceNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateOccurrence_async", + "title": "containeranalysis updateOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified occurrence.", + "canonical": true, + "file": "grafeas.update_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateOccurrence", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "occurrence", + "type": ".grafeas.v1.Occurrence" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".grafeas.v1.Occurrence", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "UpdateOccurrence", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateOccurrence", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrenceNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetNote_async", - "title": "containeranalysis getNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified note.", - "canonical": true, - "file": "grafeas.get_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_async", + "title": "containeranalysis getOccurrenceNote Sample", + "origin": "API_DEFINITION", + "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", + "canonical": true, + "file": "grafeas.get_occurrence_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetOccurrenceNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrenceNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1.Note", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "GetOccurrenceNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrenceNote", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListNotes_async", - "title": "containeranalysis listNotes Sample", - "origin": "API_DEFINITION", - "description": " Lists notes for the specified project.", - "canonical": true, - "file": "grafeas.list_notes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListNotesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_GetNote_async", + "title": "containeranalysis getNote Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified note.", + "canonical": true, + "file": "grafeas.get_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1.Note", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "GetNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetNote", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNotes", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteNote_async", - "title": "containeranalysis deleteNote Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified note.", - "canonical": true, - "file": "grafeas.delete_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_ListNotes_async", + "title": "containeranalysis listNotes Sample", + "origin": "API_DEFINITION", + "description": " Lists notes for the specified project.", + "canonical": true, + "file": "grafeas.list_notes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNotes", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNotes", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1.ListNotesResponse", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "ListNotes", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNotes", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_CreateNote_async", - "title": "containeranalysis createNote Sample", - "origin": "API_DEFINITION", - "description": " Creates a new note.", - "canonical": true, - "file": "grafeas.create_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateNote", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "note_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1.Note" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteNote_async", + "title": "containeranalysis deleteNote Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified note.", + "canonical": true, + "file": "grafeas.delete_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "DeleteNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteNote", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateNotes_async", - "title": "containeranalysis batchCreateNotes Sample", - "origin": "API_DEFINITION", - "description": " Creates new notes in batch.", - "canonical": true, - "file": "grafeas.batch_create_notes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1.BatchCreateNotesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_CreateNote_async", + "title": "containeranalysis createNote Sample", + "origin": "API_DEFINITION", + "description": " Creates a new note.", + "canonical": true, + "file": "grafeas.create_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateNote", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "note_id", + "type": "TYPE_STRING" + }, + { + "name": "note", + "type": ".grafeas.v1.Note" + } + ], + "resultType": ".grafeas.v1.Note", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "CreateNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateNote", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateNotes", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateNote_async", - "title": "containeranalysis updateNote Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified note.", - "canonical": true, - "file": "grafeas.update_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1.Note" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateNotes_async", + "title": "containeranalysis batchCreateNotes Sample", + "origin": "API_DEFINITION", + "description": " Creates new notes in batch.", + "canonical": true, + "file": "grafeas.batch_create_notes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateNotes", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateNotes", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notes", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".grafeas.v1.BatchCreateNotesResponse", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "BatchCreateNotes", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateNotes", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async", - "title": "containeranalysis listNoteOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", - "canonical": true, - "file": "grafeas.list_note_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNoteOccurrences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListNoteOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateNote_async", + "title": "containeranalysis updateNote Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified note.", + "canonical": true, + "file": "grafeas.update_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "note", + "type": ".grafeas.v1.Note" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".grafeas.v1.Note", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "UpdateNote", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateNote", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } }, - "method": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNoteOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } + { + "regionTag": "containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async", + "title": "containeranalysis listNoteOccurrences Sample", + "origin": "API_DEFINITION", + "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", + "canonical": true, + "file": "grafeas.list_note_occurrences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNoteOccurrences", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNoteOccurrences", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1.ListNoteOccurrencesResponse", + "client": { + "shortName": "GrafeasClient", + "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" + }, + "method": { + "shortName": "ListNoteOccurrences", + "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNoteOccurrences", + "service": { + "shortName": "Grafeas", + "fullName": "google.devtools.containeranalysis.v1.Grafeas" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json index 6f7533d5b89..00d2102e98a 100644 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json +++ b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata.google.devtools.containeranalysis.v1beta1.json @@ -1,963 +1,963 @@ { - "clientLibrary": { - "name": "nodejs-containeranalysis", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.containeranalysis.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_SetIamPolicy_async", - "title": "containeranalysis setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis_v1_beta1.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } + "clientLibrary": { + "name": "nodejs-containeranalysis", + "version": "3.4.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.devtools.containeranalysis.v1beta1", + "version": "v1beta1" + } + ] }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetIamPolicy_async", - "title": "containeranalysis getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis_v1_beta1.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_SetIamPolicy_async", + "title": "containeranalysis setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", + "canonical": true, + "file": "container_analysis_v1_beta1.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "policy", + "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "ContainerAnalysisV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy", + "service": { + "shortName": "ContainerAnalysisV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" + } + } + } }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_TestIamPermissions_async", - "title": "containeranalysis testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis_v1_beta1.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetIamPolicy_async", + "title": "containeranalysis getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", + "canonical": true, + "file": "container_analysis_v1_beta1.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "options", + "type": ".google.iam.v1.GetPolicyOptions" + } + ], + "resultType": ".google.iam.v1.Policy", + "client": { + "shortName": "ContainerAnalysisV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy", + "service": { + "shortName": "ContainerAnalysisV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" + } + } + } }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetScanConfig_async", - "title": "containeranalysis getScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified scan configuration.", - "canonical": true, - "file": "container_analysis_v1_beta1.get_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanConfig", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.containeranalysis.v1beta1.ScanConfig", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_TestIamPermissions_async", + "title": "containeranalysis testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", + "canonical": true, + "file": "container_analysis_v1_beta1.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "permissions", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.iam.v1.TestIamPermissionsResponse", + "client": { + "shortName": "ContainerAnalysisV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions", + "service": { + "shortName": "ContainerAnalysisV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" + } + } + } }, - "method": { - "shortName": "GetScanConfig", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetScanConfig", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_ListScanConfigs_async", - "title": "containeranalysis listScanConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists scan configurations for the specified project.", - "canonical": true, - "file": "container_analysis_v1_beta1.list_scan_configs.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanConfigs", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ListScanConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.containeranalysis.v1beta1.ListScanConfigsResponse", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetScanConfig_async", + "title": "containeranalysis getScanConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified scan configuration.", + "canonical": true, + "file": "container_analysis_v1_beta1.get_scan_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetScanConfig", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetScanConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.containeranalysis.v1beta1.ScanConfig", + "client": { + "shortName": "ContainerAnalysisV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + }, + "method": { + "shortName": "GetScanConfig", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetScanConfig", + "service": { + "shortName": "ContainerAnalysisV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" + } + } + } }, - "method": { - "shortName": "ListScanConfigs", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ListScanConfigs", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_UpdateScanConfig_async", - "title": "containeranalysis updateScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified scan configuration.", - "canonical": true, - "file": "container_analysis_v1_beta1.update_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScanConfig", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.UpdateScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "scan_config", - "type": ".google.devtools.containeranalysis.v1beta1.ScanConfig" - } - ], - "resultType": ".google.devtools.containeranalysis.v1beta1.ScanConfig", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_ListScanConfigs_async", + "title": "containeranalysis listScanConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists scan configurations for the specified project.", + "canonical": true, + "file": "container_analysis_v1_beta1.list_scan_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListScanConfigs", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ListScanConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.devtools.containeranalysis.v1beta1.ListScanConfigsResponse", + "client": { + "shortName": "ContainerAnalysisV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + }, + "method": { + "shortName": "ListScanConfigs", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ListScanConfigs", + "service": { + "shortName": "ContainerAnalysisV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" + } + } + } }, - "method": { - "shortName": "UpdateScanConfig", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.UpdateScanConfig", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_async", - "title": "containeranalysis getOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified occurrence.", - "canonical": true, - "file": "grafeas_v1_beta1.get_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.Occurrence", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_UpdateScanConfig_async", + "title": "containeranalysis updateScanConfig Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified scan configuration.", + "canonical": true, + "file": "container_analysis_v1_beta1.update_scan_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateScanConfig", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.UpdateScanConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "scan_config", + "type": ".google.devtools.containeranalysis.v1beta1.ScanConfig" + } + ], + "resultType": ".google.devtools.containeranalysis.v1beta1.ScanConfig", + "client": { + "shortName": "ContainerAnalysisV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" + }, + "method": { + "shortName": "UpdateScanConfig", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.UpdateScanConfig", + "service": { + "shortName": "ContainerAnalysisV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" + } + } + } }, - "method": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async", - "title": "containeranalysis listOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences for the specified project.", - "canonical": true, - "file": "grafeas_v1_beta1.list_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.ListOccurrencesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_async", + "title": "containeranalysis getOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified occurrence.", + "canonical": true, + "file": "grafeas_v1_beta1.get_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrence", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.Occurrence", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "GetOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrence", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListOccurrences", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_async", - "title": "containeranalysis deleteOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", - "canonical": true, - "file": "grafeas_v1_beta1.delete_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async", + "title": "containeranalysis listOccurrences Sample", + "origin": "API_DEFINITION", + "description": " Lists occurrences for the specified project.", + "canonical": true, + "file": "grafeas_v1_beta1.list_occurrences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListOccurrences", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListOccurrences", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.ListOccurrencesResponse", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "ListOccurrences", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListOccurrences", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_async", - "title": "containeranalysis createOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Creates a new occurrence.", - "canonical": true, - "file": "grafeas_v1_beta1.create_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateOccurrence", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1beta1.Occurrence" - } - ], - "resultType": ".grafeas.v1beta1.Occurrence", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_async", + "title": "containeranalysis deleteOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", + "canonical": true, + "file": "grafeas_v1_beta1.delete_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteOccurrence", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "DeleteOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteOccurrence", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_async", - "title": "containeranalysis batchCreateOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Creates new occurrences in batch.", - "canonical": true, - "file": "grafeas_v1_beta1.batch_create_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrences", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1beta1.BatchCreateOccurrencesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_async", + "title": "containeranalysis createOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Creates a new occurrence.", + "canonical": true, + "file": "grafeas_v1_beta1.create_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateOccurrence", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "occurrence", + "type": ".grafeas.v1beta1.Occurrence" + } + ], + "resultType": ".grafeas.v1beta1.Occurrence", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "CreateOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateOccurrence", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_async", - "title": "containeranalysis updateOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified occurrence.", - "canonical": true, - "file": "grafeas_v1_beta1.update_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1beta1.Occurrence" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1beta1.Occurrence", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_async", + "title": "containeranalysis batchCreateOccurrences Sample", + "origin": "API_DEFINITION", + "description": " Creates new occurrences in batch.", + "canonical": true, + "file": "grafeas_v1_beta1.batch_create_occurrences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateOccurrences", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "occurrences", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".grafeas.v1beta1.BatchCreateOccurrencesResponse", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "BatchCreateOccurrences", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_async", - "title": "containeranalysis getOccurrenceNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", - "canonical": true, - "file": "grafeas_v1_beta1.get_occurrence_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrenceNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_async", + "title": "containeranalysis updateOccurrence Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified occurrence.", + "canonical": true, + "file": "grafeas_v1_beta1.update_occurrence.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateOccurrence", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "occurrence", + "type": ".grafeas.v1beta1.Occurrence" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".grafeas.v1beta1.Occurrence", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "UpdateOccurrence", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateOccurrence", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrenceNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_async", - "title": "containeranalysis getNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.get_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_async", + "title": "containeranalysis getOccurrenceNote Sample", + "origin": "API_DEFINITION", + "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", + "canonical": true, + "file": "grafeas_v1_beta1.get_occurrence_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetOccurrenceNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrenceNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.Note", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "GetOccurrenceNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrenceNote", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async", - "title": "containeranalysis listNotes Sample", - "origin": "API_DEFINITION", - "description": " Lists notes for the specified project.", - "canonical": true, - "file": "grafeas_v1_beta1.list_notes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.ListNotesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_async", + "title": "containeranalysis getNote Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified note.", + "canonical": true, + "file": "grafeas_v1_beta1.get_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.Note", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "GetNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetNote", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNotes", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_async", - "title": "containeranalysis deleteNote Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.delete_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async", + "title": "containeranalysis listNotes Sample", + "origin": "API_DEFINITION", + "description": " Lists notes for the specified project.", + "canonical": true, + "file": "grafeas_v1_beta1.list_notes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNotes", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNotes", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.ListNotesResponse", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "ListNotes", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNotes", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_async", - "title": "containeranalysis createNote Sample", - "origin": "API_DEFINITION", - "description": " Creates a new note.", - "canonical": true, - "file": "grafeas_v1_beta1.create_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateNote", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "note_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1beta1.Note" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_async", + "title": "containeranalysis deleteNote Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified note.", + "canonical": true, + "file": "grafeas_v1_beta1.delete_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "DeleteNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteNote", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_async", - "title": "containeranalysis batchCreateNotes Sample", - "origin": "API_DEFINITION", - "description": " Creates new notes in batch.", - "canonical": true, - "file": "grafeas_v1_beta1.batch_create_notes.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1beta1.BatchCreateNotesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_async", + "title": "containeranalysis createNote Sample", + "origin": "API_DEFINITION", + "description": " Creates a new note.", + "canonical": true, + "file": "grafeas_v1_beta1.create_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateNote", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "note_id", + "type": "TYPE_STRING" + }, + { + "name": "note", + "type": ".grafeas.v1beta1.Note" + } + ], + "resultType": ".grafeas.v1beta1.Note", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "CreateNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateNote", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateNotes", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_async", - "title": "containeranalysis updateNote Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.update_note.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1beta1.Note" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_async", + "title": "containeranalysis batchCreateNotes Sample", + "origin": "API_DEFINITION", + "description": " Creates new notes in batch.", + "canonical": true, + "file": "grafeas_v1_beta1.batch_create_notes.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateNotes", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateNotes", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "notes", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".grafeas.v1beta1.BatchCreateNotesResponse", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "BatchCreateNotes", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateNotes", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async", - "title": "containeranalysis listNoteOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.list_note_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNoteOccurrences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.ListNoteOccurrencesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_async", + "title": "containeranalysis updateNote Sample", + "origin": "API_DEFINITION", + "description": " Updates the specified note.", + "canonical": true, + "file": "grafeas_v1_beta1.update_note.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateNote", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "note", + "type": ".grafeas.v1beta1.Note" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".grafeas.v1beta1.Note", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "UpdateNote", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateNote", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNoteOccurrences", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_async", - "title": "containeranalysis getVulnerabilityOccurrencesSummary Sample", - "origin": "API_DEFINITION", - "description": " Gets a summary of the number and severity of occurrences.", - "canonical": true, - "file": "grafeas_v1_beta1.get_vulnerability_occurrences_summary.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.VulnerabilityOccurrencesSummary", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async", + "title": "containeranalysis listNoteOccurrences Sample", + "origin": "API_DEFINITION", + "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", + "canonical": true, + "file": "grafeas_v1_beta1.list_note_occurrences.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNoteOccurrences", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNoteOccurrences", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.ListNoteOccurrencesResponse", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "ListNoteOccurrences", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNoteOccurrences", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } }, - "method": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } + { + "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_async", + "title": "containeranalysis getVulnerabilityOccurrencesSummary Sample", + "origin": "API_DEFINITION", + "description": " Gets a summary of the number and severity of occurrences.", + "canonical": true, + "file": "grafeas_v1_beta1.get_vulnerability_occurrences_summary.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVulnerabilityOccurrencesSummary", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + } + ], + "resultType": ".grafeas.v1beta1.VulnerabilityOccurrencesSummary", + "client": { + "shortName": "GrafeasV1Beta1Client", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" + }, + "method": { + "shortName": "GetVulnerabilityOccurrencesSummary", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary", + "service": { + "shortName": "GrafeasV1Beta1", + "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file