blob: afed593ce9133a5926009f69e2c169038138ff19 [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/containeranalysis/apiv1beta1",
"version": "0.6.0",
"language": "GO",
"apis": [
{
"id": "grafeas.v1beta1",
"version": "v1beta1"
}
]
},
"snippets": [
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_sync",
"title": "containeranalysis BatchCreateNotes Sample",
"description": "BatchCreateNotes creates new notes in batch.",
"file": "GrafeasV1Beta1Client/BatchCreateNotes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchCreateNotes",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.BatchCreateNotes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.BatchCreateNotesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.BatchCreateNotesResponse",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "BatchCreateNotes",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.BatchCreateNotes",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_sync",
"title": "containeranalysis BatchCreateOccurrences Sample",
"description": "BatchCreateOccurrences creates new occurrences in batch.",
"file": "GrafeasV1Beta1Client/BatchCreateOccurrences/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BatchCreateOccurrences",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.BatchCreateOccurrences",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.BatchCreateOccurrencesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.BatchCreateOccurrencesResponse",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "BatchCreateOccurrences",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_sync",
"title": "containeranalysis CreateNote Sample",
"description": "CreateNote creates a new note.",
"file": "GrafeasV1Beta1Client/CreateNote/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.CreateNote",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.CreateNoteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Note",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "CreateNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.CreateNote",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_sync",
"title": "containeranalysis CreateOccurrence Sample",
"description": "CreateOccurrence creates a new occurrence.",
"file": "GrafeasV1Beta1Client/CreateOccurrence/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.CreateOccurrence",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.CreateOccurrenceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Occurrence",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "CreateOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.CreateOccurrence",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_sync",
"title": "containeranalysis DeleteNote Sample",
"description": "DeleteNote deletes the specified note.",
"file": "GrafeasV1Beta1Client/DeleteNote/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.DeleteNote",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.DeleteNoteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "DeleteNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.DeleteNote",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_sync",
"title": "containeranalysis DeleteOccurrence Sample",
"description": "DeleteOccurrence deletes the specified occurrence. For example, use this method to delete an\noccurrence when the occurrence is no longer applicable for the given\nresource.",
"file": "GrafeasV1Beta1Client/DeleteOccurrence/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.DeleteOccurrence",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.DeleteOccurrenceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "DeleteOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.DeleteOccurrence",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 50,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_sync",
"title": "containeranalysis GetNote Sample",
"description": "GetNote gets the specified note.",
"file": "GrafeasV1Beta1Client/GetNote/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.GetNote",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.GetNoteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Note",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "GetNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.GetNote",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_sync",
"title": "containeranalysis GetOccurrence Sample",
"description": "GetOccurrence gets the specified occurrence.",
"file": "GrafeasV1Beta1Client/GetOccurrence/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.GetOccurrence",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.GetOccurrenceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Occurrence",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "GetOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.GetOccurrence",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_sync",
"title": "containeranalysis GetOccurrenceNote Sample",
"description": "GetOccurrenceNote gets the note attached to the specified occurrence. Consumer projects can\nuse this method to get a note that belongs to a provider project.",
"file": "GrafeasV1Beta1Client/GetOccurrenceNote/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOccurrenceNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.GetOccurrenceNote",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.GetOccurrenceNoteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Note",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "GetOccurrenceNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.GetOccurrenceNote",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_sync",
"title": "containeranalysis GetVulnerabilityOccurrencesSummary Sample",
"description": "GetVulnerabilityOccurrencesSummary gets a summary of the number and severity of occurrences.",
"file": "GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetVulnerabilityOccurrencesSummary",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.GetVulnerabilityOccurrencesSummary",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.GetVulnerabilityOccurrencesSummaryRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.VulnerabilityOccurrencesSummary",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "GetVulnerabilityOccurrencesSummary",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_sync",
"title": "containeranalysis ListNoteOccurrences Sample",
"description": "ListNoteOccurrences lists occurrences referencing the specified note. Provider projects can use\nthis method to get all occurrences across consumer projects referencing the\nspecified note.",
"file": "GrafeasV1Beta1Client/ListNoteOccurrences/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListNoteOccurrences",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.ListNoteOccurrences",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.ListNoteOccurrencesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OccurrenceIterator",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "ListNoteOccurrences",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.ListNoteOccurrences",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 59,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_sync",
"title": "containeranalysis ListNotes Sample",
"description": "ListNotes lists notes for the specified project.",
"file": "GrafeasV1Beta1Client/ListNotes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListNotes",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.ListNotes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.ListNotesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NoteIterator",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "ListNotes",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.ListNotes",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 59,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_sync",
"title": "containeranalysis ListOccurrences Sample",
"description": "ListOccurrences lists occurrences for the specified project.",
"file": "GrafeasV1Beta1Client/ListOccurrences/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOccurrences",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.ListOccurrences",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.ListOccurrencesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OccurrenceIterator",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "ListOccurrences",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.ListOccurrences",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 59,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_sync",
"title": "containeranalysis UpdateNote Sample",
"description": "UpdateNote updates the specified note.",
"file": "GrafeasV1Beta1Client/UpdateNote/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.UpdateNote",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.UpdateNoteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Note",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "UpdateNote",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.UpdateNote",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
},
{
"regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_sync",
"title": "containeranalysis UpdateOccurrence Sample",
"description": "UpdateOccurrence updates the specified occurrence.",
"file": "GrafeasV1Beta1Client/UpdateOccurrence/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client.UpdateOccurrence",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "grafeaspb.UpdateOccurrenceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "grafeaspb.Occurrence",
"client": {
"shortName": "GrafeasV1Beta1Client",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1Client"
},
"method": {
"shortName": "UpdateOccurrence",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1.UpdateOccurrence",
"service": {
"shortName": "GrafeasV1Beta1",
"fullName": "grafeas.v1beta1.GrafeasV1Beta1"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 52,
"type": "FULL"
}
]
}
]
}