| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/ids/apiv1", |
| "version": "1.3.0", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.ids.v1", |
| "version": "v1" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "ids_v1_generated_IDS_CreateEndpoint_sync", |
| "title": "ids CreateEndpoint Sample", |
| "description": "CreateEndpoint creates a new Endpoint in a given project and location.", |
| "file": "Client/CreateEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateEndpoint", |
| "fullName": "google.cloud.ids.v1.Client.CreateEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "idspb.CreateEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateEndpointOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.ids.v1.Client" |
| }, |
| "method": { |
| "shortName": "CreateEndpoint", |
| "fullName": "google.cloud.ids.v1.IDS.CreateEndpoint", |
| "service": { |
| "shortName": "IDS", |
| "fullName": "google.cloud.ids.v1.IDS" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "ids_v1_generated_IDS_DeleteEndpoint_sync", |
| "title": "ids DeleteEndpoint Sample", |
| "description": "DeleteEndpoint deletes a single Endpoint.", |
| "file": "Client/DeleteEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteEndpoint", |
| "fullName": "google.cloud.ids.v1.Client.DeleteEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "idspb.DeleteEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteEndpointOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.ids.v1.Client" |
| }, |
| "method": { |
| "shortName": "DeleteEndpoint", |
| "fullName": "google.cloud.ids.v1.IDS.DeleteEndpoint", |
| "service": { |
| "shortName": "IDS", |
| "fullName": "google.cloud.ids.v1.IDS" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 56, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "ids_v1_generated_IDS_GetEndpoint_sync", |
| "title": "ids GetEndpoint Sample", |
| "description": "GetEndpoint gets details of a single Endpoint.", |
| "file": "Client/GetEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetEndpoint", |
| "fullName": "google.cloud.ids.v1.Client.GetEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "idspb.GetEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "idspb.Endpoint", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.ids.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetEndpoint", |
| "fullName": "google.cloud.ids.v1.IDS.GetEndpoint", |
| "service": { |
| "shortName": "IDS", |
| "fullName": "google.cloud.ids.v1.IDS" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "ids_v1_generated_IDS_ListEndpoints_sync", |
| "title": "ids ListEndpoints Sample", |
| "description": "ListEndpoints lists Endpoints in a given project and location.", |
| "file": "Client/ListEndpoints/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListEndpoints", |
| "fullName": "google.cloud.ids.v1.Client.ListEndpoints", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "idspb.ListEndpointsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "EndpointIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.ids.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListEndpoints", |
| "fullName": "google.cloud.ids.v1.IDS.ListEndpoints", |
| "service": { |
| "shortName": "IDS", |
| "fullName": "google.cloud.ids.v1.IDS" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 60, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |