blob: 3e9d91ddd228757083349e594202050390cd6461 [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/compute/apiv1",
"version": "1.25.1",
"language": "GO",
"apis": [
{
"id": "google.cloud.compute.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "compute_v1_generated_AcceleratorTypes_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of accelerator types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "AcceleratorTypesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.AcceleratorTypesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListAcceleratorTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AcceleratorTypesScopedListPairIterator",
"client": {
"shortName": "AcceleratorTypesClient",
"fullName": "google.cloud.compute.v1.AcceleratorTypesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.AcceleratorTypes.AggregatedList",
"service": {
"shortName": "AcceleratorTypes",
"fullName": "google.cloud.compute.v1.AcceleratorTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_AcceleratorTypes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified accelerator type.",
"file": "AcceleratorTypesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.AcceleratorTypesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetAcceleratorTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.AcceleratorType",
"client": {
"shortName": "AcceleratorTypesClient",
"fullName": "google.cloud.compute.v1.AcceleratorTypesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.AcceleratorTypes.Get",
"service": {
"shortName": "AcceleratorTypes",
"fullName": "google.cloud.compute.v1.AcceleratorTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_AcceleratorTypes_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of accelerator types that are available to the specified project.",
"file": "AcceleratorTypesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.AcceleratorTypesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListAcceleratorTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AcceleratorTypeIterator",
"client": {
"shortName": "AcceleratorTypesClient",
"fullName": "google.cloud.compute.v1.AcceleratorTypesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.AcceleratorTypes.List",
"service": {
"shortName": "AcceleratorTypes",
"fullName": "google.cloud.compute.v1.AcceleratorTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of addresses. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "AddressesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.AddressesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListAddressesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AddressesScopedListPairIterator",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Addresses.AggregatedList",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified address resource.",
"file": "AddressesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.AddressesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Addresses.Delete",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified address resource.",
"file": "AddressesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.AddressesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Address",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Addresses.Get",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an address resource in the specified project by using the data included in the request.",
"file": "AddressesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.AddressesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Addresses.Insert",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of addresses contained within the specified region.",
"file": "AddressesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.AddressesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListAddressesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AddressIterator",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Addresses.List",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_Move_sync",
"title": "compute Move Sample",
"description": "Move moves the specified address resource.",
"file": "AddressesClient/Move/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Move",
"fullName": "google.cloud.compute.v1.AddressesClient.Move",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.MoveAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "Move",
"fullName": "google.cloud.compute.v1.Addresses.Move",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Addresses_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.",
"file": "AddressesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.AddressesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AddressesClient",
"fullName": "google.cloud.compute.v1.AddressesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.Addresses.SetLabels",
"service": {
"shortName": "Addresses",
"fullName": "google.cloud.compute.v1.Addresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of autoscalers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "AutoscalersClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.AutoscalersClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListAutoscalersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AutoscalersScopedListPairIterator",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Autoscalers.AggregatedList",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified autoscaler.",
"file": "AutoscalersClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.AutoscalersClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Autoscalers.Delete",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified autoscaler resource.",
"file": "AutoscalersClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.AutoscalersClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Autoscaler",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Autoscalers.Get",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an autoscaler in the specified project using the data included in the request.",
"file": "AutoscalersClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.AutoscalersClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Autoscalers.Insert",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of autoscalers contained within the specified zone.",
"file": "AutoscalersClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.AutoscalersClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListAutoscalersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AutoscalerIterator",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Autoscalers.List",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "AutoscalersClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.AutoscalersClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Autoscalers.Patch",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Autoscalers_Update_sync",
"title": "compute Update Sample",
"description": "Update updates an autoscaler in the specified project using the data included in the request.",
"file": "AutoscalersClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.AutoscalersClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "AutoscalersClient",
"fullName": "google.cloud.compute.v1.AutoscalersClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.Autoscalers.Update",
"service": {
"shortName": "Autoscalers",
"fullName": "google.cloud.compute.v1.Autoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_AddSignedUrlKey_sync",
"title": "compute AddSignedUrlKey Sample",
"description": "AddSignedUrlKey adds a key for validating requests with signed URLs for this backend bucket.",
"file": "BackendBucketsClient/AddSignedUrlKey/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.AddSignedUrlKey",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddSignedUrlKeyBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "AddSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendBuckets.AddSignedUrlKey",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified BackendBucket resource.",
"file": "BackendBucketsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.BackendBuckets.Delete",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_sync",
"title": "compute DeleteSignedUrlKey Sample",
"description": "DeleteSignedUrlKey deletes a key for validating requests with signed URLs for this backend bucket.",
"file": "BackendBucketsClient/DeleteSignedUrlKey/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.DeleteSignedUrlKey",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSignedUrlKeyBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "DeleteSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendBuckets.DeleteSignedUrlKey",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified BackendBucket resource.",
"file": "BackendBucketsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.BackendBucket",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.BackendBuckets.Get",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "BackendBucketsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendBuckets.GetIamPolicy",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a BackendBucket resource in the specified project using the data included in the request.",
"file": "BackendBucketsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.BackendBuckets.Insert",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of BackendBucket resources available to the specified project.",
"file": "BackendBucketsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListBackendBucketsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BackendBucketIterator",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.BackendBuckets.List",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "BackendBucketsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.BackendBuckets.Patch",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_sync",
"title": "compute SetEdgeSecurityPolicy Sample",
"description": "SetEdgeSecurityPolicy sets the edge security policy for the specified backend bucket.",
"file": "BackendBucketsClient/SetEdgeSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetEdgeSecurityPolicy",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.SetEdgeSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetEdgeSecurityPolicyBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "SetEdgeSecurityPolicy",
"fullName": "google.cloud.compute.v1.BackendBuckets.SetEdgeSecurityPolicy",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "BackendBucketsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendBuckets.SetIamPolicy",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "BackendBucketsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.BackendBuckets.TestIamPermissions",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendBuckets_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified BackendBucket resource with the data included in the request.",
"file": "BackendBucketsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.BackendBucketsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateBackendBucketRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendBucketsClient",
"fullName": "google.cloud.compute.v1.BackendBucketsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.BackendBuckets.Update",
"service": {
"shortName": "BackendBuckets",
"fullName": "google.cloud.compute.v1.BackendBuckets"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_AddSignedUrlKey_sync",
"title": "compute AddSignedUrlKey Sample",
"description": "AddSignedUrlKey adds a key for validating requests with signed URLs for this backend service.",
"file": "BackendServicesClient/AddSignedUrlKey/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendServicesClient.AddSignedUrlKey",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddSignedUrlKeyBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "AddSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendServices.AddSignedUrlKey",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "BackendServicesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.BackendServicesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListBackendServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BackendServicesScopedListPairIterator",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.BackendServices.AggregatedList",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified BackendService resource.",
"file": "BackendServicesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.BackendServicesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.BackendServices.Delete",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_DeleteSignedUrlKey_sync",
"title": "compute DeleteSignedUrlKey Sample",
"description": "DeleteSignedUrlKey deletes a key for validating requests with signed URLs for this backend service.",
"file": "BackendServicesClient/DeleteSignedUrlKey/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendServicesClient.DeleteSignedUrlKey",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSignedUrlKeyBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "DeleteSignedUrlKey",
"fullName": "google.cloud.compute.v1.BackendServices.DeleteSignedUrlKey",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified BackendService resource.",
"file": "BackendServicesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.BackendServicesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.BackendService",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.BackendServices.Get",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_GetHealth_sync",
"title": "compute GetHealth Sample",
"description": "GetHealth gets the most recent health check results for this BackendService. Example request body: { \"group\": \"/zones/us-east1-b/instanceGroups/lb-backend-example\" }",
"file": "BackendServicesClient/GetHealth/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetHealth",
"fullName": "google.cloud.compute.v1.BackendServicesClient.GetHealth",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetHealthBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.BackendServiceGroupHealth",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "GetHealth",
"fullName": "google.cloud.compute.v1.BackendServices.GetHealth",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "BackendServicesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendServicesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendServices.GetIamPolicy",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .",
"file": "BackendServicesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.BackendServicesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.BackendServices.Insert",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of BackendService resources available to the specified project.",
"file": "BackendServicesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.BackendServicesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListBackendServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BackendServiceIterator",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.BackendServices.List",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_ListUsable_sync",
"title": "compute ListUsable Sample",
"description": "ListUsable retrieves an aggregated list of all usable backend services in the specified project.",
"file": "BackendServicesClient/ListUsable/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListUsable",
"fullName": "google.cloud.compute.v1.BackendServicesClient.ListUsable",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListUsableBackendServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BackendServiceIterator",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "ListUsable",
"fullName": "google.cloud.compute.v1.BackendServices.ListUsable",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "BackendServicesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.BackendServicesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.BackendServices.Patch",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_sync",
"title": "compute SetEdgeSecurityPolicy Sample",
"description": "SetEdgeSecurityPolicy sets the edge security policy for the specified backend service.",
"file": "BackendServicesClient/SetEdgeSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetEdgeSecurityPolicy",
"fullName": "google.cloud.compute.v1.BackendServicesClient.SetEdgeSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetEdgeSecurityPolicyBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "SetEdgeSecurityPolicy",
"fullName": "google.cloud.compute.v1.BackendServices.SetEdgeSecurityPolicy",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "BackendServicesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendServicesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.BackendServices.SetIamPolicy",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_SetSecurityPolicy_sync",
"title": "compute SetSecurityPolicy Sample",
"description": "SetSecurityPolicy sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview",
"file": "BackendServicesClient/SetSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.BackendServicesClient.SetSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSecurityPolicyBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.BackendServices.SetSecurityPolicy",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "BackendServicesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.BackendServicesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.BackendServices.TestIamPermissions",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_BackendServices_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.",
"file": "BackendServicesClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.BackendServicesClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "BackendServicesClient",
"fullName": "google.cloud.compute.v1.BackendServicesClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.BackendServices.Update",
"service": {
"shortName": "BackendServices",
"fullName": "google.cloud.compute.v1.BackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_DiskTypes_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of disk types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "DiskTypesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.DiskTypesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListDiskTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DiskTypesScopedListPairIterator",
"client": {
"shortName": "DiskTypesClient",
"fullName": "google.cloud.compute.v1.DiskTypesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.DiskTypes.AggregatedList",
"service": {
"shortName": "DiskTypes",
"fullName": "google.cloud.compute.v1.DiskTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_DiskTypes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified disk type.",
"file": "DiskTypesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.DiskTypesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetDiskTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.DiskType",
"client": {
"shortName": "DiskTypesClient",
"fullName": "google.cloud.compute.v1.DiskTypesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.DiskTypes.Get",
"service": {
"shortName": "DiskTypes",
"fullName": "google.cloud.compute.v1.DiskTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_DiskTypes_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of disk types available to the specified project.",
"file": "DiskTypesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.DiskTypesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListDiskTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DiskTypeIterator",
"client": {
"shortName": "DiskTypesClient",
"fullName": "google.cloud.compute.v1.DiskTypesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.DiskTypes.List",
"service": {
"shortName": "DiskTypes",
"fullName": "google.cloud.compute.v1.DiskTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_AddResourcePolicies_sync",
"title": "compute AddResourcePolicies Sample",
"description": "AddResourcePolicies adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.",
"file": "DisksClient/AddResourcePolicies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddResourcePolicies",
"fullName": "google.cloud.compute.v1.DisksClient.AddResourcePolicies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddResourcePoliciesDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "AddResourcePolicies",
"fullName": "google.cloud.compute.v1.Disks.AddResourcePolicies",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of persistent disks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "DisksClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.DisksClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListDisksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DisksScopedListPairIterator",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Disks.AggregatedList",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_BulkInsert_sync",
"title": "compute BulkInsert Sample",
"description": "BulkInsert bulk create a set of disks.",
"file": "DisksClient/BulkInsert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.DisksClient.BulkInsert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.BulkInsertDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.Disks.BulkInsert",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_CreateSnapshot_sync",
"title": "compute CreateSnapshot Sample",
"description": "CreateSnapshot creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.",
"file": "DisksClient/CreateSnapshot/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateSnapshot",
"fullName": "google.cloud.compute.v1.DisksClient.CreateSnapshot",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CreateSnapshotDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "CreateSnapshot",
"fullName": "google.cloud.compute.v1.Disks.CreateSnapshot",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.",
"file": "DisksClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.DisksClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Disks.Delete",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified persistent disk.",
"file": "DisksClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.DisksClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Disk",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Disks.Get",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "DisksClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.DisksClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Disks.GetIamPolicy",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, or sourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.",
"file": "DisksClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.DisksClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Disks.Insert",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of persistent disks contained within the specified zone.",
"file": "DisksClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.DisksClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListDisksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DiskIterator",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Disks.List",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_RemoveResourcePolicies_sync",
"title": "compute RemoveResourcePolicies Sample",
"description": "RemoveResourcePolicies removes resource policies from a disk.",
"file": "DisksClient/RemoveResourcePolicies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveResourcePolicies",
"fullName": "google.cloud.compute.v1.DisksClient.RemoveResourcePolicies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveResourcePoliciesDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "RemoveResourcePolicies",
"fullName": "google.cloud.compute.v1.Disks.RemoveResourcePolicies",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_Resize_sync",
"title": "compute Resize Sample",
"description": "Resize resizes the specified persistent disk. You can only increase the size of the disk.",
"file": "DisksClient/Resize/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.DisksClient.Resize",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResizeDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.Disks.Resize",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "DisksClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.DisksClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Disks.SetIamPolicy",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation.",
"file": "DisksClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.DisksClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.Disks.SetLabels",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_StartAsyncReplication_sync",
"title": "compute StartAsyncReplication Sample",
"description": "StartAsyncReplication starts asynchronous replication. Must be invoked on the primary disk.",
"file": "DisksClient/StartAsyncReplication/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StartAsyncReplication",
"fullName": "google.cloud.compute.v1.DisksClient.StartAsyncReplication",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StartAsyncReplicationDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "StartAsyncReplication",
"fullName": "google.cloud.compute.v1.Disks.StartAsyncReplication",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_StopAsyncReplication_sync",
"title": "compute StopAsyncReplication Sample",
"description": "StopAsyncReplication stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.",
"file": "DisksClient/StopAsyncReplication/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StopAsyncReplication",
"fullName": "google.cloud.compute.v1.DisksClient.StopAsyncReplication",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StopAsyncReplicationDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "StopAsyncReplication",
"fullName": "google.cloud.compute.v1.Disks.StopAsyncReplication",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_StopGroupAsyncReplication_sync",
"title": "compute StopGroupAsyncReplication Sample",
"description": "StopGroupAsyncReplication stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.",
"file": "DisksClient/StopGroupAsyncReplication/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StopGroupAsyncReplication",
"fullName": "google.cloud.compute.v1.DisksClient.StopGroupAsyncReplication",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StopGroupAsyncReplicationDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "StopGroupAsyncReplication",
"fullName": "google.cloud.compute.v1.Disks.StopGroupAsyncReplication",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "DisksClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.DisksClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Disks.TestIamPermissions",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Disks_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.",
"file": "DisksClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.DisksClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "DisksClient",
"fullName": "google.cloud.compute.v1.DisksClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.Disks.Update",
"service": {
"shortName": "Disks",
"fullName": "google.cloud.compute.v1.Disks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ExternalVpnGateways_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified externalVpnGateway.",
"file": "ExternalVpnGatewaysClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteExternalVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ExternalVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways.Delete",
"service": {
"shortName": "ExternalVpnGateways",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ExternalVpnGateways_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.",
"file": "ExternalVpnGatewaysClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetExternalVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ExternalVpnGateway",
"client": {
"shortName": "ExternalVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways.Get",
"service": {
"shortName": "ExternalVpnGateways",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ExternalVpnGateways_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a ExternalVpnGateway in the specified project using the data included in the request.",
"file": "ExternalVpnGatewaysClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertExternalVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ExternalVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways.Insert",
"service": {
"shortName": "ExternalVpnGateways",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ExternalVpnGateways_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of ExternalVpnGateway available to the specified project.",
"file": "ExternalVpnGatewaysClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListExternalVpnGatewaysRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ExternalVpnGatewayIterator",
"client": {
"shortName": "ExternalVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways.List",
"service": {
"shortName": "ExternalVpnGateways",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ExternalVpnGateways_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.",
"file": "ExternalVpnGatewaysClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsExternalVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ExternalVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways.SetLabels",
"service": {
"shortName": "ExternalVpnGateways",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "ExternalVpnGatewaysClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsExternalVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "ExternalVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways.TestIamPermissions",
"service": {
"shortName": "ExternalVpnGateways",
"fullName": "google.cloud.compute.v1.ExternalVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_AddAssociation_sync",
"title": "compute AddAssociation Sample",
"description": "AddAssociation inserts an association for the specified firewall policy.",
"file": "FirewallPoliciesClient/AddAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddAssociation",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.AddAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddAssociationFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "AddAssociation",
"fullName": "google.cloud.compute.v1.FirewallPolicies.AddAssociation",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_AddRule_sync",
"title": "compute AddRule Sample",
"description": "AddRule inserts a rule into a firewall policy.",
"file": "FirewallPoliciesClient/AddRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.AddRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddRuleFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.FirewallPolicies.AddRule",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_CloneRules_sync",
"title": "compute CloneRules Sample",
"description": "CloneRules copies rules to the specified firewall policy.",
"file": "FirewallPoliciesClient/CloneRules/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CloneRules",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.CloneRules",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CloneRulesFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "CloneRules",
"fullName": "google.cloud.compute.v1.FirewallPolicies.CloneRules",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified policy.",
"file": "FirewallPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.FirewallPolicies.Delete",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified firewall policy.",
"file": "FirewallPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicy",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.FirewallPolicies.Get",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_GetAssociation_sync",
"title": "compute GetAssociation Sample",
"description": "GetAssociation gets an association with the specified name.",
"file": "FirewallPoliciesClient/GetAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetAssociation",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.GetAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetAssociationFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicyAssociation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "GetAssociation",
"fullName": "google.cloud.compute.v1.FirewallPolicies.GetAssociation",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "FirewallPoliciesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.FirewallPolicies.GetIamPolicy",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_GetRule_sync",
"title": "compute GetRule Sample",
"description": "GetRule gets a rule of the specified priority.",
"file": "FirewallPoliciesClient/GetRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.GetRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRuleFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicyRule",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.FirewallPolicies.GetRule",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new policy in the specified project using the data included in the request.",
"file": "FirewallPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.FirewallPolicies.Insert",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_List_sync",
"title": "compute List Sample",
"description": "List lists all the policies that have been configured for the specified folder or organization.",
"file": "FirewallPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListFirewallPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "FirewallPolicyIterator",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.FirewallPolicies.List",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_ListAssociations_sync",
"title": "compute ListAssociations Sample",
"description": "ListAssociations lists associations of a specified target, i.e., organization or folder.",
"file": "FirewallPoliciesClient/ListAssociations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListAssociations",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.ListAssociations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListAssociationsFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPoliciesListAssociationsResponse",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "ListAssociations",
"fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_Move_sync",
"title": "compute Move Sample",
"description": "Move moves the specified firewall policy.",
"file": "FirewallPoliciesClient/Move/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Move",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.Move",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.MoveFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "Move",
"fullName": "google.cloud.compute.v1.FirewallPolicies.Move",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified policy with the data included in the request.",
"file": "FirewallPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.FirewallPolicies.Patch",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_PatchRule_sync",
"title": "compute PatchRule Sample",
"description": "PatchRule patches a rule of the specified priority.",
"file": "FirewallPoliciesClient/PatchRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.PatchRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRuleFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.FirewallPolicies.PatchRule",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_RemoveAssociation_sync",
"title": "compute RemoveAssociation Sample",
"description": "RemoveAssociation removes an association for the specified firewall policy.",
"file": "FirewallPoliciesClient/RemoveAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveAssociation",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.RemoveAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveAssociationFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "RemoveAssociation",
"fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveAssociation",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_RemoveRule_sync",
"title": "compute RemoveRule Sample",
"description": "RemoveRule deletes a rule of the specified priority.",
"file": "FirewallPoliciesClient/RemoveRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.RemoveRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveRuleFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveRule",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "FirewallPoliciesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.FirewallPolicies.SetIamPolicy",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_FirewallPolicies_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "FirewallPoliciesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "FirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.FirewallPoliciesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.FirewallPolicies.TestIamPermissions",
"service": {
"shortName": "FirewallPolicies",
"fullName": "google.cloud.compute.v1.FirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Firewalls_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified firewall.",
"file": "FirewallsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.FirewallsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteFirewallRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallsClient",
"fullName": "google.cloud.compute.v1.FirewallsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Firewalls.Delete",
"service": {
"shortName": "Firewalls",
"fullName": "google.cloud.compute.v1.Firewalls"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Firewalls_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified firewall.",
"file": "FirewallsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.FirewallsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetFirewallRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Firewall",
"client": {
"shortName": "FirewallsClient",
"fullName": "google.cloud.compute.v1.FirewallsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Firewalls.Get",
"service": {
"shortName": "Firewalls",
"fullName": "google.cloud.compute.v1.Firewalls"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Firewalls_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a firewall rule in the specified project using the data included in the request.",
"file": "FirewallsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.FirewallsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertFirewallRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallsClient",
"fullName": "google.cloud.compute.v1.FirewallsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Firewalls.Insert",
"service": {
"shortName": "Firewalls",
"fullName": "google.cloud.compute.v1.Firewalls"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Firewalls_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of firewall rules available to the specified project.",
"file": "FirewallsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.FirewallsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListFirewallsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "FirewallIterator",
"client": {
"shortName": "FirewallsClient",
"fullName": "google.cloud.compute.v1.FirewallsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Firewalls.List",
"service": {
"shortName": "Firewalls",
"fullName": "google.cloud.compute.v1.Firewalls"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Firewalls_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "FirewallsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.FirewallsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchFirewallRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallsClient",
"fullName": "google.cloud.compute.v1.FirewallsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Firewalls.Patch",
"service": {
"shortName": "Firewalls",
"fullName": "google.cloud.compute.v1.Firewalls"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Firewalls_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.",
"file": "FirewallsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.FirewallsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateFirewallRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "FirewallsClient",
"fullName": "google.cloud.compute.v1.FirewallsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.Firewalls.Update",
"service": {
"shortName": "Firewalls",
"fullName": "google.cloud.compute.v1.Firewalls"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "ForwardingRulesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListForwardingRulesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ForwardingRulesScopedListPairIterator",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ForwardingRules.AggregatedList",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified ForwardingRule resource.",
"file": "ForwardingRulesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ForwardingRules.Delete",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified ForwardingRule resource.",
"file": "ForwardingRulesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ForwardingRule",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ForwardingRules.Get",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a ForwardingRule resource in the specified project and region using the data included in the request.",
"file": "ForwardingRulesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ForwardingRules.Insert",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of ForwardingRule resources available to the specified project and region.",
"file": "ForwardingRulesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListForwardingRulesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ForwardingRuleIterator",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ForwardingRules.List",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.",
"file": "ForwardingRulesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ForwardingRules.Patch",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.",
"file": "ForwardingRulesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.ForwardingRules.SetLabels",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ForwardingRules_SetTarget_sync",
"title": "compute SetTarget Sample",
"description": "SetTarget changes target URL for forwarding rule. The new target should be of the same type as the old target.",
"file": "ForwardingRulesClient/SetTarget/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetTarget",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient.SetTarget",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetTargetForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ForwardingRulesClient",
"fullName": "google.cloud.compute.v1.ForwardingRulesClient"
},
"method": {
"shortName": "SetTarget",
"fullName": "google.cloud.compute.v1.ForwardingRules.SetTarget",
"service": {
"shortName": "ForwardingRules",
"fullName": "google.cloud.compute.v1.ForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalAddresses_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified address resource.",
"file": "GlobalAddressesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteGlobalAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalAddressesClient",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalAddresses.Delete",
"service": {
"shortName": "GlobalAddresses",
"fullName": "google.cloud.compute.v1.GlobalAddresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalAddresses_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified address resource.",
"file": "GlobalAddressesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGlobalAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Address",
"client": {
"shortName": "GlobalAddressesClient",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalAddresses.Get",
"service": {
"shortName": "GlobalAddresses",
"fullName": "google.cloud.compute.v1.GlobalAddresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalAddresses_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an address resource in the specified project by using the data included in the request.",
"file": "GlobalAddressesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertGlobalAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalAddressesClient",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalAddresses.Insert",
"service": {
"shortName": "GlobalAddresses",
"fullName": "google.cloud.compute.v1.GlobalAddresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalAddresses_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of global addresses.",
"file": "GlobalAddressesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListGlobalAddressesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AddressIterator",
"client": {
"shortName": "GlobalAddressesClient",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalAddresses.List",
"service": {
"shortName": "GlobalAddresses",
"fullName": "google.cloud.compute.v1.GlobalAddresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalAddresses_Move_sync",
"title": "compute Move Sample",
"description": "Move moves the specified address resource from one project to another project.",
"file": "GlobalAddressesClient/Move/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Move",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient.Move",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.MoveGlobalAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalAddressesClient",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient"
},
"method": {
"shortName": "Move",
"fullName": "google.cloud.compute.v1.GlobalAddresses.Move",
"service": {
"shortName": "GlobalAddresses",
"fullName": "google.cloud.compute.v1.GlobalAddresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalAddresses_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.",
"file": "GlobalAddressesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsGlobalAddressRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalAddressesClient",
"fullName": "google.cloud.compute.v1.GlobalAddressesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.GlobalAddresses.SetLabels",
"service": {
"shortName": "GlobalAddresses",
"fullName": "google.cloud.compute.v1.GlobalAddresses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified GlobalForwardingRule resource.",
"file": "GlobalForwardingRulesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteGlobalForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.Delete",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.",
"file": "GlobalForwardingRulesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGlobalForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ForwardingRule",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.Get",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a GlobalForwardingRule resource in the specified project using the data included in the request.",
"file": "GlobalForwardingRulesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertGlobalForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.Insert",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of GlobalForwardingRule resources available to the specified project.",
"file": "GlobalForwardingRulesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListGlobalForwardingRulesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ForwardingRuleIterator",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.List",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.",
"file": "GlobalForwardingRulesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchGlobalForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.Patch",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.",
"file": "GlobalForwardingRulesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsGlobalForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetLabels",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalForwardingRules_SetTarget_sync",
"title": "compute SetTarget Sample",
"description": "SetTarget changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.",
"file": "GlobalForwardingRulesClient/SetTarget/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetTarget",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient.SetTarget",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetTargetGlobalForwardingRuleRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalForwardingRulesClient",
"fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient"
},
"method": {
"shortName": "SetTarget",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetTarget",
"service": {
"shortName": "GlobalForwardingRules",
"fullName": "google.cloud.compute.v1.GlobalForwardingRules"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync",
"title": "compute AttachNetworkEndpoints Sample",
"description": "AttachNetworkEndpoints attach a network endpoint to the specified network endpoint group.",
"file": "GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AttachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.AttachNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "AttachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.AttachNetworkEndpoints",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.",
"file": "GlobalNetworkEndpointGroupsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteGlobalNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Delete",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync",
"title": "compute DetachNetworkEndpoints Sample",
"description": "DetachNetworkEndpoints detach the network endpoint from the specified network endpoint group.",
"file": "GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DetachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.DetachNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "DetachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.DetachNetworkEndpoints",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified network endpoint group.",
"file": "GlobalNetworkEndpointGroupsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGlobalNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NetworkEndpointGroup",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Get",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a network endpoint group in the specified project using the parameters that are included in the request.",
"file": "GlobalNetworkEndpointGroupsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertGlobalNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Insert",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of network endpoint groups that are located in the specified project.",
"file": "GlobalNetworkEndpointGroupsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListGlobalNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointGroupIterator",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.List",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync",
"title": "compute ListNetworkEndpoints Sample",
"description": "ListNetworkEndpoints lists the network endpoints in the specified network endpoint group.",
"file": "GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListNetworkEndpoints",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient.ListNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointWithHealthStatusIterator",
"client": {
"shortName": "GlobalNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient"
},
"method": {
"shortName": "ListNetworkEndpoints",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.ListNetworkEndpoints",
"service": {
"shortName": "GlobalNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOperations_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "GlobalOperationsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListGlobalOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationsScopedListPairIterator",
"client": {
"shortName": "GlobalOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.GlobalOperations.AggregatedList",
"service": {
"shortName": "GlobalOperations",
"fullName": "google.cloud.compute.v1.GlobalOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOperations_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Operations resource.",
"file": "GlobalOperationsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteGlobalOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.DeleteGlobalOperationResponse",
"client": {
"shortName": "GlobalOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalOperations.Delete",
"service": {
"shortName": "GlobalOperations",
"fullName": "google.cloud.compute.v1.GlobalOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOperations_Get_sync",
"title": "compute Get Sample",
"description": "Get retrieves the specified Operations resource.",
"file": "GlobalOperationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGlobalOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "GlobalOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalOperations.Get",
"service": {
"shortName": "GlobalOperations",
"fullName": "google.cloud.compute.v1.GlobalOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOperations_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of Operation resources contained within the specified project.",
"file": "GlobalOperationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListGlobalOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "GlobalOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalOperations.List",
"service": {
"shortName": "GlobalOperations",
"fullName": "google.cloud.compute.v1.GlobalOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOperations_Wait_sync",
"title": "compute Wait Sample",
"description": "Wait waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.",
"file": "GlobalOperationsClient/Wait/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Wait",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient.Wait",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.WaitGlobalOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "GlobalOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOperationsClient"
},
"method": {
"shortName": "Wait",
"fullName": "google.cloud.compute.v1.GlobalOperations.Wait",
"service": {
"shortName": "GlobalOperations",
"fullName": "google.cloud.compute.v1.GlobalOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOrganizationOperations_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Operations resource.",
"file": "GlobalOrganizationOperationsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteGlobalOrganizationOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.DeleteGlobalOrganizationOperationResponse",
"client": {
"shortName": "GlobalOrganizationOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Delete",
"service": {
"shortName": "GlobalOrganizationOperations",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOrganizationOperations_Get_sync",
"title": "compute Get Sample",
"description": "Get retrieves the specified Operations resource. Gets a list of operations by making a `list()` request.",
"file": "GlobalOrganizationOperationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGlobalOrganizationOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "GlobalOrganizationOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Get",
"service": {
"shortName": "GlobalOrganizationOperations",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalOrganizationOperations_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of Operation resources contained within the specified organization.",
"file": "GlobalOrganizationOperationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListGlobalOrganizationOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "GlobalOrganizationOperationsClient",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.List",
"service": {
"shortName": "GlobalOrganizationOperations",
"fullName": "google.cloud.compute.v1.GlobalOrganizationOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified global PublicDelegatedPrefix.",
"file": "GlobalPublicDelegatedPrefixesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteGlobalPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalPublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Delete",
"service": {
"shortName": "GlobalPublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified global PublicDelegatedPrefix resource.",
"file": "GlobalPublicDelegatedPrefixesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGlobalPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.PublicDelegatedPrefix",
"client": {
"shortName": "GlobalPublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Get",
"service": {
"shortName": "GlobalPublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request.",
"file": "GlobalPublicDelegatedPrefixesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertGlobalPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalPublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Insert",
"service": {
"shortName": "GlobalPublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync",
"title": "compute List Sample",
"description": "List lists the global PublicDelegatedPrefixes for a project.",
"file": "GlobalPublicDelegatedPrefixesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListGlobalPublicDelegatedPrefixesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PublicDelegatedPrefixIterator",
"client": {
"shortName": "GlobalPublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.List",
"service": {
"shortName": "GlobalPublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "GlobalPublicDelegatedPrefixesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchGlobalPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "GlobalPublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Patch",
"service": {
"shortName": "GlobalPublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "HealthChecksClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.HealthChecksClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListHealthChecksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "HealthChecksScopedListPairIterator",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.HealthChecks.AggregatedList",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified HealthCheck resource.",
"file": "HealthChecksClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.HealthChecksClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.HealthChecks.Delete",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified HealthCheck resource.",
"file": "HealthChecksClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.HealthChecksClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.HealthCheck",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.HealthChecks.Get",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a HealthCheck resource in the specified project using the data included in the request.",
"file": "HealthChecksClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.HealthChecksClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.HealthChecks.Insert",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of HealthCheck resources available to the specified project.",
"file": "HealthChecksClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.HealthChecksClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListHealthChecksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "HealthCheckIterator",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.HealthChecks.List",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "HealthChecksClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.HealthChecksClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.HealthChecks.Patch",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_HealthChecks_Update_sync",
"title": "compute Update Sample",
"description": "Update updates a HealthCheck resource in the specified project using the data included in the request.",
"file": "HealthChecksClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.HealthChecksClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "HealthChecksClient",
"fullName": "google.cloud.compute.v1.HealthChecksClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.HealthChecks.Update",
"service": {
"shortName": "HealthChecks",
"fullName": "google.cloud.compute.v1.HealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ImageFamilyViews_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone.",
"file": "ImageFamilyViewsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ImageFamilyViewsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetImageFamilyViewRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ImageFamilyView",
"client": {
"shortName": "ImageFamilyViewsClient",
"fullName": "google.cloud.compute.v1.ImageFamilyViewsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ImageFamilyViews.Get",
"service": {
"shortName": "ImageFamilyViews",
"fullName": "google.cloud.compute.v1.ImageFamilyViews"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified image.",
"file": "ImagesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ImagesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Images.Delete",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_Deprecate_sync",
"title": "compute Deprecate Sample",
"description": "Deprecate sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.",
"file": "ImagesClient/Deprecate/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Deprecate",
"fullName": "google.cloud.compute.v1.ImagesClient.Deprecate",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeprecateImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "Deprecate",
"fullName": "google.cloud.compute.v1.Images.Deprecate",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified image.",
"file": "ImagesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ImagesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Image",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Images.Get",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_GetFromFamily_sync",
"title": "compute GetFromFamily Sample",
"description": "GetFromFamily returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation.",
"file": "ImagesClient/GetFromFamily/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetFromFamily",
"fullName": "google.cloud.compute.v1.ImagesClient.GetFromFamily",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetFromFamilyImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Image",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "GetFromFamily",
"fullName": "google.cloud.compute.v1.Images.GetFromFamily",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "ImagesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.ImagesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Images.GetIamPolicy",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an image in the specified project using the data included in the request.",
"file": "ImagesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ImagesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Images.Insert",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.",
"file": "ImagesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ImagesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListImagesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ImageIterator",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Images.List",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.",
"file": "ImagesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ImagesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Images.Patch",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "ImagesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.ImagesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Images.SetIamPolicy",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.",
"file": "ImagesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.ImagesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.Images.SetLabels",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Images_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "ImagesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ImagesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "ImagesClient",
"fullName": "google.cloud.compute.v1.ImagesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Images.TestIamPermissions",
"service": {
"shortName": "Images",
"fullName": "google.cloud.compute.v1.Images"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Cancel_sync",
"title": "compute Cancel Sample",
"description": "Cancel cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue.",
"file": "InstanceGroupManagerResizeRequestsClient/Cancel/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Cancel",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient.Cancel",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CancelInstanceGroupManagerResizeRequestRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagerResizeRequestsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient"
},
"method": {
"shortName": "Cancel",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Cancel",
"service": {
"shortName": "InstanceGroupManagerResizeRequests",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.",
"file": "InstanceGroupManagerResizeRequestsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstanceGroupManagerResizeRequestRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagerResizeRequestsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Delete",
"service": {
"shortName": "InstanceGroupManagerResizeRequests",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Get_sync",
"title": "compute Get Sample",
"description": "Get returns all of the details about the specified resize request.",
"file": "InstanceGroupManagerResizeRequestsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstanceGroupManagerResizeRequestRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceGroupManagerResizeRequest",
"client": {
"shortName": "InstanceGroupManagerResizeRequestsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Get",
"service": {
"shortName": "InstanceGroupManagerResizeRequests",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new resize request that starts provisioning VMs immediately or queues VM creation.",
"file": "InstanceGroupManagerResizeRequestsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInstanceGroupManagerResizeRequestRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagerResizeRequestsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Insert",
"service": {
"shortName": "InstanceGroupManagerResizeRequests",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of resize requests that are contained in the managed instance group.",
"file": "InstanceGroupManagerResizeRequestsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstanceGroupManagerResizeRequestsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupManagerResizeRequestIterator",
"client": {
"shortName": "InstanceGroupManagerResizeRequestsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.List",
"service": {
"shortName": "InstanceGroupManagerResizeRequests",
"fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync",
"title": "compute AbandonInstances Sample",
"description": "AbandonInstances flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.",
"file": "InstanceGroupManagersClient/AbandonInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AbandonInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.AbandonInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AbandonInstancesInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "AbandonInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.AbandonInstances",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "InstanceGroupManagersClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupManagersScopedListPairIterator",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.AggregatedList",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync",
"title": "compute ApplyUpdatesToInstances Sample",
"description": "ApplyUpdatesToInstances applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions.",
"file": "InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ApplyUpdatesToInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.ApplyUpdatesToInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ApplyUpdatesToInstancesInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "ApplyUpdatesToInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.ApplyUpdatesToInstances",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_CreateInstances_sync",
"title": "compute CreateInstances Sample",
"description": "CreateInstances creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.",
"file": "InstanceGroupManagersClient/CreateInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.CreateInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CreateInstancesInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "CreateInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.CreateInstances",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information.",
"file": "InstanceGroupManagersClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.Delete",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync",
"title": "compute DeleteInstances Sample",
"description": "DeleteInstances flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.",
"file": "InstanceGroupManagersClient/DeleteInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.DeleteInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstancesInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "DeleteInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeleteInstances",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync",
"title": "compute DeletePerInstanceConfigs Sample",
"description": "DeletePerInstanceConfigs deletes selected per-instance configurations for the managed instance group.",
"file": "InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeletePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.DeletePerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeletePerInstanceConfigsInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "DeletePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeletePerInstanceConfigs",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_Get_sync",
"title": "compute Get Sample",
"description": "Get returns all of the details about the specified managed instance group.",
"file": "InstanceGroupManagersClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceGroupManager",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.Get",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.",
"file": "InstanceGroupManagersClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.Insert",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of managed instance groups that are contained within the specified project and zone.",
"file": "InstanceGroupManagersClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupManagerIterator",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.List",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_ListErrors_sync",
"title": "compute ListErrors Sample",
"description": "ListErrors lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported.",
"file": "InstanceGroupManagersClient/ListErrors/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListErrors",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.ListErrors",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListErrorsInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceManagedByIgmErrorIterator",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "ListErrors",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListErrors",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync",
"title": "compute ListManagedInstances Sample",
"description": "ListManagedInstances lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.",
"file": "InstanceGroupManagersClient/ListManagedInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListManagedInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.ListManagedInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListManagedInstancesInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ManagedInstanceIterator",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "ListManagedInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListManagedInstances",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync",
"title": "compute ListPerInstanceConfigs Sample",
"description": "ListPerInstanceConfigs lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.",
"file": "InstanceGroupManagersClient/ListPerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.ListPerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPerInstanceConfigsInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PerInstanceConfigIterator",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "ListPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListPerInstanceConfigs",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listManagedInstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.",
"file": "InstanceGroupManagersClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.Patch",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync",
"title": "compute PatchPerInstanceConfigs Sample",
"description": "PatchPerInstanceConfigs inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.",
"file": "InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.PatchPerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchPerInstanceConfigsInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "PatchPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.PatchPerInstanceConfigs",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync",
"title": "compute RecreateInstances Sample",
"description": "RecreateInstances flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.",
"file": "InstanceGroupManagersClient/RecreateInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RecreateInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.RecreateInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RecreateInstancesInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "RecreateInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.RecreateInstances",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_Resize_sync",
"title": "compute Resize Sample",
"description": "Resize resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.",
"file": "InstanceGroupManagersClient/Resize/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.Resize",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResizeInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.Resize",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync",
"title": "compute SetInstanceTemplate Sample",
"description": "SetInstanceTemplate specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.",
"file": "InstanceGroupManagersClient/SetInstanceTemplate/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetInstanceTemplate",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.SetInstanceTemplate",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetInstanceTemplateInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "SetInstanceTemplate",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetInstanceTemplate",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync",
"title": "compute SetTargetPools Sample",
"description": "SetTargetPools modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is marked DONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.",
"file": "InstanceGroupManagersClient/SetTargetPools/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetTargetPools",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.SetTargetPools",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetTargetPoolsInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "SetTargetPools",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetTargetPools",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync",
"title": "compute UpdatePerInstanceConfigs Sample",
"description": "UpdatePerInstanceConfigs inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.",
"file": "InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdatePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient.UpdatePerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdatePerInstanceConfigsInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.InstanceGroupManagersClient"
},
"method": {
"shortName": "UpdatePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers.UpdatePerInstanceConfigs",
"service": {
"shortName": "InstanceGroupManagers",
"fullName": "google.cloud.compute.v1.InstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_AddInstances_sync",
"title": "compute AddInstances Sample",
"description": "AddInstances adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.",
"file": "InstanceGroupsClient/AddInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.AddInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddInstancesInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "AddInstances",
"fullName": "google.cloud.compute.v1.InstanceGroups.AddInstances",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "InstanceGroupsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListInstanceGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupsScopedListPairIterator",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstanceGroups.AggregatedList",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.",
"file": "InstanceGroupsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceGroups.Delete",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.",
"file": "InstanceGroupsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceGroup",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceGroups.Get",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an instance group in the specified project using the parameters that are included in the request.",
"file": "InstanceGroupsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceGroups.Insert",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.",
"file": "InstanceGroupsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstanceGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupIterator",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceGroups.List",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_ListInstances_sync",
"title": "compute ListInstances Sample",
"description": "ListInstances lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators.",
"file": "InstanceGroupsClient/ListInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.ListInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstancesInstanceGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceWithNamedPortsIterator",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "ListInstances",
"fullName": "google.cloud.compute.v1.InstanceGroups.ListInstances",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_RemoveInstances_sync",
"title": "compute RemoveInstances Sample",
"description": "RemoveInstances removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.",
"file": "InstanceGroupsClient/RemoveInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveInstances",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.RemoveInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveInstancesInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "RemoveInstances",
"fullName": "google.cloud.compute.v1.InstanceGroups.RemoveInstances",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceGroups_SetNamedPorts_sync",
"title": "compute SetNamedPorts Sample",
"description": "SetNamedPorts sets the named ports for the specified instance group.",
"file": "InstanceGroupsClient/SetNamedPorts/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetNamedPorts",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient.SetNamedPorts",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetNamedPortsInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceGroupsClient",
"fullName": "google.cloud.compute.v1.InstanceGroupsClient"
},
"method": {
"shortName": "SetNamedPorts",
"fullName": "google.cloud.compute.v1.InstanceGroups.SetNamedPorts",
"service": {
"shortName": "InstanceGroups",
"fullName": "google.cloud.compute.v1.InstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceSettingsService_Get_sync",
"title": "compute Get Sample",
"description": "Get get Instance settings.",
"file": "InstanceSettingsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceSettingsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstanceSettingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceSettings",
"client": {
"shortName": "InstanceSettingsClient",
"fullName": "google.cloud.compute.v1.InstanceSettingsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceSettingsService.Get",
"service": {
"shortName": "InstanceSettingsService",
"fullName": "google.cloud.compute.v1.InstanceSettingsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceSettingsService_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patch Instance settings",
"file": "InstanceSettingsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InstanceSettingsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchInstanceSettingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceSettingsClient",
"fullName": "google.cloud.compute.v1.InstanceSettingsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InstanceSettingsService.Patch",
"service": {
"shortName": "InstanceSettingsService",
"fullName": "google.cloud.compute.v1.InstanceSettingsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "InstanceTemplatesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListInstanceTemplatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceTemplatesScopedListPairIterator",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.",
"file": "InstanceTemplatesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstanceTemplates.Delete",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified instance template.",
"file": "InstanceTemplatesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceTemplate",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstanceTemplates.Get",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "InstanceTemplatesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.InstanceTemplates.GetIamPolicy",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.",
"file": "InstanceTemplatesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstanceTemplates.Insert",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of instance templates that are contained within the specified project.",
"file": "InstanceTemplatesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstanceTemplatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceTemplateIterator",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstanceTemplates.List",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "InstanceTemplatesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.InstanceTemplates.SetIamPolicy",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstanceTemplates_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "InstanceTemplatesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "InstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.InstanceTemplatesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.InstanceTemplates.TestIamPermissions",
"service": {
"shortName": "InstanceTemplates",
"fullName": "google.cloud.compute.v1.InstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_AddAccessConfig_sync",
"title": "compute AddAccessConfig Sample",
"description": "AddAccessConfig adds an access config to an instance's network interface.",
"file": "InstancesClient/AddAccessConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddAccessConfig",
"fullName": "google.cloud.compute.v1.InstancesClient.AddAccessConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddAccessConfigInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "AddAccessConfig",
"fullName": "google.cloud.compute.v1.Instances.AddAccessConfig",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_AddResourcePolicies_sync",
"title": "compute AddResourcePolicies Sample",
"description": "AddResourcePolicies adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.",
"file": "InstancesClient/AddResourcePolicies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddResourcePolicies",
"fullName": "google.cloud.compute.v1.InstancesClient.AddResourcePolicies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddResourcePoliciesInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "AddResourcePolicies",
"fullName": "google.cloud.compute.v1.Instances.AddResourcePolicies",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "InstancesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstancesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListInstancesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstancesScopedListPairIterator",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Instances.AggregatedList",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_AttachDisk_sync",
"title": "compute AttachDisk Sample",
"description": "AttachDisk attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.",
"file": "InstancesClient/AttachDisk/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AttachDisk",
"fullName": "google.cloud.compute.v1.InstancesClient.AttachDisk",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AttachDiskInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "AttachDisk",
"fullName": "google.cloud.compute.v1.Instances.AttachDisk",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_BulkInsert_sync",
"title": "compute BulkInsert Sample",
"description": "BulkInsert creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.",
"file": "InstancesClient/BulkInsert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.InstancesClient.BulkInsert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.BulkInsertInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.Instances.BulkInsert",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Instance resource. For more information, see Deleting an instance.",
"file": "InstancesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstancesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Instances.Delete",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_DeleteAccessConfig_sync",
"title": "compute DeleteAccessConfig Sample",
"description": "DeleteAccessConfig deletes an access config from an instance's network interface.",
"file": "InstancesClient/DeleteAccessConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteAccessConfig",
"fullName": "google.cloud.compute.v1.InstancesClient.DeleteAccessConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteAccessConfigInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "DeleteAccessConfig",
"fullName": "google.cloud.compute.v1.Instances.DeleteAccessConfig",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_DetachDisk_sync",
"title": "compute DetachDisk Sample",
"description": "DetachDisk detaches a disk from an instance.",
"file": "InstancesClient/DetachDisk/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DetachDisk",
"fullName": "google.cloud.compute.v1.InstancesClient.DetachDisk",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DetachDiskInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "DetachDisk",
"fullName": "google.cloud.compute.v1.Instances.DetachDisk",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Instance resource.",
"file": "InstancesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstancesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Instance",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Instances.Get",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_GetEffectiveFirewalls_sync",
"title": "compute GetEffectiveFirewalls Sample",
"description": "GetEffectiveFirewalls returns effective firewalls applied to an interface of the instance.",
"file": "InstancesClient/GetEffectiveFirewalls/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetEffectiveFirewalls",
"fullName": "google.cloud.compute.v1.InstancesClient.GetEffectiveFirewalls",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetEffectiveFirewallsInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstancesGetEffectiveFirewallsResponse",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "GetEffectiveFirewalls",
"fullName": "google.cloud.compute.v1.Instances.GetEffectiveFirewalls",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_GetGuestAttributes_sync",
"title": "compute GetGuestAttributes Sample",
"description": "GetGuestAttributes returns the specified guest attributes entry.",
"file": "InstancesClient/GetGuestAttributes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetGuestAttributes",
"fullName": "google.cloud.compute.v1.InstancesClient.GetGuestAttributes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetGuestAttributesInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.GuestAttributes",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "GetGuestAttributes",
"fullName": "google.cloud.compute.v1.Instances.GetGuestAttributes",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "InstancesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.InstancesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Instances.GetIamPolicy",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_GetScreenshot_sync",
"title": "compute GetScreenshot Sample",
"description": "GetScreenshot returns the screenshot from the specified instance.",
"file": "InstancesClient/GetScreenshot/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetScreenshot",
"fullName": "google.cloud.compute.v1.InstancesClient.GetScreenshot",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetScreenshotInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Screenshot",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "GetScreenshot",
"fullName": "google.cloud.compute.v1.Instances.GetScreenshot",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_GetSerialPortOutput_sync",
"title": "compute GetSerialPortOutput Sample",
"description": "GetSerialPortOutput returns the last 1 MB of serial port output from the specified instance.",
"file": "InstancesClient/GetSerialPortOutput/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetSerialPortOutput",
"fullName": "google.cloud.compute.v1.InstancesClient.GetSerialPortOutput",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSerialPortOutputInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SerialPortOutput",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "GetSerialPortOutput",
"fullName": "google.cloud.compute.v1.Instances.GetSerialPortOutput",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync",
"title": "compute GetShieldedInstanceIdentity Sample",
"description": "GetShieldedInstanceIdentity returns the Shielded Instance Identity of an instance",
"file": "InstancesClient/GetShieldedInstanceIdentity/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetShieldedInstanceIdentity",
"fullName": "google.cloud.compute.v1.InstancesClient.GetShieldedInstanceIdentity",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetShieldedInstanceIdentityInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ShieldedInstanceIdentity",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "GetShieldedInstanceIdentity",
"fullName": "google.cloud.compute.v1.Instances.GetShieldedInstanceIdentity",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an instance resource in the specified project using the data included in the request.",
"file": "InstancesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstancesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Instances.Insert",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of instances contained within the specified zone.",
"file": "InstancesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstancesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstancesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceIterator",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Instances.List",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_ListReferrers_sync",
"title": "compute ListReferrers Sample",
"description": "ListReferrers retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.",
"file": "InstancesClient/ListReferrers/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListReferrers",
"fullName": "google.cloud.compute.v1.InstancesClient.ListReferrers",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListReferrersInstancesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ReferenceIterator",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "ListReferrers",
"fullName": "google.cloud.compute.v1.Instances.ListReferrers",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_PerformMaintenance_sync",
"title": "compute PerformMaintenance Sample",
"description": "PerformMaintenance perform a manual maintenance on the instance.",
"file": "InstancesClient/PerformMaintenance/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PerformMaintenance",
"fullName": "google.cloud.compute.v1.InstancesClient.PerformMaintenance",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PerformMaintenanceInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "PerformMaintenance",
"fullName": "google.cloud.compute.v1.Instances.PerformMaintenance",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_RemoveResourcePolicies_sync",
"title": "compute RemoveResourcePolicies Sample",
"description": "RemoveResourcePolicies removes resource policies from an instance.",
"file": "InstancesClient/RemoveResourcePolicies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveResourcePolicies",
"fullName": "google.cloud.compute.v1.InstancesClient.RemoveResourcePolicies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveResourcePoliciesInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "RemoveResourcePolicies",
"fullName": "google.cloud.compute.v1.Instances.RemoveResourcePolicies",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Reset_sync",
"title": "compute Reset Sample",
"description": "Reset performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.",
"file": "InstancesClient/Reset/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Reset",
"fullName": "google.cloud.compute.v1.InstancesClient.Reset",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResetInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Reset",
"fullName": "google.cloud.compute.v1.Instances.Reset",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Resume_sync",
"title": "compute Resume Sample",
"description": "Resume resumes an instance that was suspended using the instances().suspend method.",
"file": "InstancesClient/Resume/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Resume",
"fullName": "google.cloud.compute.v1.InstancesClient.Resume",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResumeInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Resume",
"fullName": "google.cloud.compute.v1.Instances.Resume",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SendDiagnosticInterrupt_sync",
"title": "compute SendDiagnosticInterrupt Sample",
"description": "SendDiagnosticInterrupt sends diagnostic interrupt to the instance.",
"file": "InstancesClient/SendDiagnosticInterrupt/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SendDiagnosticInterrupt",
"fullName": "google.cloud.compute.v1.InstancesClient.SendDiagnosticInterrupt",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SendDiagnosticInterruptInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SendDiagnosticInterruptInstanceResponse",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SendDiagnosticInterrupt",
"fullName": "google.cloud.compute.v1.Instances.SendDiagnosticInterrupt",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetDeletionProtection_sync",
"title": "compute SetDeletionProtection Sample",
"description": "SetDeletionProtection sets deletion protection on the instance.",
"file": "InstancesClient/SetDeletionProtection/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetDeletionProtection",
"fullName": "google.cloud.compute.v1.InstancesClient.SetDeletionProtection",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetDeletionProtectionInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetDeletionProtection",
"fullName": "google.cloud.compute.v1.Instances.SetDeletionProtection",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetDiskAutoDelete_sync",
"title": "compute SetDiskAutoDelete Sample",
"description": "SetDiskAutoDelete sets the auto-delete flag for a disk attached to an instance.",
"file": "InstancesClient/SetDiskAutoDelete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetDiskAutoDelete",
"fullName": "google.cloud.compute.v1.InstancesClient.SetDiskAutoDelete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetDiskAutoDeleteInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetDiskAutoDelete",
"fullName": "google.cloud.compute.v1.Instances.SetDiskAutoDelete",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "InstancesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.InstancesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Instances.SetIamPolicy",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.",
"file": "InstancesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.InstancesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.Instances.SetLabels",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetMachineResources_sync",
"title": "compute SetMachineResources Sample",
"description": "SetMachineResources changes the number and/or type of accelerator for a stopped instance to the values specified in the request.",
"file": "InstancesClient/SetMachineResources/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetMachineResources",
"fullName": "google.cloud.compute.v1.InstancesClient.SetMachineResources",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetMachineResourcesInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetMachineResources",
"fullName": "google.cloud.compute.v1.Instances.SetMachineResources",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetMachineType_sync",
"title": "compute SetMachineType Sample",
"description": "SetMachineType changes the machine type for a stopped instance to the machine type specified in the request.",
"file": "InstancesClient/SetMachineType/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetMachineType",
"fullName": "google.cloud.compute.v1.InstancesClient.SetMachineType",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetMachineTypeInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetMachineType",
"fullName": "google.cloud.compute.v1.Instances.SetMachineType",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetMetadata_sync",
"title": "compute SetMetadata Sample",
"description": "SetMetadata sets metadata for the specified instance to the data included in the request.",
"file": "InstancesClient/SetMetadata/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetMetadata",
"fullName": "google.cloud.compute.v1.InstancesClient.SetMetadata",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetMetadataInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetMetadata",
"fullName": "google.cloud.compute.v1.Instances.SetMetadata",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetMinCpuPlatform_sync",
"title": "compute SetMinCpuPlatform Sample",
"description": "SetMinCpuPlatform changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.",
"file": "InstancesClient/SetMinCpuPlatform/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetMinCpuPlatform",
"fullName": "google.cloud.compute.v1.InstancesClient.SetMinCpuPlatform",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetMinCpuPlatformInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetMinCpuPlatform",
"fullName": "google.cloud.compute.v1.Instances.SetMinCpuPlatform",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetName_sync",
"title": "compute SetName Sample",
"description": "SetName sets name of an instance.",
"file": "InstancesClient/SetName/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetName",
"fullName": "google.cloud.compute.v1.InstancesClient.SetName",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetNameInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetName",
"fullName": "google.cloud.compute.v1.Instances.SetName",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetScheduling_sync",
"title": "compute SetScheduling Sample",
"description": "SetScheduling sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.",
"file": "InstancesClient/SetScheduling/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetScheduling",
"fullName": "google.cloud.compute.v1.InstancesClient.SetScheduling",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSchedulingInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetScheduling",
"fullName": "google.cloud.compute.v1.Instances.SetScheduling",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetSecurityPolicy_sync",
"title": "compute SetSecurityPolicy Sample",
"description": "SetSecurityPolicy sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview",
"file": "InstancesClient/SetSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.InstancesClient.SetSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSecurityPolicyInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.Instances.SetSecurityPolicy",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetServiceAccount_sync",
"title": "compute SetServiceAccount Sample",
"description": "SetServiceAccount sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.",
"file": "InstancesClient/SetServiceAccount/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetServiceAccount",
"fullName": "google.cloud.compute.v1.InstancesClient.SetServiceAccount",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetServiceAccountInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetServiceAccount",
"fullName": "google.cloud.compute.v1.Instances.SetServiceAccount",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync",
"title": "compute SetShieldedInstanceIntegrityPolicy Sample",
"description": "SetShieldedInstanceIntegrityPolicy sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetShieldedInstanceIntegrityPolicy",
"fullName": "google.cloud.compute.v1.InstancesClient.SetShieldedInstanceIntegrityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetShieldedInstanceIntegrityPolicyInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetShieldedInstanceIntegrityPolicy",
"fullName": "google.cloud.compute.v1.Instances.SetShieldedInstanceIntegrityPolicy",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SetTags_sync",
"title": "compute SetTags Sample",
"description": "SetTags sets network tags for the specified instance to the data included in the request.",
"file": "InstancesClient/SetTags/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetTags",
"fullName": "google.cloud.compute.v1.InstancesClient.SetTags",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetTagsInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SetTags",
"fullName": "google.cloud.compute.v1.Instances.SetTags",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_SimulateMaintenanceEvent_sync",
"title": "compute SimulateMaintenanceEvent Sample",
"description": "SimulateMaintenanceEvent simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.",
"file": "InstancesClient/SimulateMaintenanceEvent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SimulateMaintenanceEvent",
"fullName": "google.cloud.compute.v1.InstancesClient.SimulateMaintenanceEvent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SimulateMaintenanceEventInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "SimulateMaintenanceEvent",
"fullName": "google.cloud.compute.v1.Instances.SimulateMaintenanceEvent",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Start_sync",
"title": "compute Start Sample",
"description": "Start starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.",
"file": "InstancesClient/Start/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Start",
"fullName": "google.cloud.compute.v1.InstancesClient.Start",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StartInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Start",
"fullName": "google.cloud.compute.v1.Instances.Start",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_StartWithEncryptionKey_sync",
"title": "compute StartWithEncryptionKey Sample",
"description": "StartWithEncryptionKey starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.",
"file": "InstancesClient/StartWithEncryptionKey/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StartWithEncryptionKey",
"fullName": "google.cloud.compute.v1.InstancesClient.StartWithEncryptionKey",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StartWithEncryptionKeyInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "StartWithEncryptionKey",
"fullName": "google.cloud.compute.v1.Instances.StartWithEncryptionKey",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Stop_sync",
"title": "compute Stop Sample",
"description": "Stop stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.",
"file": "InstancesClient/Stop/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Stop",
"fullName": "google.cloud.compute.v1.InstancesClient.Stop",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StopInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Stop",
"fullName": "google.cloud.compute.v1.Instances.Stop",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Suspend_sync",
"title": "compute Suspend Sample",
"description": "Suspend this method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.",
"file": "InstancesClient/Suspend/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Suspend",
"fullName": "google.cloud.compute.v1.InstancesClient.Suspend",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SuspendInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Suspend",
"fullName": "google.cloud.compute.v1.Instances.Suspend",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "InstancesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.InstancesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Instances.TestIamPermissions",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_Update_sync",
"title": "compute Update Sample",
"description": "Update updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.",
"file": "InstancesClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.InstancesClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.Instances.Update",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_UpdateAccessConfig_sync",
"title": "compute UpdateAccessConfig Sample",
"description": "UpdateAccessConfig updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "InstancesClient/UpdateAccessConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateAccessConfig",
"fullName": "google.cloud.compute.v1.InstancesClient.UpdateAccessConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateAccessConfigInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "UpdateAccessConfig",
"fullName": "google.cloud.compute.v1.Instances.UpdateAccessConfig",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_UpdateDisplayDevice_sync",
"title": "compute UpdateDisplayDevice Sample",
"description": "UpdateDisplayDevice updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "InstancesClient/UpdateDisplayDevice/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateDisplayDevice",
"fullName": "google.cloud.compute.v1.InstancesClient.UpdateDisplayDevice",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateDisplayDeviceInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "UpdateDisplayDevice",
"fullName": "google.cloud.compute.v1.Instances.UpdateDisplayDevice",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_UpdateNetworkInterface_sync",
"title": "compute UpdateNetworkInterface Sample",
"description": "UpdateNetworkInterface updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.",
"file": "InstancesClient/UpdateNetworkInterface/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateNetworkInterface",
"fullName": "google.cloud.compute.v1.InstancesClient.UpdateNetworkInterface",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateNetworkInterfaceInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "UpdateNetworkInterface",
"fullName": "google.cloud.compute.v1.Instances.UpdateNetworkInterface",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync",
"title": "compute UpdateShieldedInstanceConfig Sample",
"description": "UpdateShieldedInstanceConfig updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "InstancesClient/UpdateShieldedInstanceConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateShieldedInstanceConfig",
"fullName": "google.cloud.compute.v1.InstancesClient.UpdateShieldedInstanceConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateShieldedInstanceConfigInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstancesClient",
"fullName": "google.cloud.compute.v1.InstancesClient"
},
"method": {
"shortName": "UpdateShieldedInstanceConfig",
"fullName": "google.cloud.compute.v1.Instances.UpdateShieldedInstanceConfig",
"service": {
"shortName": "Instances",
"fullName": "google.cloud.compute.v1.Instances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "InstantSnapshotsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListInstantSnapshotsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstantSnapshotsScopedListPairIterator",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.",
"file": "InstantSnapshotsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InstantSnapshots.Delete",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified InstantSnapshot resource in the specified zone.",
"file": "InstantSnapshotsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstantSnapshot",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InstantSnapshots.Get",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "InstantSnapshotsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an instant snapshot in the specified zone.",
"file": "InstantSnapshotsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InstantSnapshots.Insert",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of InstantSnapshot resources contained within the specified zone.",
"file": "InstantSnapshotsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstantSnapshotsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstantSnapshotIterator",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InstantSnapshots.List",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "InstantSnapshotsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.InstantSnapshots.SetIamPolicy",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.",
"file": "InstantSnapshotsClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InstantSnapshots_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "InstantSnapshotsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "InstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.InstantSnapshotsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.InstantSnapshots.TestIamPermissions",
"service": {
"shortName": "InstantSnapshots",
"fullName": "google.cloud.compute.v1.InstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "InterconnectAttachmentsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListInterconnectAttachmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InterconnectAttachmentsScopedListPairIterator",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.AggregatedList",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified interconnect attachment.",
"file": "InterconnectAttachmentsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInterconnectAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.Delete",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified interconnect attachment.",
"file": "InterconnectAttachmentsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInterconnectAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InterconnectAttachment",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.Get",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an InterconnectAttachment in the specified project using the data included in the request.",
"file": "InterconnectAttachmentsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInterconnectAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.Insert",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of interconnect attachments contained within the specified region.",
"file": "InterconnectAttachmentsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInterconnectAttachmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InterconnectAttachmentIterator",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.List",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "InterconnectAttachmentsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchInterconnectAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.Patch",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectAttachments_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.",
"file": "InterconnectAttachmentsClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsInterconnectAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectAttachmentsClient",
"fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.InterconnectAttachments.SetLabels",
"service": {
"shortName": "InterconnectAttachments",
"fullName": "google.cloud.compute.v1.InterconnectAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectLocations_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.",
"file": "InterconnectLocationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectLocationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInterconnectLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InterconnectLocation",
"client": {
"shortName": "InterconnectLocationsClient",
"fullName": "google.cloud.compute.v1.InterconnectLocationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectLocations.Get",
"service": {
"shortName": "InterconnectLocations",
"fullName": "google.cloud.compute.v1.InterconnectLocations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectLocations_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of interconnect locations available to the specified project.",
"file": "InterconnectLocationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectLocationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInterconnectLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InterconnectLocationIterator",
"client": {
"shortName": "InterconnectLocationsClient",
"fullName": "google.cloud.compute.v1.InterconnectLocationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectLocations.List",
"service": {
"shortName": "InterconnectLocations",
"fullName": "google.cloud.compute.v1.InterconnectLocations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectRemoteLocations_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.",
"file": "InterconnectRemoteLocationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInterconnectRemoteLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InterconnectRemoteLocation",
"client": {
"shortName": "InterconnectRemoteLocationsClient",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.Get",
"service": {
"shortName": "InterconnectRemoteLocations",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_InterconnectRemoteLocations_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of interconnect remote locations available to the specified project.",
"file": "InterconnectRemoteLocationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInterconnectRemoteLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InterconnectRemoteLocationIterator",
"client": {
"shortName": "InterconnectRemoteLocationsClient",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.List",
"service": {
"shortName": "InterconnectRemoteLocations",
"fullName": "google.cloud.compute.v1.InterconnectRemoteLocations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Interconnect.",
"file": "InterconnectsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.InterconnectsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Interconnects.Delete",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Interconnect. Get a list of available Interconnects by making a list() request.",
"file": "InterconnectsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.InterconnectsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Interconnect",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Interconnects.Get",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_GetDiagnostics_sync",
"title": "compute GetDiagnostics Sample",
"description": "GetDiagnostics returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.",
"file": "InterconnectsClient/GetDiagnostics/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetDiagnostics",
"fullName": "google.cloud.compute.v1.InterconnectsClient.GetDiagnostics",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetDiagnosticsInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InterconnectsGetDiagnosticsResponse",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "GetDiagnostics",
"fullName": "google.cloud.compute.v1.Interconnects.GetDiagnostics",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_GetMacsecConfig_sync",
"title": "compute GetMacsecConfig Sample",
"description": "GetMacsecConfig returns the interconnectMacsecConfig for the specified Interconnect.",
"file": "InterconnectsClient/GetMacsecConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetMacsecConfig",
"fullName": "google.cloud.compute.v1.InterconnectsClient.GetMacsecConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetMacsecConfigInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InterconnectsGetMacsecConfigResponse",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "GetMacsecConfig",
"fullName": "google.cloud.compute.v1.Interconnects.GetMacsecConfig",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an Interconnect in the specified project using the data included in the request.",
"file": "InterconnectsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.InterconnectsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Interconnects.Insert",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of Interconnects available to the specified project.",
"file": "InterconnectsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.InterconnectsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInterconnectsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InterconnectIterator",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Interconnects.List",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "InterconnectsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.InterconnectsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Interconnects.Patch",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Interconnects_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.",
"file": "InterconnectsClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.InterconnectsClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsInterconnectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "InterconnectsClient",
"fullName": "google.cloud.compute.v1.InterconnectsClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.Interconnects.SetLabels",
"service": {
"shortName": "Interconnects",
"fullName": "google.cloud.compute.v1.Interconnects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_LicenseCodes_Get_sync",
"title": "compute Get Sample",
"description": "Get return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicenseCodesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.LicenseCodesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetLicenseCodeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.LicenseCode",
"client": {
"shortName": "LicenseCodesClient",
"fullName": "google.cloud.compute.v1.LicenseCodesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.LicenseCodes.Get",
"service": {
"shortName": "LicenseCodes",
"fullName": "google.cloud.compute.v1.LicenseCodes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_LicenseCodes_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicenseCodesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.LicenseCodesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsLicenseCodeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "LicenseCodesClient",
"fullName": "google.cloud.compute.v1.LicenseCodesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.LicenseCodes.TestIamPermissions",
"service": {
"shortName": "LicenseCodes",
"fullName": "google.cloud.compute.v1.LicenseCodes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.LicensesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteLicenseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Licenses.Delete",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.LicensesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetLicenseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.License",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Licenses.Get",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.LicensesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyLicenseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Licenses.GetIamPolicy",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.LicensesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertLicenseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Licenses.Insert",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.LicensesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListLicensesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LicenseIterator",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Licenses.List",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.LicensesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyLicenseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Licenses.SetIamPolicy",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Licenses_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.",
"file": "LicensesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.LicensesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsLicenseRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "LicensesClient",
"fullName": "google.cloud.compute.v1.LicensesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Licenses.TestIamPermissions",
"service": {
"shortName": "Licenses",
"fullName": "google.cloud.compute.v1.Licenses"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.",
"file": "MachineImagesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.MachineImagesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteMachineImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.MachineImages.Delete",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified machine image.",
"file": "MachineImagesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.MachineImagesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetMachineImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.MachineImage",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.MachineImages.Get",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "MachineImagesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.MachineImagesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyMachineImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.MachineImages.GetIamPolicy",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.",
"file": "MachineImagesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.MachineImagesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertMachineImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.MachineImages.Insert",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of machine images that are contained within the specified project.",
"file": "MachineImagesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.MachineImagesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListMachineImagesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "MachineImageIterator",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.MachineImages.List",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "MachineImagesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.MachineImagesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyMachineImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.MachineImages.SetIamPolicy",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineImages_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "MachineImagesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.MachineImagesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsMachineImageRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "MachineImagesClient",
"fullName": "google.cloud.compute.v1.MachineImagesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.MachineImages.TestIamPermissions",
"service": {
"shortName": "MachineImages",
"fullName": "google.cloud.compute.v1.MachineImages"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineTypes_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "MachineTypesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.MachineTypesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListMachineTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "MachineTypesScopedListPairIterator",
"client": {
"shortName": "MachineTypesClient",
"fullName": "google.cloud.compute.v1.MachineTypesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.MachineTypes.AggregatedList",
"service": {
"shortName": "MachineTypes",
"fullName": "google.cloud.compute.v1.MachineTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineTypes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified machine type.",
"file": "MachineTypesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.MachineTypesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetMachineTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.MachineType",
"client": {
"shortName": "MachineTypesClient",
"fullName": "google.cloud.compute.v1.MachineTypesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.MachineTypes.Get",
"service": {
"shortName": "MachineTypes",
"fullName": "google.cloud.compute.v1.MachineTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_MachineTypes_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of machine types available to the specified project.",
"file": "MachineTypesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.MachineTypesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListMachineTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "MachineTypeIterator",
"client": {
"shortName": "MachineTypesClient",
"fullName": "google.cloud.compute.v1.MachineTypesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.MachineTypes.List",
"service": {
"shortName": "MachineTypes",
"fullName": "google.cloud.compute.v1.MachineTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "NetworkAttachmentsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListNetworkAttachmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkAttachmentsScopedListPairIterator",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified NetworkAttachment in the given scope",
"file": "NetworkAttachmentsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkAttachments.Delete",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified NetworkAttachment resource in the given scope.",
"file": "NetworkAttachmentsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NetworkAttachment",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkAttachments.Get",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "NetworkAttachmentsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.",
"file": "NetworkAttachmentsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkAttachments.Insert",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_List_sync",
"title": "compute List Sample",
"description": "List lists the NetworkAttachments for a project in the given scope.",
"file": "NetworkAttachmentsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworkAttachmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkAttachmentIterator",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworkAttachments.List",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "NetworkAttachmentsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworkAttachments.Patch",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "NetworkAttachmentsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkAttachments_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "NetworkAttachmentsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsNetworkAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "NetworkAttachmentsClient",
"fullName": "google.cloud.compute.v1.NetworkAttachmentsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions",
"service": {
"shortName": "NetworkAttachments",
"fullName": "google.cloud.compute.v1.NetworkAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "NetworkEdgeSecurityServicesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListNetworkEdgeSecurityServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEdgeSecurityServicesScopedListPairIterator",
"client": {
"shortName": "NetworkEdgeSecurityServicesClient",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.AggregatedList",
"service": {
"shortName": "NetworkEdgeSecurityServices",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified service.",
"file": "NetworkEdgeSecurityServicesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNetworkEdgeSecurityServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEdgeSecurityServicesClient",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Delete",
"service": {
"shortName": "NetworkEdgeSecurityServices",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Get_sync",
"title": "compute Get Sample",
"description": "Get gets a specified NetworkEdgeSecurityService.",
"file": "NetworkEdgeSecurityServicesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNetworkEdgeSecurityServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NetworkEdgeSecurityService",
"client": {
"shortName": "NetworkEdgeSecurityServicesClient",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Get",
"service": {
"shortName": "NetworkEdgeSecurityServices",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new service in the specified project using the data included in the request.",
"file": "NetworkEdgeSecurityServicesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNetworkEdgeSecurityServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEdgeSecurityServicesClient",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Insert",
"service": {
"shortName": "NetworkEdgeSecurityServices",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified policy with the data included in the request.",
"file": "NetworkEdgeSecurityServicesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchNetworkEdgeSecurityServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEdgeSecurityServicesClient",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Patch",
"service": {
"shortName": "NetworkEdgeSecurityServices",
"fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "NetworkEndpointGroupsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointGroupsScopedListPairIterator",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AggregatedList",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync",
"title": "compute AttachNetworkEndpoints Sample",
"description": "AttachNetworkEndpoints attach a list of network endpoints to the specified network endpoint group.",
"file": "NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AttachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.AttachNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AttachNetworkEndpointsNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "AttachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AttachNetworkEndpoints",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.",
"file": "NetworkEndpointGroupsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Delete",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync",
"title": "compute DetachNetworkEndpoints Sample",
"description": "DetachNetworkEndpoints detach a list of network endpoints from the specified network endpoint group.",
"file": "NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DetachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.DetachNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DetachNetworkEndpointsNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "DetachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.DetachNetworkEndpoints",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified network endpoint group.",
"file": "NetworkEndpointGroupsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NetworkEndpointGroup",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Get",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a network endpoint group in the specified project using the parameters that are included in the request.",
"file": "NetworkEndpointGroupsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Insert",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of network endpoint groups that are located in the specified project and zone.",
"file": "NetworkEndpointGroupsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointGroupIterator",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.List",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync",
"title": "compute ListNetworkEndpoints Sample",
"description": "ListNetworkEndpoints lists the network endpoints in the specified network endpoint group.",
"file": "NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListNetworkEndpoints",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.ListNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworkEndpointsNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointWithHealthStatusIterator",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "ListNetworkEndpoints",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.ListNetworkEndpoints",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "NetworkEndpointGroupsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "NetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups.TestIamPermissions",
"service": {
"shortName": "NetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.NetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddAssociation_sync",
"title": "compute AddAssociation Sample",
"description": "AddAssociation inserts an association for the specified firewall policy.",
"file": "NetworkFirewallPoliciesClient/AddAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddAssociation",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.AddAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddAssociationNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "AddAssociation",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociation",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddRule_sync",
"title": "compute AddRule Sample",
"description": "AddRule inserts a rule into a firewall policy.",
"file": "NetworkFirewallPoliciesClient/AddRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.AddRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddRuleNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddRule",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_CloneRules_sync",
"title": "compute CloneRules Sample",
"description": "CloneRules copies rules to the specified firewall policy.",
"file": "NetworkFirewallPoliciesClient/CloneRules/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CloneRules",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.CloneRules",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CloneRulesNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "CloneRules",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.CloneRules",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified policy.",
"file": "NetworkFirewallPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Delete",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified network firewall policy.",
"file": "NetworkFirewallPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicy",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Get",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetAssociation_sync",
"title": "compute GetAssociation Sample",
"description": "GetAssociation gets an association with the specified name.",
"file": "NetworkFirewallPoliciesClient/GetAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetAssociation",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.GetAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetAssociationNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicyAssociation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetAssociation",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociation",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "NetworkFirewallPoliciesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicy",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetRule_sync",
"title": "compute GetRule Sample",
"description": "GetRule gets a rule of the specified priority.",
"file": "NetworkFirewallPoliciesClient/GetRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.GetRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRuleNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicyRule",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetRule",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new policy in the specified project using the data included in the request.",
"file": "NetworkFirewallPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Insert",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_List_sync",
"title": "compute List Sample",
"description": "List lists all the policies that have been configured for the specified project.",
"file": "NetworkFirewallPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworkFirewallPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "FirewallPolicyIterator",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.List",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified policy with the data included in the request.",
"file": "NetworkFirewallPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Patch",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchRule_sync",
"title": "compute PatchRule Sample",
"description": "PatchRule patches a rule of the specified priority.",
"file": "NetworkFirewallPoliciesClient/PatchRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.PatchRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRuleNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchRule",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_sync",
"title": "compute RemoveAssociation Sample",
"description": "RemoveAssociation removes an association for the specified firewall policy.",
"file": "NetworkFirewallPoliciesClient/RemoveAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveAssociation",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.RemoveAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveAssociationNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "RemoveAssociation",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociation",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveRule_sync",
"title": "compute RemoveRule Sample",
"description": "RemoveRule deletes a rule of the specified priority.",
"file": "NetworkFirewallPoliciesClient/RemoveRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.RemoveRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveRuleNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRule",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "NetworkFirewallPoliciesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicy",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NetworkFirewallPolicies_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "NetworkFirewallPoliciesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "NetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissions",
"service": {
"shortName": "NetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.NetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_AddPeering_sync",
"title": "compute AddPeering Sample",
"description": "AddPeering adds a peering to the specified network.",
"file": "NetworksClient/AddPeering/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddPeering",
"fullName": "google.cloud.compute.v1.NetworksClient.AddPeering",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddPeeringNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "AddPeering",
"fullName": "google.cloud.compute.v1.Networks.AddPeering",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified network.",
"file": "NetworksClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NetworksClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Networks.Delete",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified network.",
"file": "NetworksClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NetworksClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Network",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Networks.Get",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_GetEffectiveFirewalls_sync",
"title": "compute GetEffectiveFirewalls Sample",
"description": "GetEffectiveFirewalls returns the effective firewalls on a given network.",
"file": "NetworksClient/GetEffectiveFirewalls/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetEffectiveFirewalls",
"fullName": "google.cloud.compute.v1.NetworksClient.GetEffectiveFirewalls",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetEffectiveFirewallsNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NetworksGetEffectiveFirewallsResponse",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "GetEffectiveFirewalls",
"fullName": "google.cloud.compute.v1.Networks.GetEffectiveFirewalls",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a network in the specified project using the data included in the request.",
"file": "NetworksClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NetworksClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Networks.Insert",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of networks available to the specified project.",
"file": "NetworksClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NetworksClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkIterator",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Networks.List",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_ListPeeringRoutes_sync",
"title": "compute ListPeeringRoutes Sample",
"description": "ListPeeringRoutes lists the peering routes exchanged over peering connection.",
"file": "NetworksClient/ListPeeringRoutes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListPeeringRoutes",
"fullName": "google.cloud.compute.v1.NetworksClient.ListPeeringRoutes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPeeringRoutesNetworksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ExchangedPeeringRouteIterator",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "ListPeeringRoutes",
"fullName": "google.cloud.compute.v1.Networks.ListPeeringRoutes",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode.",
"file": "NetworksClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NetworksClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Networks.Patch",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_RemovePeering_sync",
"title": "compute RemovePeering Sample",
"description": "RemovePeering removes a peering from the specified network.",
"file": "NetworksClient/RemovePeering/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemovePeering",
"fullName": "google.cloud.compute.v1.NetworksClient.RemovePeering",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemovePeeringNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "RemovePeering",
"fullName": "google.cloud.compute.v1.Networks.RemovePeering",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_SwitchToCustomMode_sync",
"title": "compute SwitchToCustomMode Sample",
"description": "SwitchToCustomMode switches the network mode from auto subnet mode to custom subnet mode.",
"file": "NetworksClient/SwitchToCustomMode/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SwitchToCustomMode",
"fullName": "google.cloud.compute.v1.NetworksClient.SwitchToCustomMode",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SwitchToCustomModeNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "SwitchToCustomMode",
"fullName": "google.cloud.compute.v1.Networks.SwitchToCustomMode",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Networks_UpdatePeering_sync",
"title": "compute UpdatePeering Sample",
"description": "UpdatePeering updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.",
"file": "NetworksClient/UpdatePeering/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdatePeering",
"fullName": "google.cloud.compute.v1.NetworksClient.UpdatePeering",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdatePeeringNetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NetworksClient",
"fullName": "google.cloud.compute.v1.NetworksClient"
},
"method": {
"shortName": "UpdatePeering",
"fullName": "google.cloud.compute.v1.Networks.UpdatePeering",
"service": {
"shortName": "Networks",
"fullName": "google.cloud.compute.v1.Networks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_AddNodes_sync",
"title": "compute AddNodes Sample",
"description": "AddNodes adds specified number of nodes to the node group.",
"file": "NodeGroupsClient/AddNodes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddNodes",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.AddNodes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddNodesNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "AddNodes",
"fullName": "google.cloud.compute.v1.NodeGroups.AddNodes",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "NodeGroupsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListNodeGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeGroupsScopedListPairIterator",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NodeGroups.AggregatedList",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified NodeGroup resource.",
"file": "NodeGroupsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NodeGroups.Delete",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_DeleteNodes_sync",
"title": "compute DeleteNodes Sample",
"description": "DeleteNodes deletes specified nodes from the node group.",
"file": "NodeGroupsClient/DeleteNodes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteNodes",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.DeleteNodes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNodesNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "DeleteNodes",
"fullName": "google.cloud.compute.v1.NodeGroups.DeleteNodes",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the \"nodes\" field should not be used. Use nodeGroups.listNodes instead.",
"file": "NodeGroupsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NodeGroup",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NodeGroups.Get",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "NodeGroupsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeGroups.GetIamPolicy",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a NodeGroup resource in the specified project using the data included in the request.",
"file": "NodeGroupsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NodeGroups.Insert",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.",
"file": "NodeGroupsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNodeGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeGroupIterator",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NodeGroups.List",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_ListNodes_sync",
"title": "compute ListNodes Sample",
"description": "ListNodes lists nodes in the node group.",
"file": "NodeGroupsClient/ListNodes/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListNodes",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.ListNodes",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNodesNodeGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeGroupNodeIterator",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "ListNodes",
"fullName": "google.cloud.compute.v1.NodeGroups.ListNodes",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified node group.",
"file": "NodeGroupsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.NodeGroups.Patch",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_PerformMaintenance_sync",
"title": "compute PerformMaintenance Sample",
"description": "PerformMaintenance perform maintenance on a subset of nodes in the node group.",
"file": "NodeGroupsClient/PerformMaintenance/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PerformMaintenance",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.PerformMaintenance",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PerformMaintenanceNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "PerformMaintenance",
"fullName": "google.cloud.compute.v1.NodeGroups.PerformMaintenance",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "NodeGroupsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeGroups.SetIamPolicy",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_SetNodeTemplate_sync",
"title": "compute SetNodeTemplate Sample",
"description": "SetNodeTemplate updates the node template of the node group.",
"file": "NodeGroupsClient/SetNodeTemplate/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetNodeTemplate",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.SetNodeTemplate",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetNodeTemplateNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "SetNodeTemplate",
"fullName": "google.cloud.compute.v1.NodeGroups.SetNodeTemplate",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_sync",
"title": "compute SimulateMaintenanceEvent Sample",
"description": "SimulateMaintenanceEvent simulates maintenance event on specified nodes from the node group.",
"file": "NodeGroupsClient/SimulateMaintenanceEvent/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SimulateMaintenanceEvent",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.SimulateMaintenanceEvent",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SimulateMaintenanceEventNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "SimulateMaintenanceEvent",
"fullName": "google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEvent",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeGroups_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "NodeGroupsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NodeGroupsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsNodeGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "NodeGroupsClient",
"fullName": "google.cloud.compute.v1.NodeGroupsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NodeGroups.TestIamPermissions",
"service": {
"shortName": "NodeGroups",
"fullName": "google.cloud.compute.v1.NodeGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "NodeTemplatesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListNodeTemplatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeTemplatesScopedListPairIterator",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NodeTemplates.AggregatedList",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified NodeTemplate resource.",
"file": "NodeTemplatesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteNodeTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.NodeTemplates.Delete",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified node template.",
"file": "NodeTemplatesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNodeTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NodeTemplate",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NodeTemplates.Get",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "NodeTemplatesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyNodeTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeTemplates.GetIamPolicy",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a NodeTemplate resource in the specified project using the data included in the request.",
"file": "NodeTemplatesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertNodeTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.NodeTemplates.Insert",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of node templates available to the specified project.",
"file": "NodeTemplatesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNodeTemplatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeTemplateIterator",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NodeTemplates.List",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "NodeTemplatesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyNodeTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.NodeTemplates.SetIamPolicy",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTemplates_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "NodeTemplatesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsNodeTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "NodeTemplatesClient",
"fullName": "google.cloud.compute.v1.NodeTemplatesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.NodeTemplates.TestIamPermissions",
"service": {
"shortName": "NodeTemplates",
"fullName": "google.cloud.compute.v1.NodeTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTypes_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "NodeTypesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NodeTypesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListNodeTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeTypesScopedListPairIterator",
"client": {
"shortName": "NodeTypesClient",
"fullName": "google.cloud.compute.v1.NodeTypesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.NodeTypes.AggregatedList",
"service": {
"shortName": "NodeTypes",
"fullName": "google.cloud.compute.v1.NodeTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTypes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified node type.",
"file": "NodeTypesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NodeTypesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNodeTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NodeType",
"client": {
"shortName": "NodeTypesClient",
"fullName": "google.cloud.compute.v1.NodeTypesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.NodeTypes.Get",
"service": {
"shortName": "NodeTypes",
"fullName": "google.cloud.compute.v1.NodeTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_NodeTypes_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of node types available to the specified project.",
"file": "NodeTypesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NodeTypesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNodeTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NodeTypeIterator",
"client": {
"shortName": "NodeTypesClient",
"fullName": "google.cloud.compute.v1.NodeTypesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.NodeTypes.List",
"service": {
"shortName": "NodeTypes",
"fullName": "google.cloud.compute.v1.NodeTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "PacketMirroringsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListPacketMirroringsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PacketMirroringsScopedListPairIterator",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.PacketMirrorings.AggregatedList",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified PacketMirroring resource.",
"file": "PacketMirroringsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeletePacketMirroringRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.PacketMirrorings.Delete",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified PacketMirroring resource.",
"file": "PacketMirroringsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetPacketMirroringRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.PacketMirroring",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.PacketMirrorings.Get",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a PacketMirroring resource in the specified project and region using the data included in the request.",
"file": "PacketMirroringsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertPacketMirroringRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.PacketMirrorings.Insert",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of PacketMirroring resources available to the specified project and region.",
"file": "PacketMirroringsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPacketMirroringsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PacketMirroringIterator",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.PacketMirrorings.List",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "PacketMirroringsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchPacketMirroringRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.PacketMirrorings.Patch",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PacketMirrorings_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "PacketMirroringsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsPacketMirroringRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "PacketMirroringsClient",
"fullName": "google.cloud.compute.v1.PacketMirroringsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.PacketMirrorings.TestIamPermissions",
"service": {
"shortName": "PacketMirrorings",
"fullName": "google.cloud.compute.v1.PacketMirrorings"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_DisableXpnHost_sync",
"title": "compute DisableXpnHost Sample",
"description": "DisableXpnHost disable this project as a shared VPC host project.",
"file": "ProjectsClient/DisableXpnHost/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DisableXpnHost",
"fullName": "google.cloud.compute.v1.ProjectsClient.DisableXpnHost",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DisableXpnHostProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "DisableXpnHost",
"fullName": "google.cloud.compute.v1.Projects.DisableXpnHost",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_DisableXpnResource_sync",
"title": "compute DisableXpnResource Sample",
"description": "DisableXpnResource disable a service resource (also known as service project) associated with this host project.",
"file": "ProjectsClient/DisableXpnResource/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DisableXpnResource",
"fullName": "google.cloud.compute.v1.ProjectsClient.DisableXpnResource",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DisableXpnResourceProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "DisableXpnResource",
"fullName": "google.cloud.compute.v1.Projects.DisableXpnResource",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_EnableXpnHost_sync",
"title": "compute EnableXpnHost Sample",
"description": "EnableXpnHost enable this project as a shared VPC host project.",
"file": "ProjectsClient/EnableXpnHost/main.go",
"language": "GO",
"clientMethod": {
"shortName": "EnableXpnHost",
"fullName": "google.cloud.compute.v1.ProjectsClient.EnableXpnHost",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.EnableXpnHostProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "EnableXpnHost",
"fullName": "google.cloud.compute.v1.Projects.EnableXpnHost",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_EnableXpnResource_sync",
"title": "compute EnableXpnResource Sample",
"description": "EnableXpnResource enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.",
"file": "ProjectsClient/EnableXpnResource/main.go",
"language": "GO",
"clientMethod": {
"shortName": "EnableXpnResource",
"fullName": "google.cloud.compute.v1.ProjectsClient.EnableXpnResource",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.EnableXpnResourceProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "EnableXpnResource",
"fullName": "google.cloud.compute.v1.Projects.EnableXpnResource",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.",
"file": "ProjectsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ProjectsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Project",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Projects.Get",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_GetXpnHost_sync",
"title": "compute GetXpnHost Sample",
"description": "GetXpnHost gets the shared VPC host project that this project links to. May be empty if no link exists.",
"file": "ProjectsClient/GetXpnHost/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetXpnHost",
"fullName": "google.cloud.compute.v1.ProjectsClient.GetXpnHost",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetXpnHostProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Project",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "GetXpnHost",
"fullName": "google.cloud.compute.v1.Projects.GetXpnHost",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_GetXpnResources_sync",
"title": "compute GetXpnResources Sample",
"description": "GetXpnResources gets service resources (a.k.a service project) associated with this host project.",
"file": "ProjectsClient/GetXpnResources/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetXpnResources",
"fullName": "google.cloud.compute.v1.ProjectsClient.GetXpnResources",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetXpnResourcesProjectsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "XpnResourceIdIterator",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "GetXpnResources",
"fullName": "google.cloud.compute.v1.Projects.GetXpnResources",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_ListXpnHosts_sync",
"title": "compute ListXpnHosts Sample",
"description": "ListXpnHosts lists all shared VPC host projects visible to the user in an organization.",
"file": "ProjectsClient/ListXpnHosts/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListXpnHosts",
"fullName": "google.cloud.compute.v1.ProjectsClient.ListXpnHosts",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListXpnHostsProjectsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ProjectIterator",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "ListXpnHosts",
"fullName": "google.cloud.compute.v1.Projects.ListXpnHosts",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_MoveDisk_sync",
"title": "compute MoveDisk Sample",
"description": "MoveDisk moves a persistent disk from one zone to another.",
"file": "ProjectsClient/MoveDisk/main.go",
"language": "GO",
"clientMethod": {
"shortName": "MoveDisk",
"fullName": "google.cloud.compute.v1.ProjectsClient.MoveDisk",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.MoveDiskProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "MoveDisk",
"fullName": "google.cloud.compute.v1.Projects.MoveDisk",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_MoveInstance_sync",
"title": "compute MoveInstance Sample",
"description": "MoveInstance moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.",
"file": "ProjectsClient/MoveInstance/main.go",
"language": "GO",
"clientMethod": {
"shortName": "MoveInstance",
"fullName": "google.cloud.compute.v1.ProjectsClient.MoveInstance",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.MoveInstanceProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "MoveInstance",
"fullName": "google.cloud.compute.v1.Projects.MoveInstance",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_SetCloudArmorTier_sync",
"title": "compute SetCloudArmorTier Sample",
"description": "SetCloudArmorTier sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.",
"file": "ProjectsClient/SetCloudArmorTier/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetCloudArmorTier",
"fullName": "google.cloud.compute.v1.ProjectsClient.SetCloudArmorTier",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetCloudArmorTierProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "SetCloudArmorTier",
"fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_SetCommonInstanceMetadata_sync",
"title": "compute SetCommonInstanceMetadata Sample",
"description": "SetCommonInstanceMetadata sets metadata common to all instances within the specified project using the data included in the request.",
"file": "ProjectsClient/SetCommonInstanceMetadata/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetCommonInstanceMetadata",
"fullName": "google.cloud.compute.v1.ProjectsClient.SetCommonInstanceMetadata",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetCommonInstanceMetadataProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "SetCommonInstanceMetadata",
"fullName": "google.cloud.compute.v1.Projects.SetCommonInstanceMetadata",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_SetDefaultNetworkTier_sync",
"title": "compute SetDefaultNetworkTier Sample",
"description": "SetDefaultNetworkTier sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.",
"file": "ProjectsClient/SetDefaultNetworkTier/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetDefaultNetworkTier",
"fullName": "google.cloud.compute.v1.ProjectsClient.SetDefaultNetworkTier",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetDefaultNetworkTierProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "SetDefaultNetworkTier",
"fullName": "google.cloud.compute.v1.Projects.SetDefaultNetworkTier",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Projects_SetUsageExportBucket_sync",
"title": "compute SetUsageExportBucket Sample",
"description": "SetUsageExportBucket enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.",
"file": "ProjectsClient/SetUsageExportBucket/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetUsageExportBucket",
"fullName": "google.cloud.compute.v1.ProjectsClient.SetUsageExportBucket",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetUsageExportBucketProjectRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ProjectsClient",
"fullName": "google.cloud.compute.v1.ProjectsClient"
},
"method": {
"shortName": "SetUsageExportBucket",
"fullName": "google.cloud.compute.v1.Projects.SetUsageExportBucket",
"service": {
"shortName": "Projects",
"fullName": "google.cloud.compute.v1.Projects"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Announce_sync",
"title": "compute Announce Sample",
"description": "Announce announces the specified PublicAdvertisedPrefix",
"file": "PublicAdvertisedPrefixesClient/Announce/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Announce",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.Announce",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AnnouncePublicAdvertisedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "Announce",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Announce",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified PublicAdvertisedPrefix",
"file": "PublicAdvertisedPrefixesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeletePublicAdvertisedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Delete",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified PublicAdvertisedPrefix resource.",
"file": "PublicAdvertisedPrefixesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetPublicAdvertisedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.PublicAdvertisedPrefix",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Get",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.",
"file": "PublicAdvertisedPrefixesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertPublicAdvertisedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Insert",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_List_sync",
"title": "compute List Sample",
"description": "List lists the PublicAdvertisedPrefixes for a project.",
"file": "PublicAdvertisedPrefixesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPublicAdvertisedPrefixesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PublicAdvertisedPrefixIterator",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.List",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "PublicAdvertisedPrefixesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchPublicAdvertisedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Patch",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Withdraw_sync",
"title": "compute Withdraw Sample",
"description": "Withdraw withdraws the specified PublicAdvertisedPrefix",
"file": "PublicAdvertisedPrefixesClient/Withdraw/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Withdraw",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient.Withdraw",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.WithdrawPublicAdvertisedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicAdvertisedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient"
},
"method": {
"shortName": "Withdraw",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Withdraw",
"service": {
"shortName": "PublicAdvertisedPrefixes",
"fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "PublicDelegatedPrefixesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListPublicDelegatedPrefixesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PublicDelegatedPrefixesScopedListPairIterator",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.AggregatedList",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Announce_sync",
"title": "compute Announce Sample",
"description": "Announce announces the specified PublicDelegatedPrefix in the given region.",
"file": "PublicDelegatedPrefixesClient/Announce/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Announce",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.Announce",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AnnouncePublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Announce",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Announce",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified PublicDelegatedPrefix in the given region.",
"file": "PublicDelegatedPrefixesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeletePublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Delete",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified PublicDelegatedPrefix resource in the given region.",
"file": "PublicDelegatedPrefixesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.PublicDelegatedPrefix",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Get",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.",
"file": "PublicDelegatedPrefixesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Insert",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_List_sync",
"title": "compute List Sample",
"description": "List lists the PublicDelegatedPrefixes for a project in the given region.",
"file": "PublicDelegatedPrefixesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPublicDelegatedPrefixesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PublicDelegatedPrefixIterator",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.List",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "PublicDelegatedPrefixesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Patch",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Withdraw_sync",
"title": "compute Withdraw Sample",
"description": "Withdraw withdraws the specified PublicDelegatedPrefix in the given region.",
"file": "PublicDelegatedPrefixesClient/Withdraw/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Withdraw",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient.Withdraw",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.WithdrawPublicDelegatedPrefixeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "PublicDelegatedPrefixesClient",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient"
},
"method": {
"shortName": "Withdraw",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Withdraw",
"service": {
"shortName": "PublicDelegatedPrefixes",
"fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionAutoscalers_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified autoscaler.",
"file": "RegionAutoscalersClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionAutoscalersClient",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionAutoscalers.Delete",
"service": {
"shortName": "RegionAutoscalers",
"fullName": "google.cloud.compute.v1.RegionAutoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionAutoscalers_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified autoscaler.",
"file": "RegionAutoscalersClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Autoscaler",
"client": {
"shortName": "RegionAutoscalersClient",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionAutoscalers.Get",
"service": {
"shortName": "RegionAutoscalers",
"fullName": "google.cloud.compute.v1.RegionAutoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionAutoscalers_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an autoscaler in the specified project using the data included in the request.",
"file": "RegionAutoscalersClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionAutoscalersClient",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionAutoscalers.Insert",
"service": {
"shortName": "RegionAutoscalers",
"fullName": "google.cloud.compute.v1.RegionAutoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionAutoscalers_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of autoscalers contained within the specified region.",
"file": "RegionAutoscalersClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionAutoscalersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "AutoscalerIterator",
"client": {
"shortName": "RegionAutoscalersClient",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionAutoscalers.List",
"service": {
"shortName": "RegionAutoscalers",
"fullName": "google.cloud.compute.v1.RegionAutoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionAutoscalers_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "RegionAutoscalersClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionAutoscalersClient",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionAutoscalers.Patch",
"service": {
"shortName": "RegionAutoscalers",
"fullName": "google.cloud.compute.v1.RegionAutoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionAutoscalers_Update_sync",
"title": "compute Update Sample",
"description": "Update updates an autoscaler in the specified project using the data included in the request.",
"file": "RegionAutoscalersClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRegionAutoscalerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionAutoscalersClient",
"fullName": "google.cloud.compute.v1.RegionAutoscalersClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionAutoscalers.Update",
"service": {
"shortName": "RegionAutoscalers",
"fullName": "google.cloud.compute.v1.RegionAutoscalers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified regional BackendService resource.",
"file": "RegionBackendServicesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionBackendServices.Delete",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified regional BackendService resource.",
"file": "RegionBackendServicesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.BackendService",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionBackendServices.Get",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_GetHealth_sync",
"title": "compute GetHealth Sample",
"description": "GetHealth gets the most recent health check results for this regional BackendService.",
"file": "RegionBackendServicesClient/GetHealth/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetHealth",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.GetHealth",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetHealthRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.BackendServiceGroupHealth",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "GetHealth",
"fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "RegionBackendServicesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.",
"file": "RegionBackendServicesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionBackendServices.Insert",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of regional BackendService resources available to the specified project in the given region.",
"file": "RegionBackendServicesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionBackendServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BackendServiceIterator",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionBackendServices.List",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_ListUsable_sync",
"title": "compute ListUsable Sample",
"description": "ListUsable retrieves an aggregated list of all usable backend services in the specified project in the given region.",
"file": "RegionBackendServicesClient/ListUsable/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListUsable",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.ListUsable",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListUsableRegionBackendServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "BackendServiceIterator",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "ListUsable",
"fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "RegionBackendServicesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionBackendServices.Patch",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "RegionBackendServicesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_SetSecurityPolicy_sync",
"title": "compute SetSecurityPolicy Sample",
"description": "SetSecurityPolicy sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview",
"file": "RegionBackendServicesClient/SetSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.SetSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSecurityPolicyRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "RegionBackendServicesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionBackendServices_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview .",
"file": "RegionBackendServicesClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRegionBackendServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionBackendServicesClient",
"fullName": "google.cloud.compute.v1.RegionBackendServicesClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionBackendServices.Update",
"service": {
"shortName": "RegionBackendServices",
"fullName": "google.cloud.compute.v1.RegionBackendServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionCommitments_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "RegionCommitmentsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListRegionCommitmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CommitmentsScopedListPairIterator",
"client": {
"shortName": "RegionCommitmentsClient",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList",
"service": {
"shortName": "RegionCommitments",
"fullName": "google.cloud.compute.v1.RegionCommitments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionCommitments_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified commitment resource.",
"file": "RegionCommitmentsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionCommitmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Commitment",
"client": {
"shortName": "RegionCommitmentsClient",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionCommitments.Get",
"service": {
"shortName": "RegionCommitments",
"fullName": "google.cloud.compute.v1.RegionCommitments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionCommitments_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a commitment in the specified project using the data included in the request.",
"file": "RegionCommitmentsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionCommitmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionCommitmentsClient",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionCommitments.Insert",
"service": {
"shortName": "RegionCommitments",
"fullName": "google.cloud.compute.v1.RegionCommitments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionCommitments_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of commitments contained within the specified region.",
"file": "RegionCommitmentsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionCommitmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CommitmentIterator",
"client": {
"shortName": "RegionCommitmentsClient",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionCommitments.List",
"service": {
"shortName": "RegionCommitments",
"fullName": "google.cloud.compute.v1.RegionCommitments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionCommitments_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew.",
"file": "RegionCommitmentsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRegionCommitmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionCommitmentsClient",
"fullName": "google.cloud.compute.v1.RegionCommitmentsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionCommitments.Update",
"service": {
"shortName": "RegionCommitments",
"fullName": "google.cloud.compute.v1.RegionCommitments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDiskTypes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified regional disk type.",
"file": "RegionDiskTypesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionDiskTypesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionDiskTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.DiskType",
"client": {
"shortName": "RegionDiskTypesClient",
"fullName": "google.cloud.compute.v1.RegionDiskTypesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionDiskTypes.Get",
"service": {
"shortName": "RegionDiskTypes",
"fullName": "google.cloud.compute.v1.RegionDiskTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDiskTypes_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of regional disk types available to the specified project.",
"file": "RegionDiskTypesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionDiskTypesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionDiskTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DiskTypeIterator",
"client": {
"shortName": "RegionDiskTypesClient",
"fullName": "google.cloud.compute.v1.RegionDiskTypesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionDiskTypes.List",
"service": {
"shortName": "RegionDiskTypes",
"fullName": "google.cloud.compute.v1.RegionDiskTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_sync",
"title": "compute AddResourcePolicies Sample",
"description": "AddResourcePolicies adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.",
"file": "RegionDisksClient/AddResourcePolicies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddResourcePolicies",
"fullName": "google.cloud.compute.v1.RegionDisksClient.AddResourcePolicies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddResourcePoliciesRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "AddResourcePolicies",
"fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_BulkInsert_sync",
"title": "compute BulkInsert Sample",
"description": "BulkInsert bulk create a set of disks.",
"file": "RegionDisksClient/BulkInsert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.RegionDisksClient.BulkInsert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.BulkInsertRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_sync",
"title": "compute CreateSnapshot Sample",
"description": "CreateSnapshot creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.",
"file": "RegionDisksClient/CreateSnapshot/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateSnapshot",
"fullName": "google.cloud.compute.v1.RegionDisksClient.CreateSnapshot",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CreateSnapshotRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "CreateSnapshot",
"fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.",
"file": "RegionDisksClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionDisksClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionDisks.Delete",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_Get_sync",
"title": "compute Get Sample",
"description": "Get returns a specified regional persistent disk.",
"file": "RegionDisksClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionDisksClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Disk",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionDisks.Get",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "RegionDisksClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionDisksClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a persistent regional disk in the specified project using the data included in the request.",
"file": "RegionDisksClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionDisksClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionDisks.Insert",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of persistent disks contained within the specified region.",
"file": "RegionDisksClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionDisksClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionDisksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DiskIterator",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionDisks.List",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync",
"title": "compute RemoveResourcePolicies Sample",
"description": "RemoveResourcePolicies removes resource policies from a regional disk.",
"file": "RegionDisksClient/RemoveResourcePolicies/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveResourcePolicies",
"fullName": "google.cloud.compute.v1.RegionDisksClient.RemoveResourcePolicies",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveResourcePoliciesRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "RemoveResourcePolicies",
"fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_Resize_sync",
"title": "compute Resize Sample",
"description": "Resize resizes the specified regional persistent disk.",
"file": "RegionDisksClient/Resize/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.RegionDisksClient.Resize",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResizeRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.RegionDisks.Resize",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "RegionDisksClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionDisksClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on the target regional disk.",
"file": "RegionDisksClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.RegionDisksClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.RegionDisks.SetLabels",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_StartAsyncReplication_sync",
"title": "compute StartAsyncReplication Sample",
"description": "StartAsyncReplication starts asynchronous replication. Must be invoked on the primary disk.",
"file": "RegionDisksClient/StartAsyncReplication/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StartAsyncReplication",
"fullName": "google.cloud.compute.v1.RegionDisksClient.StartAsyncReplication",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StartAsyncReplicationRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "StartAsyncReplication",
"fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_StopAsyncReplication_sync",
"title": "compute StopAsyncReplication Sample",
"description": "StopAsyncReplication stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.",
"file": "RegionDisksClient/StopAsyncReplication/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StopAsyncReplication",
"fullName": "google.cloud.compute.v1.RegionDisksClient.StopAsyncReplication",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StopAsyncReplicationRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "StopAsyncReplication",
"fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_StopGroupAsyncReplication_sync",
"title": "compute StopGroupAsyncReplication Sample",
"description": "StopGroupAsyncReplication stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.",
"file": "RegionDisksClient/StopGroupAsyncReplication/main.go",
"language": "GO",
"clientMethod": {
"shortName": "StopGroupAsyncReplication",
"fullName": "google.cloud.compute.v1.RegionDisksClient.StopGroupAsyncReplication",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.StopGroupAsyncReplicationRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "StopGroupAsyncReplication",
"fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "RegionDisksClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionDisksClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionDisks_Update_sync",
"title": "compute Update Sample",
"description": "Update update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.",
"file": "RegionDisksClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionDisksClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRegionDiskRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionDisksClient",
"fullName": "google.cloud.compute.v1.RegionDisksClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionDisks.Update",
"service": {
"shortName": "RegionDisks",
"fullName": "google.cloud.compute.v1.RegionDisks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified regional HealthCheckService.",
"file": "RegionHealthCheckServicesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionHealthCheckServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthCheckServicesClient",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete",
"service": {
"shortName": "RegionHealthCheckServices",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified regional HealthCheckService resource.",
"file": "RegionHealthCheckServicesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionHealthCheckServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.HealthCheckService",
"client": {
"shortName": "RegionHealthCheckServicesClient",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get",
"service": {
"shortName": "RegionHealthCheckServices",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a regional HealthCheckService resource in the specified project and region using the data included in the request.",
"file": "RegionHealthCheckServicesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionHealthCheckServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthCheckServicesClient",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert",
"service": {
"shortName": "RegionHealthCheckServices",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthCheckServices_List_sync",
"title": "compute List Sample",
"description": "List lists all the HealthCheckService resources that have been configured for the specified project in the given region.",
"file": "RegionHealthCheckServicesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionHealthCheckServicesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "HealthCheckServiceIterator",
"client": {
"shortName": "RegionHealthCheckServicesClient",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List",
"service": {
"shortName": "RegionHealthCheckServices",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthCheckServices_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates the specified regional HealthCheckService resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "RegionHealthCheckServicesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionHealthCheckServiceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthCheckServicesClient",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch",
"service": {
"shortName": "RegionHealthCheckServices",
"fullName": "google.cloud.compute.v1.RegionHealthCheckServices"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthChecks_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified HealthCheck resource.",
"file": "RegionHealthChecksClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthChecksClient",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete",
"service": {
"shortName": "RegionHealthChecks",
"fullName": "google.cloud.compute.v1.RegionHealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthChecks_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified HealthCheck resource.",
"file": "RegionHealthChecksClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.HealthCheck",
"client": {
"shortName": "RegionHealthChecksClient",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionHealthChecks.Get",
"service": {
"shortName": "RegionHealthChecks",
"fullName": "google.cloud.compute.v1.RegionHealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthChecks_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a HealthCheck resource in the specified project using the data included in the request.",
"file": "RegionHealthChecksClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthChecksClient",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert",
"service": {
"shortName": "RegionHealthChecks",
"fullName": "google.cloud.compute.v1.RegionHealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthChecks_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of HealthCheck resources available to the specified project.",
"file": "RegionHealthChecksClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionHealthChecksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "HealthCheckIterator",
"client": {
"shortName": "RegionHealthChecksClient",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionHealthChecks.List",
"service": {
"shortName": "RegionHealthChecks",
"fullName": "google.cloud.compute.v1.RegionHealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthChecks_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "RegionHealthChecksClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthChecksClient",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch",
"service": {
"shortName": "RegionHealthChecks",
"fullName": "google.cloud.compute.v1.RegionHealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionHealthChecks_Update_sync",
"title": "compute Update Sample",
"description": "Update updates a HealthCheck resource in the specified project using the data included in the request.",
"file": "RegionHealthChecksClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRegionHealthCheckRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionHealthChecksClient",
"fullName": "google.cloud.compute.v1.RegionHealthChecksClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionHealthChecks.Update",
"service": {
"shortName": "RegionHealthChecks",
"fullName": "google.cloud.compute.v1.RegionHealthChecks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync",
"title": "compute AbandonInstances Sample",
"description": "AbandonInstances flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.",
"file": "RegionInstanceGroupManagersClient/AbandonInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AbandonInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.AbandonInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AbandonInstancesRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "AbandonInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.AbandonInstances",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync",
"title": "compute ApplyUpdatesToInstances Sample",
"description": "ApplyUpdatesToInstances apply updates to selected instances the managed instance group.",
"file": "RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ApplyUpdatesToInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.ApplyUpdatesToInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "ApplyUpdatesToInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ApplyUpdatesToInstances",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync",
"title": "compute CreateInstances Sample",
"description": "CreateInstances creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method.",
"file": "RegionInstanceGroupManagersClient/CreateInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.CreateInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CreateInstancesRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "CreateInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.CreateInstances",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified managed instance group and all of the instances in that group.",
"file": "RegionInstanceGroupManagersClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Delete",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync",
"title": "compute DeleteInstances Sample",
"description": "DeleteInstances flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.",
"file": "RegionInstanceGroupManagersClient/DeleteInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.DeleteInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteInstancesRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "DeleteInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeleteInstances",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync",
"title": "compute DeletePerInstanceConfigs Sample",
"description": "DeletePerInstanceConfigs deletes selected per-instance configurations for the managed instance group.",
"file": "RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeletePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.DeletePerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "DeletePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeletePerInstanceConfigs",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Get_sync",
"title": "compute Get Sample",
"description": "Get returns all of the details about the specified managed instance group.",
"file": "RegionInstanceGroupManagersClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceGroupManager",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Get",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A regional managed instance group can contain up to 2000 instances.",
"file": "RegionInstanceGroupManagersClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Insert",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of managed instance groups that are contained within the specified region.",
"file": "RegionInstanceGroupManagersClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupManagerIterator",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.List",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync",
"title": "compute ListErrors Sample",
"description": "ListErrors lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.",
"file": "RegionInstanceGroupManagersClient/ListErrors/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListErrors",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.ListErrors",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListErrorsRegionInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceManagedByIgmErrorIterator",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "ListErrors",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListErrors",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync",
"title": "compute ListManagedInstances Sample",
"description": "ListManagedInstances lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.",
"file": "RegionInstanceGroupManagersClient/ListManagedInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListManagedInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.ListManagedInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListManagedInstancesRegionInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ManagedInstanceIterator",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "ListManagedInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListManagedInstances",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync",
"title": "compute ListPerInstanceConfigs Sample",
"description": "ListPerInstanceConfigs lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.",
"file": "RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.ListPerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPerInstanceConfigsRegionInstanceGroupManagersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "PerInstanceConfigIterator",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "ListPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListPerInstanceConfigs",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG.",
"file": "RegionInstanceGroupManagersClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Patch",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync",
"title": "compute PatchPerInstanceConfigs Sample",
"description": "PatchPerInstanceConfigs inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.",
"file": "RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.PatchPerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "PatchPerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.PatchPerInstanceConfigs",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync",
"title": "compute RecreateInstances Sample",
"description": "RecreateInstances flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.",
"file": "RegionInstanceGroupManagersClient/RecreateInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RecreateInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.RecreateInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RecreateInstancesRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "RecreateInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.RecreateInstances",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Resize_sync",
"title": "compute Resize Sample",
"description": "Resize changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.",
"file": "RegionInstanceGroupManagersClient/Resize/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.Resize",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResizeRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Resize",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync",
"title": "compute SetInstanceTemplate Sample",
"description": "SetInstanceTemplate sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.",
"file": "RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetInstanceTemplate",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.SetInstanceTemplate",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetInstanceTemplateRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "SetInstanceTemplate",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetInstanceTemplate",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync",
"title": "compute SetTargetPools Sample",
"description": "SetTargetPools modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.",
"file": "RegionInstanceGroupManagersClient/SetTargetPools/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetTargetPools",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.SetTargetPools",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetTargetPoolsRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "SetTargetPools",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetTargetPools",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync",
"title": "compute UpdatePerInstanceConfigs Sample",
"description": "UpdatePerInstanceConfigs inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.",
"file": "RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdatePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient.UpdatePerInstanceConfigs",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupManagersClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient"
},
"method": {
"shortName": "UpdatePerInstanceConfigs",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.UpdatePerInstanceConfigs",
"service": {
"shortName": "RegionInstanceGroupManagers",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroups_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified instance group resource.",
"file": "RegionInstanceGroupsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceGroup",
"client": {
"shortName": "RegionInstanceGroupsClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups.Get",
"service": {
"shortName": "RegionInstanceGroups",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroups_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of instance group resources contained within the specified region.",
"file": "RegionInstanceGroupsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionInstanceGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceGroupIterator",
"client": {
"shortName": "RegionInstanceGroupsClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups.List",
"service": {
"shortName": "RegionInstanceGroups",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroups_ListInstances_sync",
"title": "compute ListInstances Sample",
"description": "ListInstances lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported.",
"file": "RegionInstanceGroupsClient/ListInstances/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient.ListInstances",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListInstancesRegionInstanceGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceWithNamedPortsIterator",
"client": {
"shortName": "RegionInstanceGroupsClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient"
},
"method": {
"shortName": "ListInstances",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups.ListInstances",
"service": {
"shortName": "RegionInstanceGroups",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync",
"title": "compute SetNamedPorts Sample",
"description": "SetNamedPorts sets the named ports for the specified regional instance group.",
"file": "RegionInstanceGroupsClient/SetNamedPorts/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetNamedPorts",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient.SetNamedPorts",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetNamedPortsRegionInstanceGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceGroupsClient",
"fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient"
},
"method": {
"shortName": "SetNamedPorts",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups.SetNamedPorts",
"service": {
"shortName": "RegionInstanceGroups",
"fullName": "google.cloud.compute.v1.RegionInstanceGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceTemplates_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.",
"file": "RegionInstanceTemplatesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete",
"service": {
"shortName": "RegionInstanceTemplates",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceTemplates_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified instance template.",
"file": "RegionInstanceTemplatesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstanceTemplate",
"client": {
"shortName": "RegionInstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get",
"service": {
"shortName": "RegionInstanceTemplates",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceTemplates_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an instance template in the specified project and region using the global instance template whose URL is included in the request.",
"file": "RegionInstanceTemplatesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionInstanceTemplateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert",
"service": {
"shortName": "RegionInstanceTemplates",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstanceTemplates_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of instance templates that are contained within the specified project and region.",
"file": "RegionInstanceTemplatesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionInstanceTemplatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstanceTemplateIterator",
"client": {
"shortName": "RegionInstanceTemplatesClient",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List",
"service": {
"shortName": "RegionInstanceTemplates",
"fullName": "google.cloud.compute.v1.RegionInstanceTemplates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstances_BulkInsert_sync",
"title": "compute BulkInsert Sample",
"description": "BulkInsert creates multiple instances in a given region. Count specifies the number of instances to create.",
"file": "RegionInstancesClient/BulkInsert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.RegionInstancesClient.BulkInsert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.BulkInsertRegionInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstancesClient",
"fullName": "google.cloud.compute.v1.RegionInstancesClient"
},
"method": {
"shortName": "BulkInsert",
"fullName": "google.cloud.compute.v1.RegionInstances.BulkInsert",
"service": {
"shortName": "RegionInstances",
"fullName": "google.cloud.compute.v1.RegionInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.",
"file": "RegionInstantSnapshotsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified InstantSnapshot resource in the specified region.",
"file": "RegionInstantSnapshotsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.InstantSnapshot",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "RegionInstantSnapshotsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicy",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates an instant snapshot in the specified region.",
"file": "RegionInstantSnapshotsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of InstantSnapshot resources contained within the specified region.",
"file": "RegionInstantSnapshotsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionInstantSnapshotsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "InstantSnapshotIterator",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.List",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "RegionInstantSnapshotsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicy",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.",
"file": "RegionInstantSnapshotsClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetLabels",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionInstantSnapshots_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "RegionInstantSnapshotsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsRegionInstantSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "RegionInstantSnapshotsClient",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissions",
"service": {
"shortName": "RegionInstantSnapshots",
"fullName": "google.cloud.compute.v1.RegionInstantSnapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_AttachNetworkEndpoints_sync",
"title": "compute AttachNetworkEndpoints Sample",
"description": "AttachNetworkEndpoints attach a list of network endpoints to the specified network endpoint group.",
"file": "RegionNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AttachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.AttachNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AttachNetworkEndpointsRegionNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "AttachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.AttachNetworkEndpoints",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.",
"file": "RegionNetworkEndpointGroupsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Delete",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_DetachNetworkEndpoints_sync",
"title": "compute DetachNetworkEndpoints Sample",
"description": "DetachNetworkEndpoints detach the network endpoint from the specified network endpoint group.",
"file": "RegionNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DetachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.DetachNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DetachNetworkEndpointsRegionNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "DetachNetworkEndpoints",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.DetachNetworkEndpoints",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified network endpoint group.",
"file": "RegionNetworkEndpointGroupsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NetworkEndpointGroup",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Get",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a network endpoint group in the specified project using the parameters that are included in the request.",
"file": "RegionNetworkEndpointGroupsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionNetworkEndpointGroupRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Insert",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of regional network endpoint groups available to the specified project in the given region.",
"file": "RegionNetworkEndpointGroupsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointGroupIterator",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.List",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_ListNetworkEndpoints_sync",
"title": "compute ListNetworkEndpoints Sample",
"description": "ListNetworkEndpoints lists the network endpoints in the specified network endpoint group.",
"file": "RegionNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListNetworkEndpoints",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient.ListNetworkEndpoints",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListNetworkEndpointsRegionNetworkEndpointGroupsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NetworkEndpointWithHealthStatusIterator",
"client": {
"shortName": "RegionNetworkEndpointGroupsClient",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient"
},
"method": {
"shortName": "ListNetworkEndpoints",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.ListNetworkEndpoints",
"service": {
"shortName": "RegionNetworkEndpointGroups",
"fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_sync",
"title": "compute AddAssociation Sample",
"description": "AddAssociation inserts an association for the specified network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/AddAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddAssociation",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.AddAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddAssociationRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "AddAssociation",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddAssociation",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_sync",
"title": "compute AddRule Sample",
"description": "AddRule inserts a rule into a network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/AddRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.AddRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddRuleRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddRule",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_sync",
"title": "compute CloneRules Sample",
"description": "CloneRules copies rules to the specified network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/CloneRules/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CloneRules",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.CloneRules",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.CloneRulesRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "CloneRules",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.CloneRules",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Delete",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicy",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Get",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_sync",
"title": "compute GetAssociation Sample",
"description": "GetAssociation gets an association with the specified name.",
"file": "RegionNetworkFirewallPoliciesClient/GetAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetAssociation",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.GetAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetAssociationRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicyAssociation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetAssociation",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetAssociation",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_sync",
"title": "compute GetEffectiveFirewalls Sample",
"description": "GetEffectiveFirewalls returns the effective firewalls on a given network.",
"file": "RegionNetworkFirewallPoliciesClient/GetEffectiveFirewalls/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetEffectiveFirewalls",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.GetEffectiveFirewalls",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetEffectiveFirewalls",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetEffectiveFirewalls",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "RegionNetworkFirewallPoliciesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetIamPolicy",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_sync",
"title": "compute GetRule Sample",
"description": "GetRule gets a rule of the specified priority.",
"file": "RegionNetworkFirewallPoliciesClient/GetRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.GetRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRuleRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.FirewallPolicyRule",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetRule",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new network firewall policy in the specified project and region.",
"file": "RegionNetworkFirewallPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Insert",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_List_sync",
"title": "compute List Sample",
"description": "List lists all the network firewall policies that have been configured for the specified project in the given region.",
"file": "RegionNetworkFirewallPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionNetworkFirewallPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "FirewallPolicyIterator",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.List",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Patch",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_sync",
"title": "compute PatchRule Sample",
"description": "PatchRule patches a rule of the specified priority.",
"file": "RegionNetworkFirewallPoliciesClient/PatchRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.PatchRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRuleRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.PatchRule",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_sync",
"title": "compute RemoveAssociation Sample",
"description": "RemoveAssociation removes an association for the specified network firewall policy.",
"file": "RegionNetworkFirewallPoliciesClient/RemoveAssociation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveAssociation",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.RemoveAssociation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveAssociationRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "RemoveAssociation",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveAssociation",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_sync",
"title": "compute RemoveRule Sample",
"description": "RemoveRule deletes a rule of the specified priority.",
"file": "RegionNetworkFirewallPoliciesClient/RemoveRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.RemoveRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveRuleRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveRule",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "RegionNetworkFirewallPoliciesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.SetIamPolicy",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "RegionNetworkFirewallPoliciesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsRegionNetworkFirewallPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "RegionNetworkFirewallPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.TestIamPermissions",
"service": {
"shortName": "RegionNetworkFirewallPolicies",
"fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNotificationEndpoints_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified NotificationEndpoint in the given region",
"file": "RegionNotificationEndpointsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionNotificationEndpointRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNotificationEndpointsClient",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Delete",
"service": {
"shortName": "RegionNotificationEndpoints",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNotificationEndpoints_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified NotificationEndpoint resource in the given region.",
"file": "RegionNotificationEndpointsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionNotificationEndpointRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NotificationEndpoint",
"client": {
"shortName": "RegionNotificationEndpointsClient",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Get",
"service": {
"shortName": "RegionNotificationEndpoints",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNotificationEndpoints_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.",
"file": "RegionNotificationEndpointsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionNotificationEndpointRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionNotificationEndpointsClient",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Insert",
"service": {
"shortName": "RegionNotificationEndpoints",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionNotificationEndpoints_List_sync",
"title": "compute List Sample",
"description": "List lists the NotificationEndpoints for a project in the given region.",
"file": "RegionNotificationEndpointsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionNotificationEndpointsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "NotificationEndpointIterator",
"client": {
"shortName": "RegionNotificationEndpointsClient",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.List",
"service": {
"shortName": "RegionNotificationEndpoints",
"fullName": "google.cloud.compute.v1.RegionNotificationEndpoints"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionOperations_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified region-specific Operations resource.",
"file": "RegionOperationsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionOperationsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.DeleteRegionOperationResponse",
"client": {
"shortName": "RegionOperationsClient",
"fullName": "google.cloud.compute.v1.RegionOperationsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionOperations.Delete",
"service": {
"shortName": "RegionOperations",
"fullName": "google.cloud.compute.v1.RegionOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionOperations_Get_sync",
"title": "compute Get Sample",
"description": "Get retrieves the specified region-specific Operations resource.",
"file": "RegionOperationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionOperationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "RegionOperationsClient",
"fullName": "google.cloud.compute.v1.RegionOperationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionOperations.Get",
"service": {
"shortName": "RegionOperations",
"fullName": "google.cloud.compute.v1.RegionOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionOperations_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of Operation resources contained within the specified region.",
"file": "RegionOperationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionOperationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "RegionOperationsClient",
"fullName": "google.cloud.compute.v1.RegionOperationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionOperations.List",
"service": {
"shortName": "RegionOperations",
"fullName": "google.cloud.compute.v1.RegionOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionOperations_Wait_sync",
"title": "compute Wait Sample",
"description": "Wait waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.",
"file": "RegionOperationsClient/Wait/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Wait",
"fullName": "google.cloud.compute.v1.RegionOperationsClient.Wait",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.WaitRegionOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "RegionOperationsClient",
"fullName": "google.cloud.compute.v1.RegionOperationsClient"
},
"method": {
"shortName": "Wait",
"fullName": "google.cloud.compute.v1.RegionOperations.Wait",
"service": {
"shortName": "RegionOperations",
"fullName": "google.cloud.compute.v1.RegionOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_AddRule_sync",
"title": "compute AddRule Sample",
"description": "AddRule inserts a rule into a security policy.",
"file": "RegionSecurityPoliciesClient/AddRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.AddRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddRuleRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.AddRule",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified policy.",
"file": "RegionSecurityPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Delete",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get list all of the ordered rules present in a single specified policy.",
"file": "RegionSecurityPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SecurityPolicy",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Get",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_GetRule_sync",
"title": "compute GetRule Sample",
"description": "GetRule gets a rule at the specified priority.",
"file": "RegionSecurityPoliciesClient/GetRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.GetRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRuleRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SecurityPolicyRule",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.GetRule",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new policy in the specified project using the data included in the request.",
"file": "RegionSecurityPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Insert",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_List_sync",
"title": "compute List Sample",
"description": "List list all the policies that have been configured for the specified project and region.",
"file": "RegionSecurityPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionSecurityPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SecurityPolicyIterator",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.List",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"file": "RegionSecurityPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Patch",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_PatchRule_sync",
"title": "compute PatchRule Sample",
"description": "PatchRule patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
"file": "RegionSecurityPoliciesClient/PatchRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.PatchRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRuleRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.PatchRule",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSecurityPolicies_RemoveRule_sync",
"title": "compute RemoveRule Sample",
"description": "RemoveRule deletes a rule at the specified priority.",
"file": "RegionSecurityPoliciesClient/RemoveRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient.RemoveRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveRuleRegionSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient"
},
"method": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies.RemoveRule",
"service": {
"shortName": "RegionSecurityPolicies",
"fullName": "google.cloud.compute.v1.RegionSecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslCertificates_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified SslCertificate resource in the region.",
"file": "RegionSslCertificatesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionSslCertificateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSslCertificatesClient",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionSslCertificates.Delete",
"service": {
"shortName": "RegionSslCertificates",
"fullName": "google.cloud.compute.v1.RegionSslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslCertificates_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request.",
"file": "RegionSslCertificatesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionSslCertificateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SslCertificate",
"client": {
"shortName": "RegionSslCertificatesClient",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionSslCertificates.Get",
"service": {
"shortName": "RegionSslCertificates",
"fullName": "google.cloud.compute.v1.RegionSslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslCertificates_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a SslCertificate resource in the specified project and region using the data included in the request",
"file": "RegionSslCertificatesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionSslCertificateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSslCertificatesClient",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionSslCertificates.Insert",
"service": {
"shortName": "RegionSslCertificates",
"fullName": "google.cloud.compute.v1.RegionSslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslCertificates_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of SslCertificate resources available to the specified project in the specified region.",
"file": "RegionSslCertificatesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionSslCertificatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SslCertificateIterator",
"client": {
"shortName": "RegionSslCertificatesClient",
"fullName": "google.cloud.compute.v1.RegionSslCertificatesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionSslCertificates.List",
"service": {
"shortName": "RegionSslCertificates",
"fullName": "google.cloud.compute.v1.RegionSslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.",
"file": "RegionSslPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSslPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionSslPolicies.Delete",
"service": {
"shortName": "RegionSslPolicies",
"fullName": "google.cloud.compute.v1.RegionSslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get lists all of the ordered rules present in a single specified policy.",
"file": "RegionSslPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SslPolicy",
"client": {
"shortName": "RegionSslPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionSslPolicies.Get",
"service": {
"shortName": "RegionSslPolicies",
"fullName": "google.cloud.compute.v1.RegionSslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new policy in the specified project and region using the data included in the request.",
"file": "RegionSslPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSslPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionSslPolicies.Insert",
"service": {
"shortName": "RegionSslPolicies",
"fullName": "google.cloud.compute.v1.RegionSslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslPolicies_List_sync",
"title": "compute List Sample",
"description": "List lists all the SSL policies that have been configured for the specified project and region.",
"file": "RegionSslPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionSslPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SslPolicyIterator",
"client": {
"shortName": "RegionSslPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionSslPolicies.List",
"service": {
"shortName": "RegionSslPolicies",
"fullName": "google.cloud.compute.v1.RegionSslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslPolicies_ListAvailableFeatures_sync",
"title": "compute ListAvailableFeatures Sample",
"description": "ListAvailableFeatures lists all features that can be specified in the SSL policy when using custom profile.",
"file": "RegionSslPoliciesClient/ListAvailableFeatures/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListAvailableFeatures",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient.ListAvailableFeatures",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListAvailableFeaturesRegionSslPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SslPoliciesListAvailableFeaturesResponse",
"client": {
"shortName": "RegionSslPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient"
},
"method": {
"shortName": "ListAvailableFeatures",
"fullName": "google.cloud.compute.v1.RegionSslPolicies.ListAvailableFeatures",
"service": {
"shortName": "RegionSslPolicies",
"fullName": "google.cloud.compute.v1.RegionSslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionSslPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified SSL policy with the data included in the request.",
"file": "RegionSslPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionSslPoliciesClient",
"fullName": "google.cloud.compute.v1.RegionSslPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionSslPolicies.Patch",
"service": {
"shortName": "RegionSslPolicies",
"fullName": "google.cloud.compute.v1.RegionSslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetHttpProxy resource.",
"file": "RegionTargetHttpProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Delete",
"service": {
"shortName": "RegionTargetHttpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetHttpProxy resource in the specified region.",
"file": "RegionTargetHttpProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetHttpProxy",
"client": {
"shortName": "RegionTargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Get",
"service": {
"shortName": "RegionTargetHttpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetHttpProxy resource in the specified project and region using the data included in the request.",
"file": "RegionTargetHttpProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Insert",
"service": {
"shortName": "RegionTargetHttpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of TargetHttpProxy resources available to the specified project in the specified region.",
"file": "RegionTargetHttpProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionTargetHttpProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetHttpProxyIterator",
"client": {
"shortName": "RegionTargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.List",
"service": {
"shortName": "RegionTargetHttpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync",
"title": "compute SetUrlMap Sample",
"description": "SetUrlMap changes the URL map for TargetHttpProxy.",
"file": "RegionTargetHttpProxiesClient/SetUrlMap/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient.SetUrlMap",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetUrlMapRegionTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient"
},
"method": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.SetUrlMap",
"service": {
"shortName": "RegionTargetHttpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetHttpsProxy resource.",
"file": "RegionTargetHttpsProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Delete",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetHttpsProxy resource in the specified region.",
"file": "RegionTargetHttpsProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetHttpsProxy",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Get",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetHttpsProxy resource in the specified project and region using the data included in the request.",
"file": "RegionTargetHttpsProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Insert",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region.",
"file": "RegionTargetHttpsProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionTargetHttpsProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetHttpsProxyIterator",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.List",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "RegionTargetHttpsProxiesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Patch",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync",
"title": "compute SetSslCertificates Sample",
"description": "SetSslCertificates replaces SslCertificates for TargetHttpsProxy.",
"file": "RegionTargetHttpsProxiesClient/SetSslCertificates/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSslCertificates",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.SetSslCertificates",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSslCertificatesRegionTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "SetSslCertificates",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetSslCertificates",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync",
"title": "compute SetUrlMap Sample",
"description": "SetUrlMap changes the URL map for TargetHttpsProxy.",
"file": "RegionTargetHttpsProxiesClient/SetUrlMap/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient.SetUrlMap",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetUrlMapRegionTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient"
},
"method": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetUrlMap",
"service": {
"shortName": "RegionTargetHttpsProxies",
"fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetTcpProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetTcpProxy resource.",
"file": "RegionTargetTcpProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Delete",
"service": {
"shortName": "RegionTargetTcpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetTcpProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetTcpProxy resource.",
"file": "RegionTargetTcpProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetTcpProxy",
"client": {
"shortName": "RegionTargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Get",
"service": {
"shortName": "RegionTargetTcpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetTcpProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetTcpProxy resource in the specified project and region using the data included in the request.",
"file": "RegionTargetTcpProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionTargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Insert",
"service": {
"shortName": "RegionTargetTcpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionTargetTcpProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of TargetTcpProxy resources available to the specified project in a given region.",
"file": "RegionTargetTcpProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionTargetTcpProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetTcpProxyIterator",
"client": {
"shortName": "RegionTargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.List",
"service": {
"shortName": "RegionTargetTcpProxies",
"fullName": "google.cloud.compute.v1.RegionTargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified UrlMap resource.",
"file": "RegionUrlMapsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRegionUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.Delete",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified UrlMap resource.",
"file": "RegionUrlMapsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.UrlMap",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.Get",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a UrlMap resource in the specified project using the data included in the request.",
"file": "RegionUrlMapsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRegionUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.Insert",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of UrlMap resources available to the specified project in the specified region.",
"file": "RegionUrlMapsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionUrlMapsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UrlMapIterator",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.List",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "RegionUrlMapsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRegionUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.Patch",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified UrlMap resource with the data included in the request.",
"file": "RegionUrlMapsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRegionUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.Update",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionUrlMaps_Validate_sync",
"title": "compute Validate Sample",
"description": "Validate runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.",
"file": "RegionUrlMapsClient/Validate/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Validate",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient.Validate",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ValidateRegionUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.UrlMapsValidateResponse",
"client": {
"shortName": "RegionUrlMapsClient",
"fullName": "google.cloud.compute.v1.RegionUrlMapsClient"
},
"method": {
"shortName": "Validate",
"fullName": "google.cloud.compute.v1.RegionUrlMaps.Validate",
"service": {
"shortName": "RegionUrlMaps",
"fullName": "google.cloud.compute.v1.RegionUrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_RegionZones_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of Zone resources under the specific region available to the specified project.",
"file": "RegionZonesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionZonesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionZonesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ZoneIterator",
"client": {
"shortName": "RegionZonesClient",
"fullName": "google.cloud.compute.v1.RegionZonesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionZones.List",
"service": {
"shortName": "RegionZones",
"fullName": "google.cloud.compute.v1.RegionZones"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Regions_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.",
"file": "RegionsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RegionsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRegionRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Region",
"client": {
"shortName": "RegionsClient",
"fullName": "google.cloud.compute.v1.RegionsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Regions.Get",
"service": {
"shortName": "Regions",
"fullName": "google.cloud.compute.v1.Regions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Regions_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.",
"file": "RegionsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RegionsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRegionsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RegionIterator",
"client": {
"shortName": "RegionsClient",
"fullName": "google.cloud.compute.v1.RegionsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Regions.List",
"service": {
"shortName": "Regions",
"fullName": "google.cloud.compute.v1.Regions"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of reservations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "ReservationsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ReservationsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListReservationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ReservationsScopedListPairIterator",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Reservations.AggregatedList",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified reservation.",
"file": "ReservationsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ReservationsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Reservations.Delete",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_Get_sync",
"title": "compute Get Sample",
"description": "Get retrieves information about the specified reservation.",
"file": "ReservationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ReservationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Reservation",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Reservations.Get",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "ReservationsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.ReservationsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Reservations.GetIamPolicy",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new reservation. For more information, read Reserving zonal resources.",
"file": "ReservationsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ReservationsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Reservations.Insert",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_List_sync",
"title": "compute List Sample",
"description": "List a list of all the reservations that have been configured for the specified project in specified zone.",
"file": "ReservationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ReservationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListReservationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ReservationIterator",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Reservations.List",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_Resize_sync",
"title": "compute Resize Sample",
"description": "Resize resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.",
"file": "ReservationsClient/Resize/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.ReservationsClient.Resize",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ResizeReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "Resize",
"fullName": "google.cloud.compute.v1.Reservations.Resize",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "ReservationsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.ReservationsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Reservations.SetIamPolicy",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "ReservationsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ReservationsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Reservations.TestIamPermissions",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Reservations_Update_sync",
"title": "compute Update Sample",
"description": "Update update share settings of the reservation.",
"file": "ReservationsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.ReservationsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateReservationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ReservationsClient",
"fullName": "google.cloud.compute.v1.ReservationsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.Reservations.Update",
"service": {
"shortName": "Reservations",
"fullName": "google.cloud.compute.v1.Reservations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "ResourcePoliciesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListResourcePoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ResourcePoliciesScopedListPairIterator",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ResourcePolicies.AggregatedList",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified resource policy.",
"file": "ResourcePoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ResourcePolicies.Delete",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get retrieves all information of the specified resource policy.",
"file": "ResourcePoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ResourcePolicy",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ResourcePolicies.Get",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "ResourcePoliciesClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.ResourcePolicies.GetIamPolicy",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new resource policy.",
"file": "ResourcePoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ResourcePolicies.Insert",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_List_sync",
"title": "compute List Sample",
"description": "List a list all the resource policies that have been configured for the specified project in specified region.",
"file": "ResourcePoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListResourcePoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ResourcePolicyIterator",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ResourcePolicies.List",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch modify the specified resource policy.",
"file": "ResourcePoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ResourcePolicies.Patch",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "ResourcePoliciesClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.ResourcePolicies.SetIamPolicy",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ResourcePolicies_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "ResourcePoliciesClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsResourcePolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "ResourcePoliciesClient",
"fullName": "google.cloud.compute.v1.ResourcePoliciesClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ResourcePolicies.TestIamPermissions",
"service": {
"shortName": "ResourcePolicies",
"fullName": "google.cloud.compute.v1.ResourcePolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "RoutersClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.RoutersClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListRoutersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RoutersScopedListPairIterator",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Routers.AggregatedList",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Router resource.",
"file": "RoutersClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RoutersClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Routers.Delete",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Router resource.",
"file": "RoutersClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RoutersClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Router",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Routers.Get",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_GetNatIpInfo_sync",
"title": "compute GetNatIpInfo Sample",
"description": "GetNatIpInfo retrieves runtime NAT IP information.",
"file": "RoutersClient/GetNatIpInfo/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetNatIpInfo",
"fullName": "google.cloud.compute.v1.RoutersClient.GetNatIpInfo",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNatIpInfoRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.NatIpInfoResponse",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "GetNatIpInfo",
"fullName": "google.cloud.compute.v1.Routers.GetNatIpInfo",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_GetNatMappingInfo_sync",
"title": "compute GetNatMappingInfo Sample",
"description": "GetNatMappingInfo retrieves runtime Nat mapping information of VM endpoints.",
"file": "RoutersClient/GetNatMappingInfo/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetNatMappingInfo",
"fullName": "google.cloud.compute.v1.RoutersClient.GetNatMappingInfo",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetNatMappingInfoRoutersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "VmEndpointNatMappingsIterator",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "GetNatMappingInfo",
"fullName": "google.cloud.compute.v1.Routers.GetNatMappingInfo",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_GetRouterStatus_sync",
"title": "compute GetRouterStatus Sample",
"description": "GetRouterStatus retrieves runtime information of the specified router.",
"file": "RoutersClient/GetRouterStatus/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRouterStatus",
"fullName": "google.cloud.compute.v1.RoutersClient.GetRouterStatus",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRouterStatusRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.RouterStatusResponse",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "GetRouterStatus",
"fullName": "google.cloud.compute.v1.Routers.GetRouterStatus",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a Router resource in the specified project and region using the data included in the request.",
"file": "RoutersClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RoutersClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Routers.Insert",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of Router resources available to the specified project.",
"file": "RoutersClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RoutersClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRoutersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RouterIterator",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Routers.List",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "RoutersClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.RoutersClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Routers.Patch",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_Preview_sync",
"title": "compute Preview Sample",
"description": "Preview preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.",
"file": "RoutersClient/Preview/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Preview",
"fullName": "google.cloud.compute.v1.RoutersClient.Preview",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PreviewRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.RoutersPreviewResponse",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "Preview",
"fullName": "google.cloud.compute.v1.Routers.Preview",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routers_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.",
"file": "RoutersClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.RoutersClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateRouterRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RoutersClient",
"fullName": "google.cloud.compute.v1.RoutersClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.Routers.Update",
"service": {
"shortName": "Routers",
"fullName": "google.cloud.compute.v1.Routers"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routes_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Route resource.",
"file": "RoutesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.RoutesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RoutesClient",
"fullName": "google.cloud.compute.v1.RoutesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Routes.Delete",
"service": {
"shortName": "Routes",
"fullName": "google.cloud.compute.v1.Routes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Route resource.",
"file": "RoutesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.RoutesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Route",
"client": {
"shortName": "RoutesClient",
"fullName": "google.cloud.compute.v1.RoutesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Routes.Get",
"service": {
"shortName": "Routes",
"fullName": "google.cloud.compute.v1.Routes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routes_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a Route resource in the specified project using the data included in the request.",
"file": "RoutesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.RoutesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertRouteRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "RoutesClient",
"fullName": "google.cloud.compute.v1.RoutesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Routes.Insert",
"service": {
"shortName": "Routes",
"fullName": "google.cloud.compute.v1.Routes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Routes_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of Route resources available to the specified project.",
"file": "RoutesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.RoutesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListRoutesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RouteIterator",
"client": {
"shortName": "RoutesClient",
"fullName": "google.cloud.compute.v1.RoutesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Routes.List",
"service": {
"shortName": "Routes",
"fullName": "google.cloud.compute.v1.Routes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_AddRule_sync",
"title": "compute AddRule Sample",
"description": "AddRule inserts a rule into a security policy.",
"file": "SecurityPoliciesClient/AddRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.AddRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddRuleSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "AddRule",
"fullName": "google.cloud.compute.v1.SecurityPolicies.AddRule",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "SecurityPoliciesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListSecurityPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SecurityPoliciesScopedListPairIterator",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SecurityPolicies.AggregatedList",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified policy.",
"file": "SecurityPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SecurityPolicies.Delete",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get list all of the ordered rules present in a single specified policy.",
"file": "SecurityPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SecurityPolicy",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SecurityPolicies.Get",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_GetRule_sync",
"title": "compute GetRule Sample",
"description": "GetRule gets a rule at the specified priority.",
"file": "SecurityPoliciesClient/GetRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.GetRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetRuleSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SecurityPolicyRule",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "GetRule",
"fullName": "google.cloud.compute.v1.SecurityPolicies.GetRule",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a new policy in the specified project using the data included in the request.",
"file": "SecurityPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SecurityPolicies.Insert",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_List_sync",
"title": "compute List Sample",
"description": "List list all the policies that have been configured for the specified project.",
"file": "SecurityPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListSecurityPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SecurityPolicyIterator",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SecurityPolicies.List",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_sync",
"title": "compute ListPreconfiguredExpressionSets Sample",
"description": "ListPreconfiguredExpressionSets gets the current list of preconfigured Web Application Firewall (WAF) expressions.",
"file": "SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListPreconfiguredExpressionSets",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.ListPreconfiguredExpressionSets",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListPreconfiguredExpressionSetsSecurityPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SecurityPoliciesListPreconfiguredExpressionSetsResponse",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "ListPreconfiguredExpressionSets",
"fullName": "google.cloud.compute.v1.SecurityPolicies.ListPreconfiguredExpressionSets",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"file": "SecurityPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SecurityPolicies.Patch",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_PatchRule_sync",
"title": "compute PatchRule Sample",
"description": "PatchRule patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
"file": "SecurityPoliciesClient/PatchRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.PatchRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchRuleSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "PatchRule",
"fullName": "google.cloud.compute.v1.SecurityPolicies.PatchRule",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_RemoveRule_sync",
"title": "compute RemoveRule Sample",
"description": "RemoveRule deletes a rule at the specified priority.",
"file": "SecurityPoliciesClient/RemoveRule/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.RemoveRule",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveRuleSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "RemoveRule",
"fullName": "google.cloud.compute.v1.SecurityPolicies.RemoveRule",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SecurityPolicies_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.",
"file": "SecurityPoliciesClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsSecurityPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SecurityPoliciesClient",
"fullName": "google.cloud.compute.v1.SecurityPoliciesClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.SecurityPolicies.SetLabels",
"service": {
"shortName": "SecurityPolicies",
"fullName": "google.cloud.compute.v1.SecurityPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "ServiceAttachmentsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListServiceAttachmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ServiceAttachmentsScopedListPairIterator",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.ServiceAttachments.AggregatedList",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified ServiceAttachment in the given scope",
"file": "ServiceAttachmentsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ServiceAttachments.Delete",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified ServiceAttachment resource in the given scope.",
"file": "ServiceAttachmentsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.ServiceAttachment",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ServiceAttachments.Get",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "ServiceAttachmentsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.ServiceAttachments.GetIamPolicy",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.",
"file": "ServiceAttachmentsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.ServiceAttachments.Insert",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_List_sync",
"title": "compute List Sample",
"description": "List lists the ServiceAttachments for a project in the given scope.",
"file": "ServiceAttachmentsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListServiceAttachmentsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ServiceAttachmentIterator",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ServiceAttachments.List",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "ServiceAttachmentsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.ServiceAttachments.Patch",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "ServiceAttachmentsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.ServiceAttachments.SetIamPolicy",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ServiceAttachments_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "ServiceAttachmentsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsServiceAttachmentRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "ServiceAttachmentsClient",
"fullName": "google.cloud.compute.v1.ServiceAttachmentsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.ServiceAttachments.TestIamPermissions",
"service": {
"shortName": "ServiceAttachments",
"fullName": "google.cloud.compute.v1.ServiceAttachments"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SnapshotSettingsService_Get_sync",
"title": "compute Get Sample",
"description": "Get get snapshot settings.",
"file": "SnapshotSettingsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SnapshotSettingsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSnapshotSettingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SnapshotSettings",
"client": {
"shortName": "SnapshotSettingsClient",
"fullName": "google.cloud.compute.v1.SnapshotSettingsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SnapshotSettingsService.Get",
"service": {
"shortName": "SnapshotSettingsService",
"fullName": "google.cloud.compute.v1.SnapshotSettingsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SnapshotSettingsService_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patch snapshot settings.",
"file": "SnapshotSettingsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SnapshotSettingsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchSnapshotSettingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SnapshotSettingsClient",
"fullName": "google.cloud.compute.v1.SnapshotSettingsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SnapshotSettingsService.Patch",
"service": {
"shortName": "SnapshotSettingsService",
"fullName": "google.cloud.compute.v1.SnapshotSettingsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.",
"file": "SnapshotsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SnapshotsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Snapshots.Delete",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Snapshot resource.",
"file": "SnapshotsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SnapshotsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Snapshot",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Snapshots.Get",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "SnapshotsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.SnapshotsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicySnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Snapshots.GetIamPolicy",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.",
"file": "SnapshotsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SnapshotsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Snapshots.Insert",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of Snapshot resources contained within the specified project.",
"file": "SnapshotsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SnapshotsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListSnapshotsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SnapshotIterator",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Snapshots.List",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "SnapshotsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.SnapshotsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicySnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Snapshots.SetIamPolicy",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.",
"file": "SnapshotsClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.SnapshotsClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.Snapshots.SetLabels",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Snapshots_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "SnapshotsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.SnapshotsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsSnapshotRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "SnapshotsClient",
"fullName": "google.cloud.compute.v1.SnapshotsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Snapshots.TestIamPermissions",
"service": {
"shortName": "Snapshots",
"fullName": "google.cloud.compute.v1.Snapshots"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslCertificates_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "SslCertificatesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SslCertificatesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListSslCertificatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SslCertificatesScopedListPairIterator",
"client": {
"shortName": "SslCertificatesClient",
"fullName": "google.cloud.compute.v1.SslCertificatesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SslCertificates.AggregatedList",
"service": {
"shortName": "SslCertificates",
"fullName": "google.cloud.compute.v1.SslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslCertificates_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified SslCertificate resource.",
"file": "SslCertificatesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SslCertificatesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSslCertificateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SslCertificatesClient",
"fullName": "google.cloud.compute.v1.SslCertificatesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SslCertificates.Delete",
"service": {
"shortName": "SslCertificates",
"fullName": "google.cloud.compute.v1.SslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslCertificates_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified SslCertificate resource.",
"file": "SslCertificatesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SslCertificatesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSslCertificateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SslCertificate",
"client": {
"shortName": "SslCertificatesClient",
"fullName": "google.cloud.compute.v1.SslCertificatesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SslCertificates.Get",
"service": {
"shortName": "SslCertificates",
"fullName": "google.cloud.compute.v1.SslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslCertificates_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a SslCertificate resource in the specified project using the data included in the request.",
"file": "SslCertificatesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SslCertificatesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertSslCertificateRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SslCertificatesClient",
"fullName": "google.cloud.compute.v1.SslCertificatesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SslCertificates.Insert",
"service": {
"shortName": "SslCertificates",
"fullName": "google.cloud.compute.v1.SslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslCertificates_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of SslCertificate resources available to the specified project.",
"file": "SslCertificatesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SslCertificatesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListSslCertificatesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SslCertificateIterator",
"client": {
"shortName": "SslCertificatesClient",
"fullName": "google.cloud.compute.v1.SslCertificatesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SslCertificates.List",
"service": {
"shortName": "SslCertificates",
"fullName": "google.cloud.compute.v1.SslCertificates"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "SslPoliciesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListSslPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SslPoliciesScopedListPairIterator",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SslPolicies.AggregatedList",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.",
"file": "SslPoliciesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SslPolicies.Delete",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_Get_sync",
"title": "compute Get Sample",
"description": "Get lists all of the ordered rules present in a single specified policy.",
"file": "SslPoliciesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SslPolicy",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SslPolicies.Get",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert returns the specified SSL policy resource.",
"file": "SslPoliciesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SslPolicies.Insert",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_List_sync",
"title": "compute List Sample",
"description": "List lists all the SSL policies that have been configured for the specified project.",
"file": "SslPoliciesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListSslPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SslPolicyIterator",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SslPolicies.List",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_ListAvailableFeatures_sync",
"title": "compute ListAvailableFeatures Sample",
"description": "ListAvailableFeatures lists all features that can be specified in the SSL policy when using custom profile.",
"file": "SslPoliciesClient/ListAvailableFeatures/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListAvailableFeatures",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.ListAvailableFeatures",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListAvailableFeaturesSslPoliciesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.SslPoliciesListAvailableFeaturesResponse",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "ListAvailableFeatures",
"fullName": "google.cloud.compute.v1.SslPolicies.ListAvailableFeatures",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_SslPolicies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified SSL policy with the data included in the request.",
"file": "SslPoliciesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SslPoliciesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchSslPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SslPoliciesClient",
"fullName": "google.cloud.compute.v1.SslPoliciesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SslPolicies.Patch",
"service": {
"shortName": "SslPolicies",
"fullName": "google.cloud.compute.v1.SslPolicies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePoolTypes_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "StoragePoolTypesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.StoragePoolTypesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListStoragePoolTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "StoragePoolTypesScopedListPairIterator",
"client": {
"shortName": "StoragePoolTypesClient",
"fullName": "google.cloud.compute.v1.StoragePoolTypesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.StoragePoolTypes.AggregatedList",
"service": {
"shortName": "StoragePoolTypes",
"fullName": "google.cloud.compute.v1.StoragePoolTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePoolTypes_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified storage pool type.",
"file": "StoragePoolTypesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.StoragePoolTypesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetStoragePoolTypeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.StoragePoolType",
"client": {
"shortName": "StoragePoolTypesClient",
"fullName": "google.cloud.compute.v1.StoragePoolTypesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.StoragePoolTypes.Get",
"service": {
"shortName": "StoragePoolTypes",
"fullName": "google.cloud.compute.v1.StoragePoolTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePoolTypes_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of storage pool types available to the specified project.",
"file": "StoragePoolTypesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.StoragePoolTypesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListStoragePoolTypesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "StoragePoolTypeIterator",
"client": {
"shortName": "StoragePoolTypesClient",
"fullName": "google.cloud.compute.v1.StoragePoolTypesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.StoragePoolTypes.List",
"service": {
"shortName": "StoragePoolTypes",
"fullName": "google.cloud.compute.v1.StoragePoolTypes"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "StoragePoolsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListStoragePoolsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "StoragePoolsScopedListPairIterator",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.StoragePools.AggregatedList",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots.",
"file": "StoragePoolsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.StoragePools.Delete",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_Get_sync",
"title": "compute Get Sample",
"description": "Get returns a specified storage pool. Gets a list of available storage pools by making a list() request.",
"file": "StoragePoolsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.StoragePool",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.StoragePools.Get",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "StoragePoolsClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicyStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.StoragePools.GetIamPolicy",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a storage pool in the specified project using the data in the request.",
"file": "StoragePoolsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.StoragePools.Insert",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of storage pools contained within the specified zone.",
"file": "StoragePoolsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListStoragePoolsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "StoragePoolIterator",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.StoragePools.List",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_ListDisks_sync",
"title": "compute ListDisks Sample",
"description": "ListDisks lists the disks in a specified storage pool.",
"file": "StoragePoolsClient/ListDisks/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListDisks",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.ListDisks",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListDisksStoragePoolsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "StoragePoolDiskIterator",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "ListDisks",
"fullName": "google.cloud.compute.v1.StoragePools.ListDisks",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "StoragePoolsClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicyStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.StoragePools.SetIamPolicy",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "StoragePoolsClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.StoragePools.TestIamPermissions",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_StoragePools_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops.",
"file": "StoragePoolsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.StoragePoolsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateStoragePoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "StoragePoolsClient",
"fullName": "google.cloud.compute.v1.StoragePoolsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.StoragePools.Update",
"service": {
"shortName": "StoragePools",
"fullName": "google.cloud.compute.v1.StoragePools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "SubnetworksClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.SubnetworksClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListSubnetworksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SubnetworksScopedListPairIterator",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.Subnetworks.AggregatedList",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified subnetwork.",
"file": "SubnetworksClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.SubnetworksClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.Subnetworks.Delete",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_ExpandIpCidrRange_sync",
"title": "compute ExpandIpCidrRange Sample",
"description": "ExpandIpCidrRange expands the IP CIDR range of the subnetwork to a specified value.",
"file": "SubnetworksClient/ExpandIpCidrRange/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ExpandIpCidrRange",
"fullName": "google.cloud.compute.v1.SubnetworksClient.ExpandIpCidrRange",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ExpandIpCidrRangeSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "ExpandIpCidrRange",
"fullName": "google.cloud.compute.v1.Subnetworks.ExpandIpCidrRange",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified subnetwork.",
"file": "SubnetworksClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.SubnetworksClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Subnetwork",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Subnetworks.Get",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_GetIamPolicy_sync",
"title": "compute GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. May be empty if no such policy or resource exists.",
"file": "SubnetworksClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.SubnetworksClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetIamPolicySubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.compute.v1.Subnetworks.GetIamPolicy",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a subnetwork in the specified project using the data included in the request.",
"file": "SubnetworksClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.SubnetworksClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.Subnetworks.Insert",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of subnetworks available to the specified project.",
"file": "SubnetworksClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.SubnetworksClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListSubnetworksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "SubnetworkIterator",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Subnetworks.List",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_ListUsable_sync",
"title": "compute ListUsable Sample",
"description": "ListUsable retrieves an aggregated list of all usable subnetworks in the project.",
"file": "SubnetworksClient/ListUsable/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListUsable",
"fullName": "google.cloud.compute.v1.SubnetworksClient.ListUsable",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListUsableSubnetworksRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UsableSubnetworkIterator",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "ListUsable",
"fullName": "google.cloud.compute.v1.Subnetworks.ListUsable",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.",
"file": "SubnetworksClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.SubnetworksClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.Subnetworks.Patch",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_SetIamPolicy_sync",
"title": "compute SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.",
"file": "SubnetworksClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.SubnetworksClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetIamPolicySubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Policy",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.compute.v1.Subnetworks.SetIamPolicy",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_sync",
"title": "compute SetPrivateIpGoogleAccess Sample",
"description": "SetPrivateIpGoogleAccess set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.",
"file": "SubnetworksClient/SetPrivateIpGoogleAccess/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetPrivateIpGoogleAccess",
"fullName": "google.cloud.compute.v1.SubnetworksClient.SetPrivateIpGoogleAccess",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetPrivateIpGoogleAccessSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "SetPrivateIpGoogleAccess",
"fullName": "google.cloud.compute.v1.Subnetworks.SetPrivateIpGoogleAccess",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Subnetworks_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "SubnetworksClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.SubnetworksClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsSubnetworkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "SubnetworksClient",
"fullName": "google.cloud.compute.v1.SubnetworksClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.Subnetworks.TestIamPermissions",
"service": {
"shortName": "Subnetworks",
"fullName": "google.cloud.compute.v1.Subnetworks"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetGrpcProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetGrpcProxy in the given scope",
"file": "TargetGrpcProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetGrpcProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetGrpcProxiesClient",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies.Delete",
"service": {
"shortName": "TargetGrpcProxies",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetGrpcProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetGrpcProxy resource in the given scope.",
"file": "TargetGrpcProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetGrpcProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetGrpcProxy",
"client": {
"shortName": "TargetGrpcProxiesClient",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies.Get",
"service": {
"shortName": "TargetGrpcProxies",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetGrpcProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.",
"file": "TargetGrpcProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetGrpcProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetGrpcProxiesClient",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies.Insert",
"service": {
"shortName": "TargetGrpcProxies",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetGrpcProxies_List_sync",
"title": "compute List Sample",
"description": "List lists the TargetGrpcProxies for a project in the given scope.",
"file": "TargetGrpcProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetGrpcProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetGrpcProxyIterator",
"client": {
"shortName": "TargetGrpcProxiesClient",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies.List",
"service": {
"shortName": "TargetGrpcProxies",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetGrpcProxies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "TargetGrpcProxiesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchTargetGrpcProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetGrpcProxiesClient",
"fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies.Patch",
"service": {
"shortName": "TargetGrpcProxies",
"fullName": "google.cloud.compute.v1.TargetGrpcProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "TargetHttpProxiesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListTargetHttpProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetHttpProxiesScopedListPairIterator",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.AggregatedList",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetHttpProxy resource.",
"file": "TargetHttpProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.Delete",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetHttpProxy resource.",
"file": "TargetHttpProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetHttpProxy",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.Get",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetHttpProxy resource in the specified project using the data included in the request.",
"file": "TargetHttpProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.Insert",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of TargetHttpProxy resources available to the specified project.",
"file": "TargetHttpProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetHttpProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetHttpProxyIterator",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.List",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "TargetHttpProxiesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.Patch",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpProxies_SetUrlMap_sync",
"title": "compute SetUrlMap Sample",
"description": "SetUrlMap changes the URL map for TargetHttpProxy.",
"file": "TargetHttpProxiesClient/SetUrlMap/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient.SetUrlMap",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetUrlMapTargetHttpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpProxiesClient"
},
"method": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.TargetHttpProxies.SetUrlMap",
"service": {
"shortName": "TargetHttpProxies",
"fullName": "google.cloud.compute.v1.TargetHttpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "TargetHttpsProxiesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListTargetHttpsProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetHttpsProxiesScopedListPairIterator",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.AggregatedList",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetHttpsProxy resource.",
"file": "TargetHttpsProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.Delete",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetHttpsProxy resource.",
"file": "TargetHttpsProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetHttpsProxy",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.Get",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetHttpsProxy resource in the specified project using the data included in the request.",
"file": "TargetHttpsProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.Insert",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of TargetHttpsProxy resources available to the specified project.",
"file": "TargetHttpsProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetHttpsProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetHttpsProxyIterator",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.List",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
"file": "TargetHttpsProxiesClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.Patch",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_SetCertificateMap_sync",
"title": "compute SetCertificateMap Sample",
"description": "SetCertificateMap changes the Certificate Map for TargetHttpsProxy.",
"file": "TargetHttpsProxiesClient/SetCertificateMap/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetCertificateMap",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.SetCertificateMap",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetCertificateMapTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "SetCertificateMap",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetCertificateMap",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_SetQuicOverride_sync",
"title": "compute SetQuicOverride Sample",
"description": "SetQuicOverride sets the QUIC override policy for TargetHttpsProxy.",
"file": "TargetHttpsProxiesClient/SetQuicOverride/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetQuicOverride",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.SetQuicOverride",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetQuicOverrideTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "SetQuicOverride",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetQuicOverride",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_SetSslCertificates_sync",
"title": "compute SetSslCertificates Sample",
"description": "SetSslCertificates replaces SslCertificates for TargetHttpsProxy.",
"file": "TargetHttpsProxiesClient/SetSslCertificates/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSslCertificates",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.SetSslCertificates",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSslCertificatesTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "SetSslCertificates",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslCertificates",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_SetSslPolicy_sync",
"title": "compute SetSslPolicy Sample",
"description": "SetSslPolicy sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.",
"file": "TargetHttpsProxiesClient/SetSslPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSslPolicy",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.SetSslPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSslPolicyTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "SetSslPolicy",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslPolicy",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetHttpsProxies_SetUrlMap_sync",
"title": "compute SetUrlMap Sample",
"description": "SetUrlMap changes the URL map for TargetHttpsProxy.",
"file": "TargetHttpsProxiesClient/SetUrlMap/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient.SetUrlMap",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetUrlMapTargetHttpsProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetHttpsProxiesClient",
"fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient"
},
"method": {
"shortName": "SetUrlMap",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetUrlMap",
"service": {
"shortName": "TargetHttpsProxies",
"fullName": "google.cloud.compute.v1.TargetHttpsProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetInstances_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "TargetInstancesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetInstancesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListTargetInstancesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetInstancesScopedListPairIterator",
"client": {
"shortName": "TargetInstancesClient",
"fullName": "google.cloud.compute.v1.TargetInstancesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetInstances.AggregatedList",
"service": {
"shortName": "TargetInstances",
"fullName": "google.cloud.compute.v1.TargetInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetInstances_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetInstance resource.",
"file": "TargetInstancesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetInstancesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetInstancesClient",
"fullName": "google.cloud.compute.v1.TargetInstancesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetInstances.Delete",
"service": {
"shortName": "TargetInstances",
"fullName": "google.cloud.compute.v1.TargetInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetInstances_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetInstance resource.",
"file": "TargetInstancesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetInstancesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetInstance",
"client": {
"shortName": "TargetInstancesClient",
"fullName": "google.cloud.compute.v1.TargetInstancesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetInstances.Get",
"service": {
"shortName": "TargetInstances",
"fullName": "google.cloud.compute.v1.TargetInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetInstances_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetInstance resource in the specified project and zone using the data included in the request.",
"file": "TargetInstancesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetInstancesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetInstancesClient",
"fullName": "google.cloud.compute.v1.TargetInstancesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetInstances.Insert",
"service": {
"shortName": "TargetInstances",
"fullName": "google.cloud.compute.v1.TargetInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetInstances_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of TargetInstance resources available to the specified project and zone.",
"file": "TargetInstancesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetInstancesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetInstancesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetInstanceIterator",
"client": {
"shortName": "TargetInstancesClient",
"fullName": "google.cloud.compute.v1.TargetInstancesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetInstances.List",
"service": {
"shortName": "TargetInstances",
"fullName": "google.cloud.compute.v1.TargetInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetInstances_SetSecurityPolicy_sync",
"title": "compute SetSecurityPolicy Sample",
"description": "SetSecurityPolicy sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview",
"file": "TargetInstancesClient/SetSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.TargetInstancesClient.SetSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSecurityPolicyTargetInstanceRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetInstancesClient",
"fullName": "google.cloud.compute.v1.TargetInstancesClient"
},
"method": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.TargetInstances.SetSecurityPolicy",
"service": {
"shortName": "TargetInstances",
"fullName": "google.cloud.compute.v1.TargetInstances"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_AddHealthCheck_sync",
"title": "compute AddHealthCheck Sample",
"description": "AddHealthCheck adds health check URLs to a target pool.",
"file": "TargetPoolsClient/AddHealthCheck/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddHealthCheck",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.AddHealthCheck",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddHealthCheckTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "AddHealthCheck",
"fullName": "google.cloud.compute.v1.TargetPools.AddHealthCheck",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_AddInstance_sync",
"title": "compute AddInstance Sample",
"description": "AddInstance adds an instance to a target pool.",
"file": "TargetPoolsClient/AddInstance/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AddInstance",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.AddInstance",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AddInstanceTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "AddInstance",
"fullName": "google.cloud.compute.v1.TargetPools.AddInstance",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "TargetPoolsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListTargetPoolsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetPoolsScopedListPairIterator",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetPools.AggregatedList",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified target pool.",
"file": "TargetPoolsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetPools.Delete",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified target pool.",
"file": "TargetPoolsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetPool",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetPools.Get",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_GetHealth_sync",
"title": "compute GetHealth Sample",
"description": "GetHealth gets the most recent health check results for each IP for the instance that is referenced by the given target pool.",
"file": "TargetPoolsClient/GetHealth/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetHealth",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.GetHealth",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetHealthTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetPoolInstanceHealth",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "GetHealth",
"fullName": "google.cloud.compute.v1.TargetPools.GetHealth",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a target pool in the specified project and region using the data included in the request.",
"file": "TargetPoolsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetPools.Insert",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of target pools available to the specified project and region.",
"file": "TargetPoolsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetPoolsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetPoolIterator",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetPools.List",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_RemoveHealthCheck_sync",
"title": "compute RemoveHealthCheck Sample",
"description": "RemoveHealthCheck removes health check URL from a target pool.",
"file": "TargetPoolsClient/RemoveHealthCheck/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveHealthCheck",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.RemoveHealthCheck",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveHealthCheckTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "RemoveHealthCheck",
"fullName": "google.cloud.compute.v1.TargetPools.RemoveHealthCheck",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_RemoveInstance_sync",
"title": "compute RemoveInstance Sample",
"description": "RemoveInstance removes instance URL from a target pool.",
"file": "TargetPoolsClient/RemoveInstance/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RemoveInstance",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.RemoveInstance",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.RemoveInstanceTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "RemoveInstance",
"fullName": "google.cloud.compute.v1.TargetPools.RemoveInstance",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_SetBackup_sync",
"title": "compute SetBackup Sample",
"description": "SetBackup changes a backup target pool's configurations.",
"file": "TargetPoolsClient/SetBackup/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetBackup",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.SetBackup",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetBackupTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "SetBackup",
"fullName": "google.cloud.compute.v1.TargetPools.SetBackup",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetPools_SetSecurityPolicy_sync",
"title": "compute SetSecurityPolicy Sample",
"description": "SetSecurityPolicy sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview",
"file": "TargetPoolsClient/SetSecurityPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.TargetPoolsClient.SetSecurityPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSecurityPolicyTargetPoolRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetPoolsClient",
"fullName": "google.cloud.compute.v1.TargetPoolsClient"
},
"method": {
"shortName": "SetSecurityPolicy",
"fullName": "google.cloud.compute.v1.TargetPools.SetSecurityPolicy",
"service": {
"shortName": "TargetPools",
"fullName": "google.cloud.compute.v1.TargetPools"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetSslProxy resource.",
"file": "TargetSslProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetSslProxies.Delete",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetSslProxy resource.",
"file": "TargetSslProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetSslProxy",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetSslProxies.Get",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetSslProxy resource in the specified project using the data included in the request.",
"file": "TargetSslProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetSslProxies.Insert",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of TargetSslProxy resources available to the specified project.",
"file": "TargetSslProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetSslProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetSslProxyIterator",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetSslProxies.List",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_SetBackendService_sync",
"title": "compute SetBackendService Sample",
"description": "SetBackendService changes the BackendService for TargetSslProxy.",
"file": "TargetSslProxiesClient/SetBackendService/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetBackendService",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.SetBackendService",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetBackendServiceTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "SetBackendService",
"fullName": "google.cloud.compute.v1.TargetSslProxies.SetBackendService",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_SetCertificateMap_sync",
"title": "compute SetCertificateMap Sample",
"description": "SetCertificateMap changes the Certificate Map for TargetSslProxy.",
"file": "TargetSslProxiesClient/SetCertificateMap/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetCertificateMap",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.SetCertificateMap",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetCertificateMapTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "SetCertificateMap",
"fullName": "google.cloud.compute.v1.TargetSslProxies.SetCertificateMap",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_SetProxyHeader_sync",
"title": "compute SetProxyHeader Sample",
"description": "SetProxyHeader changes the ProxyHeaderType for TargetSslProxy.",
"file": "TargetSslProxiesClient/SetProxyHeader/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetProxyHeader",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.SetProxyHeader",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetProxyHeaderTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "SetProxyHeader",
"fullName": "google.cloud.compute.v1.TargetSslProxies.SetProxyHeader",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_SetSslCertificates_sync",
"title": "compute SetSslCertificates Sample",
"description": "SetSslCertificates changes SslCertificates for TargetSslProxy.",
"file": "TargetSslProxiesClient/SetSslCertificates/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSslCertificates",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.SetSslCertificates",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSslCertificatesTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "SetSslCertificates",
"fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslCertificates",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetSslProxies_SetSslPolicy_sync",
"title": "compute SetSslPolicy Sample",
"description": "SetSslPolicy sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.",
"file": "TargetSslProxiesClient/SetSslPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetSslPolicy",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient.SetSslPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetSslPolicyTargetSslProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetSslProxiesClient",
"fullName": "google.cloud.compute.v1.TargetSslProxiesClient"
},
"method": {
"shortName": "SetSslPolicy",
"fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslPolicy",
"service": {
"shortName": "TargetSslProxies",
"fullName": "google.cloud.compute.v1.TargetSslProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "TargetTcpProxiesClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListTargetTcpProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetTcpProxiesScopedListPairIterator",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.AggregatedList",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified TargetTcpProxy resource.",
"file": "TargetTcpProxiesClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.Delete",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified TargetTcpProxy resource.",
"file": "TargetTcpProxiesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetTcpProxy",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.Get",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a TargetTcpProxy resource in the specified project using the data included in the request.",
"file": "TargetTcpProxiesClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.Insert",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of TargetTcpProxy resources available to the specified project.",
"file": "TargetTcpProxiesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetTcpProxiesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetTcpProxyIterator",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.List",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_SetBackendService_sync",
"title": "compute SetBackendService Sample",
"description": "SetBackendService changes the BackendService for TargetTcpProxy.",
"file": "TargetTcpProxiesClient/SetBackendService/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetBackendService",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.SetBackendService",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetBackendServiceTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "SetBackendService",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.SetBackendService",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetTcpProxies_SetProxyHeader_sync",
"title": "compute SetProxyHeader Sample",
"description": "SetProxyHeader changes the ProxyHeaderType for TargetTcpProxy.",
"file": "TargetTcpProxiesClient/SetProxyHeader/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetProxyHeader",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient.SetProxyHeader",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetProxyHeaderTargetTcpProxyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetTcpProxiesClient",
"fullName": "google.cloud.compute.v1.TargetTcpProxiesClient"
},
"method": {
"shortName": "SetProxyHeader",
"fullName": "google.cloud.compute.v1.TargetTcpProxies.SetProxyHeader",
"service": {
"shortName": "TargetTcpProxies",
"fullName": "google.cloud.compute.v1.TargetTcpProxies"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetVpnGateways_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "TargetVpnGatewaysClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListTargetVpnGatewaysRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetVpnGatewaysScopedListPairIterator",
"client": {
"shortName": "TargetVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.TargetVpnGateways.AggregatedList",
"service": {
"shortName": "TargetVpnGateways",
"fullName": "google.cloud.compute.v1.TargetVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetVpnGateways_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified target VPN gateway.",
"file": "TargetVpnGatewaysClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteTargetVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.TargetVpnGateways.Delete",
"service": {
"shortName": "TargetVpnGateways",
"fullName": "google.cloud.compute.v1.TargetVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetVpnGateways_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified target VPN gateway.",
"file": "TargetVpnGatewaysClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetTargetVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TargetVpnGateway",
"client": {
"shortName": "TargetVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.TargetVpnGateways.Get",
"service": {
"shortName": "TargetVpnGateways",
"fullName": "google.cloud.compute.v1.TargetVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetVpnGateways_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a target VPN gateway in the specified project and region using the data included in the request.",
"file": "TargetVpnGatewaysClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertTargetVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.TargetVpnGateways.Insert",
"service": {
"shortName": "TargetVpnGateways",
"fullName": "google.cloud.compute.v1.TargetVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetVpnGateways_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of target VPN gateways available to the specified project and region.",
"file": "TargetVpnGatewaysClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListTargetVpnGatewaysRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "TargetVpnGatewayIterator",
"client": {
"shortName": "TargetVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.TargetVpnGateways.List",
"service": {
"shortName": "TargetVpnGateways",
"fullName": "google.cloud.compute.v1.TargetVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_TargetVpnGateways_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.",
"file": "TargetVpnGatewaysClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsTargetVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "TargetVpnGatewaysClient",
"fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.TargetVpnGateways.SetLabels",
"service": {
"shortName": "TargetVpnGateways",
"fullName": "google.cloud.compute.v1.TargetVpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "UrlMapsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.UrlMapsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListUrlMapsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UrlMapsScopedListPairIterator",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.UrlMaps.AggregatedList",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified UrlMap resource.",
"file": "UrlMapsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.UrlMapsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.UrlMaps.Delete",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified UrlMap resource.",
"file": "UrlMapsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.UrlMapsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.UrlMap",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.UrlMaps.Get",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a UrlMap resource in the specified project using the data included in the request.",
"file": "UrlMapsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.UrlMapsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.UrlMaps.Insert",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_InvalidateCache_sync",
"title": "compute InvalidateCache Sample",
"description": "InvalidateCache initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).",
"file": "UrlMapsClient/InvalidateCache/main.go",
"language": "GO",
"clientMethod": {
"shortName": "InvalidateCache",
"fullName": "google.cloud.compute.v1.UrlMapsClient.InvalidateCache",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InvalidateCacheUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "InvalidateCache",
"fullName": "google.cloud.compute.v1.UrlMaps.InvalidateCache",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of UrlMap resources available to the specified project.",
"file": "UrlMapsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.UrlMapsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListUrlMapsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "UrlMapIterator",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.UrlMaps.List",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_Patch_sync",
"title": "compute Patch Sample",
"description": "Patch patches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.",
"file": "UrlMapsClient/Patch/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.UrlMapsClient.Patch",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.PatchUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "Patch",
"fullName": "google.cloud.compute.v1.UrlMaps.Patch",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_Update_sync",
"title": "compute Update Sample",
"description": "Update updates the specified UrlMap resource with the data included in the request.",
"file": "UrlMapsClient/Update/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.UrlMapsClient.Update",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.UpdateUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "Update",
"fullName": "google.cloud.compute.v1.UrlMaps.Update",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_UrlMaps_Validate_sync",
"title": "compute Validate Sample",
"description": "Validate runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.",
"file": "UrlMapsClient/Validate/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Validate",
"fullName": "google.cloud.compute.v1.UrlMapsClient.Validate",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ValidateUrlMapRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.UrlMapsValidateResponse",
"client": {
"shortName": "UrlMapsClient",
"fullName": "google.cloud.compute.v1.UrlMapsClient"
},
"method": {
"shortName": "Validate",
"fullName": "google.cloud.compute.v1.UrlMaps.Validate",
"service": {
"shortName": "UrlMaps",
"fullName": "google.cloud.compute.v1.UrlMaps"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "VpnGatewaysClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListVpnGatewaysRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "VpnGatewaysScopedListPairIterator",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.VpnGateways.AggregatedList",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified VPN gateway.",
"file": "VpnGatewaysClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.VpnGateways.Delete",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified VPN gateway.",
"file": "VpnGatewaysClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.VpnGateway",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.VpnGateways.Get",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_GetStatus_sync",
"title": "compute GetStatus Sample",
"description": "GetStatus returns the status for the specified VPN gateway.",
"file": "VpnGatewaysClient/GetStatus/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetStatus",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.GetStatus",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetStatusVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.VpnGatewaysGetStatusResponse",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "GetStatus",
"fullName": "google.cloud.compute.v1.VpnGateways.GetStatus",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a VPN gateway in the specified project and region using the data included in the request.",
"file": "VpnGatewaysClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.VpnGateways.Insert",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of VPN gateways available to the specified project and region.",
"file": "VpnGatewaysClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListVpnGatewaysRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "VpnGatewayIterator",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.VpnGateways.List",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.",
"file": "VpnGatewaysClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.VpnGateways.SetLabels",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnGateways_TestIamPermissions_sync",
"title": "compute TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource.",
"file": "VpnGatewaysClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.TestIamPermissionsVpnGatewayRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.TestPermissionsResponse",
"client": {
"shortName": "VpnGatewaysClient",
"fullName": "google.cloud.compute.v1.VpnGatewaysClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.compute.v1.VpnGateways.TestIamPermissions",
"service": {
"shortName": "VpnGateways",
"fullName": "google.cloud.compute.v1.VpnGateways"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnTunnels_AggregatedList_sync",
"title": "compute AggregatedList Sample",
"description": "AggregatedList retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.",
"file": "VpnTunnelsClient/AggregatedList/main.go",
"language": "GO",
"clientMethod": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient.AggregatedList",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.AggregatedListVpnTunnelsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "VpnTunnelsScopedListPairIterator",
"client": {
"shortName": "VpnTunnelsClient",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient"
},
"method": {
"shortName": "AggregatedList",
"fullName": "google.cloud.compute.v1.VpnTunnels.AggregatedList",
"service": {
"shortName": "VpnTunnels",
"fullName": "google.cloud.compute.v1.VpnTunnels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnTunnels_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified VpnTunnel resource.",
"file": "VpnTunnelsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteVpnTunnelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "VpnTunnelsClient",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.VpnTunnels.Delete",
"service": {
"shortName": "VpnTunnels",
"fullName": "google.cloud.compute.v1.VpnTunnels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnTunnels_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified VpnTunnel resource.",
"file": "VpnTunnelsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetVpnTunnelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.VpnTunnel",
"client": {
"shortName": "VpnTunnelsClient",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.VpnTunnels.Get",
"service": {
"shortName": "VpnTunnels",
"fullName": "google.cloud.compute.v1.VpnTunnels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnTunnels_Insert_sync",
"title": "compute Insert Sample",
"description": "Insert creates a VpnTunnel resource in the specified project and region using the data included in the request.",
"file": "VpnTunnelsClient/Insert/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient.Insert",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.InsertVpnTunnelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "VpnTunnelsClient",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient"
},
"method": {
"shortName": "Insert",
"fullName": "google.cloud.compute.v1.VpnTunnels.Insert",
"service": {
"shortName": "VpnTunnels",
"fullName": "google.cloud.compute.v1.VpnTunnels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnTunnels_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of VpnTunnel resources contained in the specified project and region.",
"file": "VpnTunnelsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListVpnTunnelsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "VpnTunnelIterator",
"client": {
"shortName": "VpnTunnelsClient",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.VpnTunnels.List",
"service": {
"shortName": "VpnTunnels",
"fullName": "google.cloud.compute.v1.VpnTunnels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_VpnTunnels_SetLabels_sync",
"title": "compute SetLabels Sample",
"description": "SetLabels sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation.",
"file": "VpnTunnelsClient/SetLabels/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient.SetLabels",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.SetLabelsVpnTunnelRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*Operation",
"client": {
"shortName": "VpnTunnelsClient",
"fullName": "google.cloud.compute.v1.VpnTunnelsClient"
},
"method": {
"shortName": "SetLabels",
"fullName": "google.cloud.compute.v1.VpnTunnels.SetLabels",
"service": {
"shortName": "VpnTunnels",
"fullName": "google.cloud.compute.v1.VpnTunnels"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ZoneOperations_Delete_sync",
"title": "compute Delete Sample",
"description": "Delete deletes the specified zone-specific Operations resource.",
"file": "ZoneOperationsClient/Delete/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient.Delete",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.DeleteZoneOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.DeleteZoneOperationResponse",
"client": {
"shortName": "ZoneOperationsClient",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient"
},
"method": {
"shortName": "Delete",
"fullName": "google.cloud.compute.v1.ZoneOperations.Delete",
"service": {
"shortName": "ZoneOperations",
"fullName": "google.cloud.compute.v1.ZoneOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ZoneOperations_Get_sync",
"title": "compute Get Sample",
"description": "Get retrieves the specified zone-specific Operations resource.",
"file": "ZoneOperationsClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetZoneOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "ZoneOperationsClient",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ZoneOperations.Get",
"service": {
"shortName": "ZoneOperations",
"fullName": "google.cloud.compute.v1.ZoneOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ZoneOperations_List_sync",
"title": "compute List Sample",
"description": "List retrieves a list of Operation resources contained within the specified zone.",
"file": "ZoneOperationsClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListZoneOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "ZoneOperationsClient",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ZoneOperations.List",
"service": {
"shortName": "ZoneOperations",
"fullName": "google.cloud.compute.v1.ZoneOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_ZoneOperations_Wait_sync",
"title": "compute Wait Sample",
"description": "Wait waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.",
"file": "ZoneOperationsClient/Wait/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Wait",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient.Wait",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.WaitZoneOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Operation",
"client": {
"shortName": "ZoneOperationsClient",
"fullName": "google.cloud.compute.v1.ZoneOperationsClient"
},
"method": {
"shortName": "Wait",
"fullName": "google.cloud.compute.v1.ZoneOperations.Wait",
"service": {
"shortName": "ZoneOperations",
"fullName": "google.cloud.compute.v1.ZoneOperations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Zones_Get_sync",
"title": "compute Get Sample",
"description": "Get returns the specified Zone resource.",
"file": "ZonesClient/Get/main.go",
"language": "GO",
"clientMethod": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.ZonesClient.Get",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.GetZoneRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*computepb.Zone",
"client": {
"shortName": "ZonesClient",
"fullName": "google.cloud.compute.v1.ZonesClient"
},
"method": {
"shortName": "Get",
"fullName": "google.cloud.compute.v1.Zones.Get",
"service": {
"shortName": "Zones",
"fullName": "google.cloud.compute.v1.Zones"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "compute_v1_generated_Zones_List_sync",
"title": "compute List Sample",
"description": "List retrieves the list of Zone resources available to the specified project.",
"file": "ZonesClient/List/main.go",
"language": "GO",
"clientMethod": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.ZonesClient.List",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "computepb.ListZonesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ZoneIterator",
"client": {
"shortName": "ZonesClient",
"fullName": "google.cloud.compute.v1.ZonesClient"
},
"method": {
"shortName": "List",
"fullName": "google.cloud.compute.v1.Zones.List",
"service": {
"shortName": "Zones",
"fullName": "google.cloud.compute.v1.Zones"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
}
]
}