| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/vpcaccess/apiv1", |
| "version": "1.6.0", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.vpcaccess.v1", |
| "version": "v1" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_CreateConnector_sync", |
| "title": "vpcaccess CreateConnector Sample", |
| "description": "CreateConnector creates a Serverless VPC Access connector, returns an operation.", |
| "file": "Client/CreateConnector/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateConnector", |
| "fullName": "google.cloud.vpcaccess.v1.Client.CreateConnector", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "vpcaccesspb.CreateConnectorRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateConnectorOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "CreateConnector", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.CreateConnector", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_DeleteConnector_sync", |
| "title": "vpcaccess DeleteConnector Sample", |
| "description": "DeleteConnector deletes a Serverless VPC Access connector. Returns NOT_FOUND if the\nresource does not exist.", |
| "file": "Client/DeleteConnector/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteConnector", |
| "fullName": "google.cloud.vpcaccess.v1.Client.DeleteConnector", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "vpcaccesspb.DeleteConnectorRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteConnectorOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "DeleteConnector", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnector", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 56, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_GetConnector_sync", |
| "title": "vpcaccess GetConnector Sample", |
| "description": "GetConnector gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource\ndoes not exist.", |
| "file": "Client/GetConnector/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetConnector", |
| "fullName": "google.cloud.vpcaccess.v1.Client.GetConnector", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "vpcaccesspb.GetConnectorRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "vpcaccesspb.Connector", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetConnector", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetConnector", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_GetOperation_sync", |
| "title": "vpcaccess GetOperation Sample", |
| "description": "GetOperation is a utility method from google.longrunning.Operations.", |
| "file": "Client/GetOperation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetOperation", |
| "fullName": "google.cloud.vpcaccess.v1.Client.GetOperation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.GetOperationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "longrunningpb.Operation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetOperation", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetOperation", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 54, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListConnectors_sync", |
| "title": "vpcaccess ListConnectors Sample", |
| "description": "ListConnectors lists Serverless VPC Access connectors.", |
| "file": "Client/ListConnectors/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListConnectors", |
| "fullName": "google.cloud.vpcaccess.v1.Client.ListConnectors", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "vpcaccesspb.ListConnectorsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ConnectorIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListConnectors", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListConnectors", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 60, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListLocations_sync", |
| "title": "vpcaccess ListLocations Sample", |
| "description": "ListLocations lists information about the supported locations for this service.", |
| "file": "Client/ListLocations/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.vpcaccess.v1.Client.ListLocations", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.ListLocationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "LocationIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListLocations", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 61, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListOperations_sync", |
| "title": "vpcaccess ListOperations Sample", |
| "description": "ListOperations is a utility method from google.longrunning.Operations.", |
| "file": "Client/ListOperations/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListOperations", |
| "fullName": "google.cloud.vpcaccess.v1.Client.ListOperations", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.ListOperationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "OperationIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.vpcaccess.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListOperations", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListOperations", |
| "service": { |
| "shortName": "VpcAccessService", |
| "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 61, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |