| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/servicedirectory/apiv1", |
| "version": "1.11.5", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.servicedirectory.v1", |
| "version": "v1" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "servicedirectory_v1_generated_LookupService_GetLocation_sync", |
| "title": "servicedirectory GetLocation Sample", |
| "description": "GetLocation gets information about a location.", |
| "file": "LookupClient/GetLocation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetLocation", |
| "fullName": "google.cloud.servicedirectory.v1.LookupClient.GetLocation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.GetLocationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*locationpb.Location", |
| "client": { |
| "shortName": "LookupClient", |
| "fullName": "google.cloud.servicedirectory.v1.LookupClient" |
| }, |
| "method": { |
| "shortName": "GetLocation", |
| "fullName": "google.cloud.location.Locations.GetLocation", |
| "service": { |
| "shortName": "Locations", |
| "fullName": "google.cloud.location.Locations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_LookupService_ListLocations_sync", |
| "title": "servicedirectory ListLocations Sample", |
| "description": "ListLocations lists information about the supported locations for this service.", |
| "file": "LookupClient/ListLocations/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.servicedirectory.v1.LookupClient.ListLocations", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.ListLocationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "LocationIterator", |
| "client": { |
| "shortName": "LookupClient", |
| "fullName": "google.cloud.servicedirectory.v1.LookupClient" |
| }, |
| "method": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.location.Locations.ListLocations", |
| "service": { |
| "shortName": "Locations", |
| "fullName": "google.cloud.location.Locations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_LookupService_ResolveService_sync", |
| "title": "servicedirectory ResolveService Sample", |
| "description": "ResolveService returns a [service][google.cloud.servicedirectory.v1.Service] and its\nassociated endpoints.\nResolving a service is not considered an active developer method.", |
| "file": "LookupClient/ResolveService/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ResolveService", |
| "fullName": "google.cloud.servicedirectory.v1.LookupClient.ResolveService", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.ResolveServiceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.ResolveServiceResponse", |
| "client": { |
| "shortName": "LookupClient", |
| "fullName": "google.cloud.servicedirectory.v1.LookupClient" |
| }, |
| "method": { |
| "shortName": "ResolveService", |
| "fullName": "google.cloud.servicedirectory.v1.LookupService.ResolveService", |
| "service": { |
| "shortName": "LookupService", |
| "fullName": "google.cloud.servicedirectory.v1.LookupService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateEndpoint_sync", |
| "title": "servicedirectory CreateEndpoint Sample", |
| "description": "CreateEndpoint creates an endpoint, and returns the new endpoint.", |
| "file": "RegistrationClient/CreateEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.CreateEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Endpoint", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "CreateEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateNamespace_sync", |
| "title": "servicedirectory CreateNamespace Sample", |
| "description": "CreateNamespace creates a namespace, and returns the new namespace.", |
| "file": "RegistrationClient/CreateNamespace/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateNamespace", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.CreateNamespaceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Namespace", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "CreateNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateService_sync", |
| "title": "servicedirectory CreateService Sample", |
| "description": "CreateService creates a service, and returns the new service.", |
| "file": "RegistrationClient/CreateService/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateService", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.CreateServiceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Service", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "CreateService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateService", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteEndpoint_sync", |
| "title": "servicedirectory DeleteEndpoint Sample", |
| "description": "DeleteEndpoint deletes an endpoint.", |
| "file": "RegistrationClient/DeleteEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.DeleteEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "DeleteEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteNamespace_sync", |
| "title": "servicedirectory DeleteNamespace Sample", |
| "description": "DeleteNamespace deletes a namespace. This also deletes all services and endpoints in\nthe namespace.", |
| "file": "RegistrationClient/DeleteNamespace/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteNamespace", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.DeleteNamespaceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "DeleteNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteService_sync", |
| "title": "servicedirectory DeleteService Sample", |
| "description": "DeleteService deletes a service. This also deletes all endpoints associated with\nthe service.", |
| "file": "RegistrationClient/DeleteService/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteService", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.DeleteServiceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "DeleteService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteService", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_GetEndpoint_sync", |
| "title": "servicedirectory GetEndpoint Sample", |
| "description": "GetEndpoint gets an endpoint.", |
| "file": "RegistrationClient/GetEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.GetEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Endpoint", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "GetEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_GetIamPolicy_sync", |
| "title": "servicedirectory GetIamPolicy Sample", |
| "description": "GetIamPolicy gets the IAM Policy for a resource (namespace or service only).", |
| "file": "RegistrationClient/GetIamPolicy/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetIamPolicy", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetIamPolicy", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.GetIamPolicyRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.Policy", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "GetIamPolicy", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetIamPolicy", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_GetLocation_sync", |
| "title": "servicedirectory GetLocation Sample", |
| "description": "GetLocation gets information about a location.", |
| "file": "RegistrationClient/GetLocation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetLocation", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetLocation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.GetLocationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*locationpb.Location", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "GetLocation", |
| "fullName": "google.cloud.location.Locations.GetLocation", |
| "service": { |
| "shortName": "Locations", |
| "fullName": "google.cloud.location.Locations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_GetNamespace_sync", |
| "title": "servicedirectory GetNamespace Sample", |
| "description": "GetNamespace gets a namespace.", |
| "file": "RegistrationClient/GetNamespace/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetNamespace", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.GetNamespaceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Namespace", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "GetNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetNamespace", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_GetService_sync", |
| "title": "servicedirectory GetService Sample", |
| "description": "GetService gets a service.", |
| "file": "RegistrationClient/GetService/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetService", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.GetServiceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Service", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "GetService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetService", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_ListEndpoints_sync", |
| "title": "servicedirectory ListEndpoints Sample", |
| "description": "ListEndpoints lists all endpoints.", |
| "file": "RegistrationClient/ListEndpoints/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListEndpoints", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListEndpoints", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.ListEndpointsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "EndpointIterator", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "ListEndpoints", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_ListLocations_sync", |
| "title": "servicedirectory ListLocations Sample", |
| "description": "ListLocations lists information about the supported locations for this service.", |
| "file": "RegistrationClient/ListLocations/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListLocations", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.ListLocationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "LocationIterator", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.location.Locations.ListLocations", |
| "service": { |
| "shortName": "Locations", |
| "fullName": "google.cloud.location.Locations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_ListNamespaces_sync", |
| "title": "servicedirectory ListNamespaces Sample", |
| "description": "ListNamespaces lists all namespaces.", |
| "file": "RegistrationClient/ListNamespaces/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListNamespaces", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListNamespaces", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.ListNamespacesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "NamespaceIterator", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "ListNamespaces", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_ListServices_sync", |
| "title": "servicedirectory ListServices Sample", |
| "description": "ListServices lists all services belonging to a namespace.", |
| "file": "RegistrationClient/ListServices/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListServices", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListServices", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.ListServicesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ServiceIterator", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "ListServices", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListServices", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_SetIamPolicy_sync", |
| "title": "servicedirectory SetIamPolicy Sample", |
| "description": "SetIamPolicy sets the IAM Policy for a resource (namespace or service only).", |
| "file": "RegistrationClient/SetIamPolicy/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "SetIamPolicy", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.SetIamPolicy", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.SetIamPolicyRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.Policy", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "SetIamPolicy", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.SetIamPolicy", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_TestIamPermissions_sync", |
| "title": "servicedirectory TestIamPermissions Sample", |
| "description": "TestIamPermissions tests IAM permissions for a resource (namespace or service only).", |
| "file": "RegistrationClient/TestIamPermissions/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "TestIamPermissions", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.TestIamPermissions", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.TestIamPermissionsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.TestIamPermissionsResponse", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "TestIamPermissions", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.TestIamPermissions", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateEndpoint_sync", |
| "title": "servicedirectory UpdateEndpoint Sample", |
| "description": "UpdateEndpoint updates an endpoint.", |
| "file": "RegistrationClient/UpdateEndpoint/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateEndpoint", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.UpdateEndpointRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Endpoint", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "UpdateEndpoint", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateNamespace_sync", |
| "title": "servicedirectory UpdateNamespace Sample", |
| "description": "UpdateNamespace updates a namespace.", |
| "file": "RegistrationClient/UpdateNamespace/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateNamespace", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.UpdateNamespaceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Namespace", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "UpdateNamespace", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateService_sync", |
| "title": "servicedirectory UpdateService Sample", |
| "description": "UpdateService updates a service.", |
| "file": "RegistrationClient/UpdateService/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateService", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "servicedirectorypb.UpdateServiceRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*servicedirectorypb.Service", |
| "client": { |
| "shortName": "RegistrationClient", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" |
| }, |
| "method": { |
| "shortName": "UpdateService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateService", |
| "service": { |
| "shortName": "RegistrationService", |
| "fullName": "google.cloud.servicedirectory.v1.RegistrationService" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |