blob: 3473772c65a11940c8266bb7a356028a6f06332b [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/networkconnectivity/apiv1",
"version": "1.14.6",
"language": "GO",
"apis": [
{
"id": "google.cloud.networkconnectivity.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "networkconnectivity_v1_generated_HubService_AcceptHubSpoke_sync",
"title": "networkconnectivity AcceptHubSpoke Sample",
"description": "AcceptHubSpoke accepts a proposal to attach a Network Connectivity Center spoke\nto a hub.",
"file": "HubClient/AcceptHubSpoke/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AcceptHubSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.AcceptHubSpoke",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.AcceptHubSpokeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AcceptHubSpokeOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "AcceptHubSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubService.AcceptHubSpoke",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_CancelOperation_sync",
"title": "networkconnectivity CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "HubClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.longrunning.Operations.CancelOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_CreateHub_sync",
"title": "networkconnectivity CreateHub Sample",
"description": "CreateHub creates a new Network Connectivity Center hub in the specified project.",
"file": "HubClient/CreateHub/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateHub",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.CreateHub",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.CreateHubRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateHubOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "CreateHub",
"fullName": "google.cloud.networkconnectivity.v1.HubService.CreateHub",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_CreateSpoke_sync",
"title": "networkconnectivity CreateSpoke Sample",
"description": "CreateSpoke creates a Network Connectivity Center spoke.",
"file": "HubClient/CreateSpoke/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.CreateSpoke",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.CreateSpokeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateSpokeOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "CreateSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubService.CreateSpoke",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_DeleteHub_sync",
"title": "networkconnectivity DeleteHub Sample",
"description": "DeleteHub deletes a Network Connectivity Center hub.",
"file": "HubClient/DeleteHub/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteHub",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.DeleteHub",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.DeleteHubRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeleteHubOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "DeleteHub",
"fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteHub",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_DeleteOperation_sync",
"title": "networkconnectivity DeleteOperation Sample",
"description": "DeleteOperation is a utility method from google.longrunning.Operations.",
"file": "HubClient/DeleteOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteOperation",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.DeleteOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.DeleteOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "DeleteOperation",
"fullName": "google.longrunning.Operations.DeleteOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_DeleteSpoke_sync",
"title": "networkconnectivity DeleteSpoke Sample",
"description": "DeleteSpoke deletes a Network Connectivity Center spoke.",
"file": "HubClient/DeleteSpoke/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.DeleteSpoke",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.DeleteSpokeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeleteSpokeOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "DeleteSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteSpoke",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetGroup_sync",
"title": "networkconnectivity GetGroup Sample",
"description": "GetGroup gets details about a Network Connectivity Center group.",
"file": "HubClient/GetGroup/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetGroup",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetGroup",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.GetGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*networkconnectivitypb.Group",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetGroup",
"fullName": "google.cloud.networkconnectivity.v1.HubService.GetGroup",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetHub_sync",
"title": "networkconnectivity GetHub Sample",
"description": "GetHub gets details about a Network Connectivity Center hub.",
"file": "HubClient/GetHub/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetHub",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetHub",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.GetHubRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*networkconnectivitypb.Hub",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetHub",
"fullName": "google.cloud.networkconnectivity.v1.HubService.GetHub",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetIamPolicy_sync",
"title": "networkconnectivity GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.",
"file": "HubClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.GetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.iam.v1.IAMPolicy.GetIamPolicy",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetLocation_sync",
"title": "networkconnectivity GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "HubClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*locationpb.Location",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"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": "networkconnectivity_v1_generated_HubService_GetOperation_sync",
"title": "networkconnectivity GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "HubClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*longrunningpb.Operation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.longrunning.Operations.GetOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetRoute_sync",
"title": "networkconnectivity GetRoute Sample",
"description": "GetRoute gets details about the specified route.",
"file": "HubClient/GetRoute/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRoute",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetRoute",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.GetRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*networkconnectivitypb.Route",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetRoute",
"fullName": "google.cloud.networkconnectivity.v1.HubService.GetRoute",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetRouteTable_sync",
"title": "networkconnectivity GetRouteTable Sample",
"description": "GetRouteTable gets details about a Network Connectivity Center route table.",
"file": "HubClient/GetRouteTable/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRouteTable",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetRouteTable",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.GetRouteTableRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*networkconnectivitypb.RouteTable",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetRouteTable",
"fullName": "google.cloud.networkconnectivity.v1.HubService.GetRouteTable",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_GetSpoke_sync",
"title": "networkconnectivity GetSpoke Sample",
"description": "GetSpoke gets details about a Network Connectivity Center spoke.",
"file": "HubClient/GetSpoke/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.GetSpoke",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.GetSpokeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*networkconnectivitypb.Spoke",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "GetSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubService.GetSpoke",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListGroups_sync",
"title": "networkconnectivity ListGroups Sample",
"description": "ListGroups lists groups in a given hub.",
"file": "HubClient/ListGroups/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListGroups",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListGroups",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "GroupIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListGroups",
"fullName": "google.cloud.networkconnectivity.v1.HubService.ListGroups",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListHubSpokes_sync",
"title": "networkconnectivity ListHubSpokes Sample",
"description": "ListHubSpokes lists the Network Connectivity Center spokes associated with a\nspecified hub and location. The list includes both spokes that are attached\nto the hub and spokes that have been proposed but not yet accepted.",
"file": "HubClient/ListHubSpokes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListHubSpokes",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListHubSpokes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListHubSpokesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SpokeIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListHubSpokes",
"fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubSpokes",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListHubs_sync",
"title": "networkconnectivity ListHubs Sample",
"description": "ListHubs lists the Network Connectivity Center hubs associated with a given project.",
"file": "HubClient/ListHubs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListHubs",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListHubs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListHubsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "HubIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListHubs",
"fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubs",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListLocations_sync",
"title": "networkconnectivity ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "HubClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"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": "networkconnectivity_v1_generated_HubService_ListOperations_sync",
"title": "networkconnectivity ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "HubClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.longrunning.Operations.ListOperations",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListRouteTables_sync",
"title": "networkconnectivity ListRouteTables Sample",
"description": "ListRouteTables lists route tables in a given project.",
"file": "HubClient/ListRouteTables/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListRouteTables",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListRouteTables",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListRouteTablesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RouteTableIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListRouteTables",
"fullName": "google.cloud.networkconnectivity.v1.HubService.ListRouteTables",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListRoutes_sync",
"title": "networkconnectivity ListRoutes Sample",
"description": "ListRoutes lists routes in a given project.",
"file": "HubClient/ListRoutes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListRoutes",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListRoutes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListRoutesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RouteIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListRoutes",
"fullName": "google.cloud.networkconnectivity.v1.HubService.ListRoutes",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_ListSpokes_sync",
"title": "networkconnectivity ListSpokes Sample",
"description": "ListSpokes lists the Network Connectivity Center spokes in a specified project and\nlocation.",
"file": "HubClient/ListSpokes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListSpokes",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.ListSpokes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListSpokesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SpokeIterator",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "ListSpokes",
"fullName": "google.cloud.networkconnectivity.v1.HubService.ListSpokes",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_RejectHubSpoke_sync",
"title": "networkconnectivity RejectHubSpoke Sample",
"description": "RejectHubSpoke rejects a Network Connectivity Center spoke from being attached to a hub.\nIf the spoke was previously in the `ACTIVE` state, it\ntransitions to the `INACTIVE` state and is no longer able to\nconnect to other spokes that are attached to the hub.",
"file": "HubClient/RejectHubSpoke/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RejectHubSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.RejectHubSpoke",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.RejectHubSpokeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RejectHubSpokeOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "RejectHubSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubService.RejectHubSpoke",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_SetIamPolicy_sync",
"title": "networkconnectivity SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.",
"file": "HubClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.SetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.iam.v1.IAMPolicy.SetIamPolicy",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_TestIamPermissions_sync",
"title": "networkconnectivity TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.",
"file": "HubClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.TestIamPermissionsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.TestIamPermissionsResponse",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.iam.v1.IAMPolicy.TestIamPermissions",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_UpdateHub_sync",
"title": "networkconnectivity UpdateHub Sample",
"description": "UpdateHub updates the description and/or labels of a Network Connectivity Center\nhub.",
"file": "HubClient/UpdateHub/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateHub",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.UpdateHub",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.UpdateHubRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UpdateHubOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "UpdateHub",
"fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateHub",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_HubService_UpdateSpoke_sync",
"title": "networkconnectivity UpdateSpoke Sample",
"description": "UpdateSpoke updates the parameters of a Network Connectivity Center spoke.",
"file": "HubClient/UpdateSpoke/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubClient.UpdateSpoke",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.UpdateSpokeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UpdateSpokeOperation",
"client": {
"shortName": "HubClient",
"fullName": "google.cloud.networkconnectivity.v1.HubClient"
},
"method": {
"shortName": "UpdateSpoke",
"fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateSpoke",
"service": {
"shortName": "HubService",
"fullName": "google.cloud.networkconnectivity.v1.HubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_CancelOperation_sync",
"title": "networkconnectivity CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "PolicyBasedRoutingClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.longrunning.Operations.CancelOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync",
"title": "networkconnectivity CreatePolicyBasedRoute Sample",
"description": "CreatePolicyBasedRoute creates a new PolicyBasedRoute in a given project and location.",
"file": "PolicyBasedRoutingClient/CreatePolicyBasedRoute/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreatePolicyBasedRoute",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.CreatePolicyBasedRoute",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.CreatePolicyBasedRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreatePolicyBasedRouteOperation",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "CreatePolicyBasedRoute",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute",
"service": {
"shortName": "PolicyBasedRoutingService",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_DeleteOperation_sync",
"title": "networkconnectivity DeleteOperation Sample",
"description": "DeleteOperation is a utility method from google.longrunning.Operations.",
"file": "PolicyBasedRoutingClient/DeleteOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteOperation",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.DeleteOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.DeleteOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "DeleteOperation",
"fullName": "google.longrunning.Operations.DeleteOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync",
"title": "networkconnectivity DeletePolicyBasedRoute Sample",
"description": "DeletePolicyBasedRoute deletes a single PolicyBasedRoute.",
"file": "PolicyBasedRoutingClient/DeletePolicyBasedRoute/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeletePolicyBasedRoute",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.DeletePolicyBasedRoute",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.DeletePolicyBasedRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeletePolicyBasedRouteOperation",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "DeletePolicyBasedRoute",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute",
"service": {
"shortName": "PolicyBasedRoutingService",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetIamPolicy_sync",
"title": "networkconnectivity GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.",
"file": "PolicyBasedRoutingClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.GetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.iam.v1.IAMPolicy.GetIamPolicy",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetLocation_sync",
"title": "networkconnectivity GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "PolicyBasedRoutingClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*locationpb.Location",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"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": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetOperation_sync",
"title": "networkconnectivity GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "PolicyBasedRoutingClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*longrunningpb.Operation",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.longrunning.Operations.GetOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync",
"title": "networkconnectivity GetPolicyBasedRoute Sample",
"description": "GetPolicyBasedRoute gets details of a single PolicyBasedRoute.",
"file": "PolicyBasedRoutingClient/GetPolicyBasedRoute/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetPolicyBasedRoute",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetPolicyBasedRoute",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.GetPolicyBasedRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*networkconnectivitypb.PolicyBasedRoute",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "GetPolicyBasedRoute",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute",
"service": {
"shortName": "PolicyBasedRoutingService",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListLocations_sync",
"title": "networkconnectivity ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "PolicyBasedRoutingClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"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": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListOperations_sync",
"title": "networkconnectivity ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "PolicyBasedRoutingClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.longrunning.Operations.ListOperations",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync",
"title": "networkconnectivity ListPolicyBasedRoutes Sample",
"description": "ListPolicyBasedRoutes lists PolicyBasedRoutes in a given project and location.",
"file": "PolicyBasedRoutingClient/ListPolicyBasedRoutes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListPolicyBasedRoutes",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.ListPolicyBasedRoutes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "networkconnectivitypb.ListPolicyBasedRoutesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PolicyBasedRouteIterator",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "ListPolicyBasedRoutes",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes",
"service": {
"shortName": "PolicyBasedRoutingService",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_SetIamPolicy_sync",
"title": "networkconnectivity SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.",
"file": "PolicyBasedRoutingClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.SetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.iam.v1.IAMPolicy.SetIamPolicy",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_TestIamPermissions_sync",
"title": "networkconnectivity TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.",
"file": "PolicyBasedRoutingClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.TestIamPermissionsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.TestIamPermissionsResponse",
"client": {
"shortName": "PolicyBasedRoutingClient",
"fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.iam.v1.IAMPolicy.TestIamPermissions",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
}
]
}