{ "clientLibrary": { "name": "cloud.google.com/go/networkconnectivity/apiv1alpha1", "version": "1.19.0", "language": "GO", "apis": [ { "id": "google.cloud.networkconnectivity.v1alpha1", "version": "v1alpha1" } ] }, "snippets": [ { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_CreateHub_sync", "title": "networkconnectivity CreateHub Sample", "description": "CreateHub creates a new Hub in a given project and location.", "file": "HubClient/CreateHub/main.go", "language": "GO", "clientMethod": { "shortName": "CreateHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "CreateHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_CreateSpoke_sync", "title": "networkconnectivity CreateSpoke Sample", "description": "CreateSpoke creates a new Spoke in a given project and location.", "file": "HubClient/CreateSpoke/main.go", "language": "GO", "clientMethod": { "shortName": "CreateSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "CreateSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_DeleteHub_sync", "title": "networkconnectivity DeleteHub Sample", "description": "DeleteHub deletes a single Hub.", "file": "HubClient/DeleteHub/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "DeleteHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_DeleteSpoke_sync", "title": "networkconnectivity DeleteSpoke Sample", "description": "DeleteSpoke deletes a single Spoke.", "file": "HubClient/DeleteSpoke/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "DeleteSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_GetHub_sync", "title": "networkconnectivity GetHub Sample", "description": "GetHub gets details of a single Hub.", "file": "HubClient/GetHub/main.go", "language": "GO", "clientMethod": { "shortName": "GetHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "GetHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetHub", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_GetSpoke_sync", "title": "networkconnectivity GetSpoke Sample", "description": "GetSpoke gets details of a single Spoke.", "file": "HubClient/GetSpoke/main.go", "language": "GO", "clientMethod": { "shortName": "GetSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "GetSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_ListHubs_sync", "title": "networkconnectivity ListHubs Sample", "description": "ListHubs lists Hubs in a given project and location.", "file": "HubClient/ListHubs/main.go", "language": "GO", "clientMethod": { "shortName": "ListHubs", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "ListHubs", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_ListSpokes_sync", "title": "networkconnectivity ListSpokes Sample", "description": "ListSpokes lists Spokes in a given project and location.", "file": "HubClient/ListSpokes/main.go", "language": "GO", "clientMethod": { "shortName": "ListSpokes", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "ListSpokes", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_UpdateHub_sync", "title": "networkconnectivity UpdateHub Sample", "description": "UpdateHub updates the parameters of a single Hub.", "file": "HubClient/UpdateHub/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "UpdateHub", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "networkconnectivity_v1alpha1_generated_HubService_UpdateSpoke_sync", "title": "networkconnectivity UpdateSpoke Sample", "description": "UpdateSpoke updates the parameters of a single Spoke.", "file": "HubClient/UpdateSpoke/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.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.v1alpha1.HubClient" }, "method": { "shortName": "UpdateSpoke", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke", "service": { "shortName": "HubService", "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] } ] }