From 55d1ddcffb1095c7b398ae4d653aa03c430a2113 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 7 Jul 2021 08:13:15 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#4374) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/631 --- accessapproval/apiv1/doc.go | 2 +- aiplatform/apiv1/doc.go | 2 +- analytics/admin/apiv1alpha/doc.go | 2 +- analytics/data/apiv1alpha/doc.go | 2 +- apigateway/apiv1/doc.go | 2 +- apigeeconnect/apiv1/doc.go | 2 +- appengine/apiv1/doc.go | 2 +- area120/tables/apiv1alpha1/doc.go | 2 +- artifactregistry/apiv1beta2/doc.go | 2 +- asset/apiv1/doc.go | 2 +- asset/apiv1p2beta1/doc.go | 2 +- asset/apiv1p5beta1/doc.go | 2 +- assuredworkloads/apiv1beta1/doc.go | 2 +- automl/apiv1/doc.go | 2 +- automl/apiv1beta1/doc.go | 2 +- bigquery/connection/apiv1/doc.go | 2 +- bigquery/connection/apiv1beta1/doc.go | 2 +- bigquery/datatransfer/apiv1/doc.go | 2 +- bigquery/go.mod | 2 +- bigquery/go.sum | 4 +- bigquery/reservation/apiv1/doc.go | 2 +- bigquery/reservation/apiv1beta1/doc.go | 2 +- bigquery/storage/apiv1/doc.go | 2 +- bigquery/storage/apiv1beta1/doc.go | 2 +- bigquery/storage/apiv1beta2/doc.go | 2 +- billing/apiv1/doc.go | 2 +- billing/budgets/apiv1/doc.go | 2 +- billing/budgets/apiv1beta1/doc.go | 2 +- binaryauthorization/apiv1beta1/doc.go | 2 +- channel/apiv1/doc.go | 2 +- cloudbuild/apiv1/doc.go | 2 +- cloudbuild/apiv1/v2/doc.go | 2 +- clouddms/apiv1/doc.go | 2 +- cloudtasks/apiv2/doc.go | 2 +- cloudtasks/apiv2beta2/doc.go | 2 +- cloudtasks/apiv2beta3/doc.go | 2 +- compute/apiv1/doc.go | 2 +- container/apiv1/doc.go | 2 +- containeranalysis/apiv1/doc.go | 2 +- containeranalysis/apiv1beta1/doc.go | 2 +- datacatalog/apiv1/doc.go | 2 +- datacatalog/apiv1beta1/doc.go | 2 +- dataflow/apiv1beta3/doc.go | 2 +- datalabeling/apiv1beta1/doc.go | 2 +- dataproc/apiv1/doc.go | 2 +- dataproc/apiv1beta2/doc.go | 2 +- dataqna/apiv1alpha/doc.go | 2 +- datastore/admin/apiv1/doc.go | 2 +- datastore/go.mod | 2 +- datastore/go.sum | 4 +- datastream/apiv1alpha1/doc.go | 2 +- debugger/apiv2/doc.go | 2 +- dialogflow/apiv2/doc.go | 2 +- dialogflow/cx/apiv3/doc.go | 2 +- dialogflow/cx/apiv3beta1/doc.go | 2 +- dlp/apiv2/doc.go | 2 +- documentai/apiv1/doc.go | 2 +- documentai/apiv1beta3/doc.go | 2 +- domains/apiv1beta1/doc.go | 2 +- errorreporting/apiv1beta1/doc.go | 2 +- essentialcontacts/apiv1/doc.go | 2 +- eventarc/apiv1/doc.go | 2 +- firestore/apiv1/admin/doc.go | 2 +- firestore/apiv1/doc.go | 2 +- firestore/apiv1beta1/doc.go | 2 +- firestore/go.mod | 2 +- firestore/go.sum | 4 +- functions/apiv1/doc.go | 2 +- gaming/apiv1/doc.go | 2 +- gaming/apiv1beta/doc.go | 2 +- gkeconnect/gateway/apiv1beta1/doc.go | 2 +- gkehub/apiv1beta1/doc.go | 2 +- go.mod | 2 +- go.sum | 4 +- grafeas/apiv1/doc.go | 2 +- gsuiteaddons/apiv1/doc.go | 2 +- iam/admin/apiv1/doc.go | 2 +- iam/credentials/apiv1/doc.go | 2 +- .../AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/AcceleratorTypesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/AcceleratorTypesClient/List/main.go | 47 +++++++++++++++++++ .../AddressesClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/AddressesClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/AddressesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/AddressesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/AddressesClient/List/main.go | 47 +++++++++++++++++++ .../AutoscalersClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/AutoscalersClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/AutoscalersClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/AutoscalersClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/AutoscalersClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/AutoscalersClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/AutoscalersClient/Update/main.go | 47 +++++++++++++++++++ .../AddSignedUrlKey/main.go | 47 +++++++++++++++++++ .../apiv1/BackendBucketsClient/Delete/main.go | 47 +++++++++++++++++++ .../DeleteSignedUrlKey/main.go | 47 +++++++++++++++++++ .../apiv1/BackendBucketsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/BackendBucketsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/BackendBucketsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/BackendBucketsClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/BackendBucketsClient/Update/main.go | 47 +++++++++++++++++++ .../AddSignedUrlKey/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../BackendServicesClient/Delete/main.go | 47 +++++++++++++++++++ .../DeleteSignedUrlKey/main.go | 47 +++++++++++++++++++ .../apiv1/BackendServicesClient/Get/main.go | 47 +++++++++++++++++++ .../BackendServicesClient/GetHealth/main.go | 47 +++++++++++++++++++ .../BackendServicesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/BackendServicesClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/BackendServicesClient/Patch/main.go | 47 +++++++++++++++++++ .../SetSecurityPolicy/main.go | 47 +++++++++++++++++++ .../BackendServicesClient/Update/main.go | 47 +++++++++++++++++++ .../DiskTypesClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../compute/apiv1/DiskTypesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/DiskTypesClient/List/main.go | 47 +++++++++++++++++++ .../DisksClient/AddResourcePolicies/main.go | 47 +++++++++++++++++++ .../apiv1/DisksClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/DisksClient/CreateSnapshot/main.go | 47 +++++++++++++++++++ .../compute/apiv1/DisksClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/DisksClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/DisksClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../compute/apiv1/DisksClient/Insert/main.go | 47 +++++++++++++++++++ .../compute/apiv1/DisksClient/List/main.go | 47 +++++++++++++++++++ .../RemoveResourcePolicies/main.go | 47 +++++++++++++++++++ .../compute/apiv1/DisksClient/Resize/main.go | 47 +++++++++++++++++++ .../apiv1/DisksClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/DisksClient/SetLabels/main.go | 47 +++++++++++++++++++ .../DisksClient/TestIamPermissions/main.go | 47 +++++++++++++++++++ .../ExternalVpnGatewaysClient/Delete/main.go | 47 +++++++++++++++++++ .../ExternalVpnGatewaysClient/Get/main.go | 47 +++++++++++++++++++ .../ExternalVpnGatewaysClient/Insert/main.go | 47 +++++++++++++++++++ .../ExternalVpnGatewaysClient/List/main.go | 47 +++++++++++++++++++ .../SetLabels/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../AddAssociation/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/AddRule/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/CloneRules/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallPoliciesClient/Get/main.go | 47 +++++++++++++++++++ .../GetAssociation/main.go | 47 +++++++++++++++++++ .../GetIamPolicy/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/GetRule/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallPoliciesClient/List/main.go | 47 +++++++++++++++++++ .../ListAssociations/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallPoliciesClient/Move/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/Patch/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/PatchRule/main.go | 47 +++++++++++++++++++ .../RemoveAssociation/main.go | 47 +++++++++++++++++++ .../FirewallPoliciesClient/RemoveRule/main.go | 47 +++++++++++++++++++ .../SetIamPolicy/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallsClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/FirewallsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallsClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/FirewallsClient/Update/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../ForwardingRulesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/ForwardingRulesClient/Get/main.go | 47 +++++++++++++++++++ .../ForwardingRulesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/ForwardingRulesClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/ForwardingRulesClient/Patch/main.go | 47 +++++++++++++++++++ .../ForwardingRulesClient/SetLabels/main.go | 47 +++++++++++++++++++ .../ForwardingRulesClient/SetTarget/main.go | 47 +++++++++++++++++++ .../GlobalAddressesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/GlobalAddressesClient/Get/main.go | 47 +++++++++++++++++++ .../GlobalAddressesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/GlobalAddressesClient/List/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../GlobalForwardingRulesClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../GlobalForwardingRulesClient/List/main.go | 47 +++++++++++++++++++ .../GlobalForwardingRulesClient/Patch/main.go | 47 +++++++++++++++++++ .../SetLabels/main.go | 47 +++++++++++++++++++ .../SetTarget/main.go | 47 +++++++++++++++++++ .../AttachNetworkEndpoints/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../DetachNetworkEndpoints/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../ListNetworkEndpoints/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../GlobalOperationsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/GlobalOperationsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/GlobalOperationsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/GlobalOperationsClient/Wait/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Patch/main.go | 47 +++++++++++++++++++ .../HealthChecksClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/HealthChecksClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/HealthChecksClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/HealthChecksClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/HealthChecksClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/HealthChecksClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/HealthChecksClient/Update/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ImagesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/ImagesClient/Deprecate/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ImagesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/ImagesClient/GetFromFamily/main.go | 47 +++++++++++++++++++ .../apiv1/ImagesClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ImagesClient/Insert/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ImagesClient/List/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ImagesClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/ImagesClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/ImagesClient/SetLabels/main.go | 47 +++++++++++++++++++ .../ImagesClient/TestIamPermissions/main.go | 47 +++++++++++++++++++ .../AbandonInstances/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../ApplyUpdatesToInstances/main.go | 47 +++++++++++++++++++ .../CreateInstances/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../DeleteInstances/main.go | 47 +++++++++++++++++++ .../DeletePerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../InstanceGroupManagersClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../InstanceGroupManagersClient/List/main.go | 47 +++++++++++++++++++ .../ListErrors/main.go | 47 +++++++++++++++++++ .../ListManagedInstances/main.go | 47 +++++++++++++++++++ .../ListPerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../InstanceGroupManagersClient/Patch/main.go | 47 +++++++++++++++++++ .../PatchPerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../RecreateInstances/main.go | 47 +++++++++++++++++++ .../Resize/main.go | 47 +++++++++++++++++++ .../SetInstanceTemplate/main.go | 47 +++++++++++++++++++ .../SetTargetPools/main.go | 47 +++++++++++++++++++ .../UpdatePerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../InstanceGroupsClient/AddInstances/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/InstanceGroupsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/InstanceGroupsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/InstanceGroupsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/InstanceGroupsClient/List/main.go | 47 +++++++++++++++++++ .../ListInstances/main.go | 47 +++++++++++++++++++ .../RemoveInstances/main.go | 47 +++++++++++++++++++ .../SetNamedPorts/main.go | 47 +++++++++++++++++++ .../InstanceTemplatesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/InstanceTemplatesClient/Get/main.go | 47 +++++++++++++++++++ .../GetIamPolicy/main.go | 47 +++++++++++++++++++ .../InstanceTemplatesClient/Insert/main.go | 47 +++++++++++++++++++ .../InstanceTemplatesClient/List/main.go | 47 +++++++++++++++++++ .../SetIamPolicy/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../InstancesClient/AddAccessConfig/main.go | 47 +++++++++++++++++++ .../AddResourcePolicies/main.go | 47 +++++++++++++++++++ .../InstancesClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/AttachDisk/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/BulkInsert/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/Delete/main.go | 47 +++++++++++++++++++ .../DeleteAccessConfig/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/DetachDisk/main.go | 47 +++++++++++++++++++ .../compute/apiv1/InstancesClient/Get/main.go | 47 +++++++++++++++++++ .../GetEffectiveFirewalls/main.go | 47 +++++++++++++++++++ .../GetGuestAttributes/main.go | 47 +++++++++++++++++++ .../InstancesClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../InstancesClient/GetScreenshot/main.go | 47 +++++++++++++++++++ .../GetSerialPortOutput/main.go | 47 +++++++++++++++++++ .../GetShieldedInstanceIdentity/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/List/main.go | 47 +++++++++++++++++++ .../InstancesClient/ListReferrers/main.go | 47 +++++++++++++++++++ .../RemoveResourcePolicies/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/Reset/main.go | 47 +++++++++++++++++++ .../SetDeletionProtection/main.go | 47 +++++++++++++++++++ .../InstancesClient/SetDiskAutoDelete/main.go | 47 +++++++++++++++++++ .../InstancesClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/SetLabels/main.go | 47 +++++++++++++++++++ .../SetMachineResources/main.go | 47 +++++++++++++++++++ .../InstancesClient/SetMachineType/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/SetMetadata/main.go | 47 +++++++++++++++++++ .../InstancesClient/SetMinCpuPlatform/main.go | 47 +++++++++++++++++++ .../InstancesClient/SetScheduling/main.go | 47 +++++++++++++++++++ .../InstancesClient/SetServiceAccount/main.go | 47 +++++++++++++++++++ .../main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/SetTags/main.go | 47 +++++++++++++++++++ .../SimulateMaintenanceEvent/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/Start/main.go | 47 +++++++++++++++++++ .../StartWithEncryptionKey/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/Stop/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../apiv1/InstancesClient/Update/main.go | 47 +++++++++++++++++++ .../UpdateAccessConfig/main.go | 47 +++++++++++++++++++ .../UpdateDisplayDevice/main.go | 47 +++++++++++++++++++ .../UpdateNetworkInterface/main.go | 47 +++++++++++++++++++ .../UpdateShieldedInstanceConfig/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../InterconnectAttachmentsClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Patch/main.go | 47 +++++++++++++++++++ .../InterconnectLocationsClient/Get/main.go | 47 +++++++++++++++++++ .../InterconnectLocationsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/InterconnectsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/InterconnectsClient/Get/main.go | 47 +++++++++++++++++++ .../GetDiagnostics/main.go | 47 +++++++++++++++++++ .../apiv1/InterconnectsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/InterconnectsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/InterconnectsClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/LicenseCodesClient/Get/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../apiv1/LicensesClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/LicensesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/LicensesClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/LicensesClient/Insert/main.go | 47 +++++++++++++++++++ .../compute/apiv1/LicensesClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/LicensesClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../LicensesClient/TestIamPermissions/main.go | 47 +++++++++++++++++++ .../MachineTypesClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/MachineTypesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/MachineTypesClient/List/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../AttachNetworkEndpoints/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../DetachNetworkEndpoints/main.go | 47 +++++++++++++++++++ .../NetworkEndpointGroupsClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../NetworkEndpointGroupsClient/List/main.go | 47 +++++++++++++++++++ .../ListNetworkEndpoints/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../apiv1/NetworksClient/AddPeering/main.go | 47 +++++++++++++++++++ .../apiv1/NetworksClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/NetworksClient/Get/main.go | 47 +++++++++++++++++++ .../GetEffectiveFirewalls/main.go | 47 +++++++++++++++++++ .../apiv1/NetworksClient/Insert/main.go | 47 +++++++++++++++++++ .../compute/apiv1/NetworksClient/List/main.go | 47 +++++++++++++++++++ .../NetworksClient/ListPeeringRoutes/main.go | 47 +++++++++++++++++++ .../apiv1/NetworksClient/Patch/main.go | 47 +++++++++++++++++++ .../NetworksClient/RemovePeering/main.go | 47 +++++++++++++++++++ .../NetworksClient/SwitchToCustomMode/main.go | 47 +++++++++++++++++++ .../NetworksClient/UpdatePeering/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/AddNodes/main.go | 47 +++++++++++++++++++ .../NodeGroupsClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/Delete/main.go | 47 +++++++++++++++++++ .../NodeGroupsClient/DeleteNodes/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/Get/main.go | 47 +++++++++++++++++++ .../NodeGroupsClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/ListNodes/main.go | 47 +++++++++++++++++++ .../apiv1/NodeGroupsClient/Patch/main.go | 47 +++++++++++++++++++ .../NodeGroupsClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../NodeGroupsClient/SetNodeTemplate/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/NodeTemplatesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/NodeTemplatesClient/Get/main.go | 47 +++++++++++++++++++ .../NodeTemplatesClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/NodeTemplatesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/NodeTemplatesClient/List/main.go | 47 +++++++++++++++++++ .../NodeTemplatesClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../NodeTypesClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../compute/apiv1/NodeTypesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/NodeTypesClient/List/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../PacketMirroringsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/PacketMirroringsClient/Get/main.go | 47 +++++++++++++++++++ .../PacketMirroringsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/PacketMirroringsClient/List/main.go | 47 +++++++++++++++++++ .../PacketMirroringsClient/Patch/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../ProjectsClient/DisableXpnHost/main.go | 47 +++++++++++++++++++ .../ProjectsClient/DisableXpnResource/main.go | 47 +++++++++++++++++++ .../ProjectsClient/EnableXpnHost/main.go | 47 +++++++++++++++++++ .../ProjectsClient/EnableXpnResource/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ProjectsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/ProjectsClient/GetXpnHost/main.go | 47 +++++++++++++++++++ .../ProjectsClient/GetXpnResources/main.go | 47 +++++++++++++++++++ .../apiv1/ProjectsClient/ListXpnHosts/main.go | 47 +++++++++++++++++++ .../apiv1/ProjectsClient/MoveDisk/main.go | 47 +++++++++++++++++++ .../apiv1/ProjectsClient/MoveInstance/main.go | 47 +++++++++++++++++++ .../SetCommonInstanceMetadata/main.go | 47 +++++++++++++++++++ .../SetDefaultNetworkTier/main.go | 47 +++++++++++++++++++ .../SetUsageExportBucket/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Patch/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../PublicDelegatedPrefixesClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Patch/main.go | 47 +++++++++++++++++++ .../RegionAutoscalersClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/RegionAutoscalersClient/Get/main.go | 47 +++++++++++++++++++ .../RegionAutoscalersClient/Insert/main.go | 47 +++++++++++++++++++ .../RegionAutoscalersClient/List/main.go | 47 +++++++++++++++++++ .../RegionAutoscalersClient/Patch/main.go | 47 +++++++++++++++++++ .../RegionAutoscalersClient/Update/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../RegionBackendServicesClient/Get/main.go | 47 +++++++++++++++++++ .../GetHealth/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../RegionBackendServicesClient/List/main.go | 47 +++++++++++++++++++ .../RegionBackendServicesClient/Patch/main.go | 47 +++++++++++++++++++ .../Update/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/RegionCommitmentsClient/Get/main.go | 47 +++++++++++++++++++ .../RegionCommitmentsClient/Insert/main.go | 47 +++++++++++++++++++ .../RegionCommitmentsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDiskTypesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDiskTypesClient/List/main.go | 47 +++++++++++++++++++ .../AddResourcePolicies/main.go | 47 +++++++++++++++++++ .../RegionDisksClient/CreateSnapshot/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDisksClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDisksClient/Get/main.go | 47 +++++++++++++++++++ .../RegionDisksClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDisksClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDisksClient/List/main.go | 47 +++++++++++++++++++ .../RemoveResourcePolicies/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDisksClient/Resize/main.go | 47 +++++++++++++++++++ .../RegionDisksClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/RegionDisksClient/SetLabels/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Patch/main.go | 47 +++++++++++++++++++ .../RegionHealthChecksClient/Delete/main.go | 47 +++++++++++++++++++ .../RegionHealthChecksClient/Get/main.go | 47 +++++++++++++++++++ .../RegionHealthChecksClient/Insert/main.go | 47 +++++++++++++++++++ .../RegionHealthChecksClient/List/main.go | 47 +++++++++++++++++++ .../RegionHealthChecksClient/Patch/main.go | 47 +++++++++++++++++++ .../RegionHealthChecksClient/Update/main.go | 47 +++++++++++++++++++ .../AbandonInstances/main.go | 47 +++++++++++++++++++ .../ApplyUpdatesToInstances/main.go | 47 +++++++++++++++++++ .../CreateInstances/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../DeleteInstances/main.go | 47 +++++++++++++++++++ .../DeletePerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../ListErrors/main.go | 47 +++++++++++++++++++ .../ListManagedInstances/main.go | 47 +++++++++++++++++++ .../ListPerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../Patch/main.go | 47 +++++++++++++++++++ .../PatchPerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../RecreateInstances/main.go | 47 +++++++++++++++++++ .../Resize/main.go | 47 +++++++++++++++++++ .../SetInstanceTemplate/main.go | 47 +++++++++++++++++++ .../SetTargetPools/main.go | 47 +++++++++++++++++++ .../UpdatePerInstanceConfigs/main.go | 47 +++++++++++++++++++ .../RegionInstanceGroupsClient/Get/main.go | 47 +++++++++++++++++++ .../RegionInstanceGroupsClient/List/main.go | 47 +++++++++++++++++++ .../ListInstances/main.go | 47 +++++++++++++++++++ .../SetNamedPorts/main.go | 47 +++++++++++++++++++ .../RegionInstancesClient/BulkInsert/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../RegionOperationsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/RegionOperationsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/RegionOperationsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/RegionOperationsClient/Wait/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../RegionSslCertificatesClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../RegionSslCertificatesClient/List/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../RegionTargetHttpProxiesClient/Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../SetUrlMap/main.go | 47 +++++++++++++++++++ .../Delete/main.go | 47 +++++++++++++++++++ .../Get/main.go | 47 +++++++++++++++++++ .../Insert/main.go | 47 +++++++++++++++++++ .../List/main.go | 47 +++++++++++++++++++ .../SetSslCertificates/main.go | 47 +++++++++++++++++++ .../SetUrlMap/main.go | 47 +++++++++++++++++++ .../apiv1/RegionUrlMapsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/RegionUrlMapsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/RegionUrlMapsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/RegionUrlMapsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/RegionUrlMapsClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/RegionUrlMapsClient/Update/main.go | 47 +++++++++++++++++++ .../RegionUrlMapsClient/Validate/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RegionsClient/Get/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RegionsClient/List/main.go | 47 +++++++++++++++++++ .../ReservationsClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/ReservationsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/ReservationsClient/Get/main.go | 47 +++++++++++++++++++ .../ReservationsClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/ReservationsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/ReservationsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/ReservationsClient/Resize/main.go | 47 +++++++++++++++++++ .../ReservationsClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../ResourcePoliciesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/ResourcePoliciesClient/Get/main.go | 47 +++++++++++++++++++ .../GetIamPolicy/main.go | 47 +++++++++++++++++++ .../ResourcePoliciesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/ResourcePoliciesClient/List/main.go | 47 +++++++++++++++++++ .../SetIamPolicy/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../RoutersClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/RoutersClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutersClient/Get/main.go | 47 +++++++++++++++++++ .../RoutersClient/GetNatMappingInfo/main.go | 47 +++++++++++++++++++ .../RoutersClient/GetRouterStatus/main.go | 47 +++++++++++++++++++ .../apiv1/RoutersClient/Insert/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutersClient/List/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutersClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/RoutersClient/Preview/main.go | 47 +++++++++++++++++++ .../apiv1/RoutersClient/Update/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutesClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutesClient/Get/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutesClient/Insert/main.go | 47 +++++++++++++++++++ .../compute/apiv1/RoutesClient/List/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/AddRule/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/SecurityPoliciesClient/Get/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/GetRule/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/SecurityPoliciesClient/List/main.go | 47 +++++++++++++++++++ .../ListPreconfiguredExpressionSets/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/Patch/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/PatchRule/main.go | 47 +++++++++++++++++++ .../SecurityPoliciesClient/RemoveRule/main.go | 47 +++++++++++++++++++ .../apiv1/SnapshotsClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/SnapshotsClient/Get/main.go | 47 +++++++++++++++++++ .../SnapshotsClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/SnapshotsClient/List/main.go | 47 +++++++++++++++++++ .../SnapshotsClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/SnapshotsClient/SetLabels/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../SslCertificatesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/SslCertificatesClient/Get/main.go | 47 +++++++++++++++++++ .../SslCertificatesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/SslCertificatesClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/SslPoliciesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/SslPoliciesClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/SslPoliciesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/SslPoliciesClient/List/main.go | 47 +++++++++++++++++++ .../ListAvailableFeatures/main.go | 47 +++++++++++++++++++ .../apiv1/SslPoliciesClient/Patch/main.go | 47 +++++++++++++++++++ .../SubnetworksClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/SubnetworksClient/Delete/main.go | 47 +++++++++++++++++++ .../ExpandIpCidrRange/main.go | 47 +++++++++++++++++++ .../apiv1/SubnetworksClient/Get/main.go | 47 +++++++++++++++++++ .../SubnetworksClient/GetIamPolicy/main.go | 47 +++++++++++++++++++ .../apiv1/SubnetworksClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/SubnetworksClient/List/main.go | 47 +++++++++++++++++++ .../SubnetworksClient/ListUsable/main.go | 47 +++++++++++++++++++ .../apiv1/SubnetworksClient/Patch/main.go | 47 +++++++++++++++++++ .../SubnetworksClient/SetIamPolicy/main.go | 47 +++++++++++++++++++ .../SetPrivateIpGoogleAccess/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../TargetGrpcProxiesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetGrpcProxiesClient/Get/main.go | 47 +++++++++++++++++++ .../TargetGrpcProxiesClient/Insert/main.go | 47 +++++++++++++++++++ .../TargetGrpcProxiesClient/List/main.go | 47 +++++++++++++++++++ .../TargetGrpcProxiesClient/Patch/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../TargetHttpProxiesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetHttpProxiesClient/Get/main.go | 47 +++++++++++++++++++ .../TargetHttpProxiesClient/Insert/main.go | 47 +++++++++++++++++++ .../TargetHttpProxiesClient/List/main.go | 47 +++++++++++++++++++ .../TargetHttpProxiesClient/Patch/main.go | 47 +++++++++++++++++++ .../TargetHttpProxiesClient/SetUrlMap/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../TargetHttpsProxiesClient/Delete/main.go | 47 +++++++++++++++++++ .../TargetHttpsProxiesClient/Get/main.go | 47 +++++++++++++++++++ .../TargetHttpsProxiesClient/Insert/main.go | 47 +++++++++++++++++++ .../TargetHttpsProxiesClient/List/main.go | 47 +++++++++++++++++++ .../TargetHttpsProxiesClient/Patch/main.go | 47 +++++++++++++++++++ .../SetQuicOverride/main.go | 47 +++++++++++++++++++ .../SetSslCertificates/main.go | 47 +++++++++++++++++++ .../SetSslPolicy/main.go | 47 +++++++++++++++++++ .../SetUrlMap/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../TargetInstancesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetInstancesClient/Get/main.go | 47 +++++++++++++++++++ .../TargetInstancesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/TargetInstancesClient/List/main.go | 47 +++++++++++++++++++ .../TargetPoolsClient/AddHealthCheck/main.go | 47 +++++++++++++++++++ .../TargetPoolsClient/AddInstance/main.go | 47 +++++++++++++++++++ .../TargetPoolsClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/TargetPoolsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetPoolsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/TargetPoolsClient/GetHealth/main.go | 47 +++++++++++++++++++ .../apiv1/TargetPoolsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/TargetPoolsClient/List/main.go | 47 +++++++++++++++++++ .../RemoveHealthCheck/main.go | 47 +++++++++++++++++++ .../TargetPoolsClient/RemoveInstance/main.go | 47 +++++++++++++++++++ .../apiv1/TargetPoolsClient/SetBackup/main.go | 47 +++++++++++++++++++ .../TargetSslProxiesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetSslProxiesClient/Get/main.go | 47 +++++++++++++++++++ .../TargetSslProxiesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/TargetSslProxiesClient/List/main.go | 47 +++++++++++++++++++ .../SetBackendService/main.go | 47 +++++++++++++++++++ .../SetProxyHeader/main.go | 47 +++++++++++++++++++ .../SetSslCertificates/main.go | 47 +++++++++++++++++++ .../SetSslPolicy/main.go | 47 +++++++++++++++++++ .../TargetTcpProxiesClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetTcpProxiesClient/Get/main.go | 47 +++++++++++++++++++ .../TargetTcpProxiesClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/TargetTcpProxiesClient/List/main.go | 47 +++++++++++++++++++ .../SetBackendService/main.go | 47 +++++++++++++++++++ .../SetProxyHeader/main.go | 47 +++++++++++++++++++ .../AggregatedList/main.go | 47 +++++++++++++++++++ .../TargetVpnGatewaysClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/TargetVpnGatewaysClient/Get/main.go | 47 +++++++++++++++++++ .../TargetVpnGatewaysClient/Insert/main.go | 47 +++++++++++++++++++ .../TargetVpnGatewaysClient/List/main.go | 47 +++++++++++++++++++ .../UrlMapsClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/UrlMapsClient/Delete/main.go | 47 +++++++++++++++++++ .../compute/apiv1/UrlMapsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/UrlMapsClient/Insert/main.go | 47 +++++++++++++++++++ .../UrlMapsClient/InvalidateCache/main.go | 47 +++++++++++++++++++ .../compute/apiv1/UrlMapsClient/List/main.go | 47 +++++++++++++++++++ .../compute/apiv1/UrlMapsClient/Patch/main.go | 47 +++++++++++++++++++ .../apiv1/UrlMapsClient/Update/main.go | 47 +++++++++++++++++++ .../apiv1/UrlMapsClient/Validate/main.go | 47 +++++++++++++++++++ .../VpnGatewaysClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/VpnGatewaysClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/VpnGatewaysClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/VpnGatewaysClient/GetStatus/main.go | 47 +++++++++++++++++++ .../apiv1/VpnGatewaysClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/VpnGatewaysClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/VpnGatewaysClient/SetLabels/main.go | 47 +++++++++++++++++++ .../TestIamPermissions/main.go | 47 +++++++++++++++++++ .../VpnTunnelsClient/AggregatedList/main.go | 47 +++++++++++++++++++ .../apiv1/VpnTunnelsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/VpnTunnelsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/VpnTunnelsClient/Insert/main.go | 47 +++++++++++++++++++ .../apiv1/VpnTunnelsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/ZoneOperationsClient/Delete/main.go | 47 +++++++++++++++++++ .../apiv1/ZoneOperationsClient/Get/main.go | 47 +++++++++++++++++++ .../apiv1/ZoneOperationsClient/List/main.go | 47 +++++++++++++++++++ .../apiv1/ZoneOperationsClient/Wait/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ZonesClient/Get/main.go | 47 +++++++++++++++++++ .../compute/apiv1/ZonesClient/List/main.go | 47 +++++++++++++++++++ internal/generated/snippets/go.mod | 2 +- internal/generated/snippets/go.sum | 4 +- internal/godocfx/go.sum | 11 ++--- iot/apiv1/doc.go | 2 +- kms/apiv1/doc.go | 2 +- language/apiv1/doc.go | 2 +- language/apiv1beta2/doc.go | 2 +- lifesciences/apiv2beta/doc.go | 2 +- logging/apiv2/doc.go | 2 +- logging/go.mod | 2 +- logging/go.sum | 4 +- longrunning/autogen/doc.go | 2 +- managedidentities/apiv1/doc.go | 2 +- mediatranslation/apiv1beta1/doc.go | 2 +- memcache/apiv1/doc.go | 2 +- memcache/apiv1beta2/doc.go | 2 +- metastore/apiv1/doc.go | 2 +- metastore/apiv1alpha/doc.go | 2 +- metastore/apiv1beta/doc.go | 2 +- monitoring/apiv3/doc.go | 2 +- monitoring/apiv3/v2/doc.go | 2 +- monitoring/dashboard/apiv1/doc.go | 2 +- networkconnectivity/apiv1alpha1/doc.go | 2 +- notebooks/apiv1beta1/doc.go | 2 +- orgpolicy/apiv2/doc.go | 2 +- osconfig/agentendpoint/apiv1/doc.go | 2 +- osconfig/agentendpoint/apiv1beta/doc.go | 2 +- osconfig/apiv1/doc.go | 2 +- osconfig/apiv1alpha/doc.go | 2 +- osconfig/apiv1beta/doc.go | 2 +- oslogin/apiv1/doc.go | 2 +- oslogin/apiv1beta/doc.go | 2 +- phishingprotection/apiv1beta1/doc.go | 2 +- policytroubleshooter/apiv1/doc.go | 2 +- privatecatalog/apiv1beta1/doc.go | 2 +- pubsub/apiv1/doc.go | 2 +- pubsub/go.mod | 2 +- pubsub/go.sum | 4 +- pubsublite/apiv1/doc.go | 2 +- pubsublite/go.mod | 2 +- pubsublite/go.sum | 4 +- recaptchaenterprise/apiv1/doc.go | 2 +- recaptchaenterprise/apiv1beta1/doc.go | 2 +- recommendationengine/apiv1beta1/doc.go | 2 +- recommender/apiv1/doc.go | 2 +- recommender/apiv1beta1/doc.go | 2 +- redis/apiv1/doc.go | 2 +- redis/apiv1beta1/doc.go | 2 +- resourcemanager/apiv2/doc.go | 2 +- resourcesettings/apiv1/doc.go | 2 +- retail/apiv2/doc.go | 2 +- scheduler/apiv1/doc.go | 2 +- scheduler/apiv1beta1/doc.go | 2 +- secretmanager/apiv1/doc.go | 2 +- secretmanager/apiv1beta1/doc.go | 2 +- security/privateca/apiv1/doc.go | 2 +- security/privateca/apiv1beta1/doc.go | 2 +- securitycenter/apiv1/doc.go | 2 +- securitycenter/apiv1beta1/doc.go | 2 +- securitycenter/apiv1p1beta1/doc.go | 2 +- securitycenter/settings/apiv1beta1/doc.go | 2 +- servicecontrol/apiv1/doc.go | 2 +- servicedirectory/apiv1/doc.go | 2 +- servicedirectory/apiv1beta1/doc.go | 2 +- servicemanagement/apiv1/doc.go | 2 +- serviceusage/apiv1/doc.go | 2 +- shell/apiv1/doc.go | 2 +- spanner/admin/database/apiv1/doc.go | 2 +- spanner/admin/instance/apiv1/doc.go | 2 +- spanner/apiv1/doc.go | 2 +- spanner/go.mod | 2 +- spanner/go.sum | 4 +- speech/apiv1/doc.go | 2 +- speech/apiv1p1beta1/doc.go | 2 +- storage/go.mod | 2 +- storage/go.sum | 4 +- storage/internal/apiv1/doc.go | 2 +- talent/apiv4/doc.go | 2 +- talent/apiv4beta1/doc.go | 2 +- texttospeech/apiv1/doc.go | 2 +- tpu/apiv1/doc.go | 2 +- trace/apiv1/doc.go | 2 +- trace/apiv2/doc.go | 2 +- translate/apiv3/doc.go | 2 +- video/transcoder/apiv1beta1/doc.go | 2 +- videointelligence/apiv1/doc.go | 2 +- videointelligence/apiv1beta2/doc.go | 2 +- vision/apiv1/doc.go | 2 +- vision/apiv1p1beta1/doc.go | 2 +- vpcaccess/apiv1/doc.go | 2 +- webrisk/apiv1/doc.go | 2 +- webrisk/apiv1beta1/doc.go | 2 +- websecurityscanner/apiv1/doc.go | 2 +- workflows/apiv1beta/doc.go | 2 +- workflows/executions/apiv1/doc.go | 2 +- workflows/executions/apiv1beta/doc.go | 2 +- 748 files changed, 27166 insertions(+), 189 deletions(-) create mode 100644 internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go create mode 100644 internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go create mode 100644 internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go create mode 100644 internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go create mode 100644 internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go diff --git a/accessapproval/apiv1/doc.go b/accessapproval/apiv1/doc.go index aee0b5b99f4..858c311c3d7 100644 --- a/accessapproval/apiv1/doc.go +++ b/accessapproval/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/aiplatform/apiv1/doc.go b/aiplatform/apiv1/doc.go index ed83992c68f..98dabb33831 100644 --- a/aiplatform/apiv1/doc.go +++ b/aiplatform/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/analytics/admin/apiv1alpha/doc.go b/analytics/admin/apiv1alpha/doc.go index 45b5491c685..7ce6f698fc0 100644 --- a/analytics/admin/apiv1alpha/doc.go +++ b/analytics/admin/apiv1alpha/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/analytics/data/apiv1alpha/doc.go b/analytics/data/apiv1alpha/doc.go index 910b0e116d2..d1c4a73adf3 100644 --- a/analytics/data/apiv1alpha/doc.go +++ b/analytics/data/apiv1alpha/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/apigateway/apiv1/doc.go b/apigateway/apiv1/doc.go index c82a2e66029..f4e34e3fff2 100644 --- a/apigateway/apiv1/doc.go +++ b/apigateway/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/apigeeconnect/apiv1/doc.go b/apigeeconnect/apiv1/doc.go index 0cd7905ed55..508c9d401e3 100644 --- a/apigeeconnect/apiv1/doc.go +++ b/apigeeconnect/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/appengine/apiv1/doc.go b/appengine/apiv1/doc.go index a2deb21f60e..25d4a7c27be 100644 --- a/appengine/apiv1/doc.go +++ b/appengine/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/area120/tables/apiv1alpha1/doc.go b/area120/tables/apiv1alpha1/doc.go index 8ad0b3b2cda..41e70013936 100644 --- a/area120/tables/apiv1alpha1/doc.go +++ b/area120/tables/apiv1alpha1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/artifactregistry/apiv1beta2/doc.go b/artifactregistry/apiv1beta2/doc.go index b9b06bfa24e..1deea43447d 100644 --- a/artifactregistry/apiv1beta2/doc.go +++ b/artifactregistry/apiv1beta2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/asset/apiv1/doc.go b/asset/apiv1/doc.go index daac2897766..0303fa45f8a 100644 --- a/asset/apiv1/doc.go +++ b/asset/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/asset/apiv1p2beta1/doc.go b/asset/apiv1p2beta1/doc.go index 6016dbea501..9b57c4a7914 100644 --- a/asset/apiv1p2beta1/doc.go +++ b/asset/apiv1p2beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/asset/apiv1p5beta1/doc.go b/asset/apiv1p5beta1/doc.go index ea4ba08b1e5..2f394ca6b7f 100644 --- a/asset/apiv1p5beta1/doc.go +++ b/asset/apiv1p5beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/assuredworkloads/apiv1beta1/doc.go b/assuredworkloads/apiv1beta1/doc.go index 4045dda7a78..9f66a6c21b3 100644 --- a/assuredworkloads/apiv1beta1/doc.go +++ b/assuredworkloads/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/automl/apiv1/doc.go b/automl/apiv1/doc.go index 6fac611d1b1..66cd5b9854a 100644 --- a/automl/apiv1/doc.go +++ b/automl/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/automl/apiv1beta1/doc.go b/automl/apiv1beta1/doc.go index 047fd5676a8..0a9d5324a1f 100644 --- a/automl/apiv1beta1/doc.go +++ b/automl/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/connection/apiv1/doc.go b/bigquery/connection/apiv1/doc.go index 1822652c996..0ff620f3520 100644 --- a/bigquery/connection/apiv1/doc.go +++ b/bigquery/connection/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/connection/apiv1beta1/doc.go b/bigquery/connection/apiv1beta1/doc.go index 85a960e5796..dd6696155c7 100644 --- a/bigquery/connection/apiv1beta1/doc.go +++ b/bigquery/connection/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/datatransfer/apiv1/doc.go b/bigquery/datatransfer/apiv1/doc.go index b55bc21e9aa..ca2fd9e0556 100644 --- a/bigquery/datatransfer/apiv1/doc.go +++ b/bigquery/datatransfer/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/go.mod b/bigquery/go.mod index 5a64aeeb87d..952b72e247b 100644 --- a/bigquery/go.mod +++ b/bigquery/go.mod @@ -10,7 +10,7 @@ require ( github.com/googleapis/gax-go/v2 v2.0.5 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/bigquery/go.sum b/bigquery/go.sum index cb33ac8204c..6730bc2c8eb 100644 --- a/bigquery/go.sum +++ b/bigquery/go.sum @@ -454,8 +454,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/bigquery/reservation/apiv1/doc.go b/bigquery/reservation/apiv1/doc.go index fe2140eba81..ec11bbf628c 100644 --- a/bigquery/reservation/apiv1/doc.go +++ b/bigquery/reservation/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/reservation/apiv1beta1/doc.go b/bigquery/reservation/apiv1beta1/doc.go index fe50baf00b9..76b6a67ca50 100644 --- a/bigquery/reservation/apiv1beta1/doc.go +++ b/bigquery/reservation/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/storage/apiv1/doc.go b/bigquery/storage/apiv1/doc.go index 928b143116b..3e267c52653 100644 --- a/bigquery/storage/apiv1/doc.go +++ b/bigquery/storage/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/storage/apiv1beta1/doc.go b/bigquery/storage/apiv1beta1/doc.go index d0873afd2bc..3aa89e70b27 100644 --- a/bigquery/storage/apiv1beta1/doc.go +++ b/bigquery/storage/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/bigquery/storage/apiv1beta2/doc.go b/bigquery/storage/apiv1beta2/doc.go index aa879f71d40..7098ddc059d 100644 --- a/bigquery/storage/apiv1beta2/doc.go +++ b/bigquery/storage/apiv1beta2/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/billing/apiv1/doc.go b/billing/apiv1/doc.go index deece9709c2..3ad07583bff 100644 --- a/billing/apiv1/doc.go +++ b/billing/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/billing/budgets/apiv1/doc.go b/billing/budgets/apiv1/doc.go index c451523c8d6..c5f0f752c49 100644 --- a/billing/budgets/apiv1/doc.go +++ b/billing/budgets/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/billing/budgets/apiv1beta1/doc.go b/billing/budgets/apiv1beta1/doc.go index db1fb0a076d..91a45d80465 100644 --- a/billing/budgets/apiv1beta1/doc.go +++ b/billing/budgets/apiv1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/binaryauthorization/apiv1beta1/doc.go b/binaryauthorization/apiv1beta1/doc.go index bae4dabd1d0..72fbae35ee3 100644 --- a/binaryauthorization/apiv1beta1/doc.go +++ b/binaryauthorization/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/channel/apiv1/doc.go b/channel/apiv1/doc.go index 61e96c5bf75..cbd53a3e6de 100644 --- a/channel/apiv1/doc.go +++ b/channel/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudbuild/apiv1/doc.go b/cloudbuild/apiv1/doc.go index c108da5d84c..e11c690e4b9 100644 --- a/cloudbuild/apiv1/doc.go +++ b/cloudbuild/apiv1/doc.go @@ -96,4 +96,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210624" +const versionClient = "20210702" diff --git a/cloudbuild/apiv1/v2/doc.go b/cloudbuild/apiv1/v2/doc.go index 6f01792adde..d4b03fd2b4a 100644 --- a/cloudbuild/apiv1/v2/doc.go +++ b/cloudbuild/apiv1/v2/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/clouddms/apiv1/doc.go b/clouddms/apiv1/doc.go index ade8234dd7b..48747261554 100644 --- a/clouddms/apiv1/doc.go +++ b/clouddms/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudtasks/apiv2/doc.go b/cloudtasks/apiv2/doc.go index 6c085c3411f..e0624d09ed4 100644 --- a/cloudtasks/apiv2/doc.go +++ b/cloudtasks/apiv2/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudtasks/apiv2beta2/doc.go b/cloudtasks/apiv2beta2/doc.go index dc193f5d535..eab715e5ca8 100644 --- a/cloudtasks/apiv2beta2/doc.go +++ b/cloudtasks/apiv2beta2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/cloudtasks/apiv2beta3/doc.go b/cloudtasks/apiv2beta3/doc.go index 9c040fa674b..102bfdcbffa 100644 --- a/cloudtasks/apiv2beta3/doc.go +++ b/cloudtasks/apiv2beta3/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/compute/apiv1/doc.go b/compute/apiv1/doc.go index 4b6efeb2d7e..8758f29ac30 100644 --- a/compute/apiv1/doc.go +++ b/compute/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/container/apiv1/doc.go b/container/apiv1/doc.go index 787945ededa..adc3013087c 100644 --- a/container/apiv1/doc.go +++ b/container/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/containeranalysis/apiv1/doc.go b/containeranalysis/apiv1/doc.go index f1900dc7333..1a30cf8e77f 100644 --- a/containeranalysis/apiv1/doc.go +++ b/containeranalysis/apiv1/doc.go @@ -98,4 +98,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210624" +const versionClient = "20210702" diff --git a/containeranalysis/apiv1beta1/doc.go b/containeranalysis/apiv1beta1/doc.go index 0f7c7c8a773..d17f546701b 100644 --- a/containeranalysis/apiv1beta1/doc.go +++ b/containeranalysis/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datacatalog/apiv1/doc.go b/datacatalog/apiv1/doc.go index 2168e44843d..99d33434955 100644 --- a/datacatalog/apiv1/doc.go +++ b/datacatalog/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datacatalog/apiv1beta1/doc.go b/datacatalog/apiv1beta1/doc.go index fd5ad470493..796c20004a0 100644 --- a/datacatalog/apiv1beta1/doc.go +++ b/datacatalog/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataflow/apiv1beta3/doc.go b/dataflow/apiv1beta3/doc.go index 4b8ebff9155..961ea35cdf7 100644 --- a/dataflow/apiv1beta3/doc.go +++ b/dataflow/apiv1beta3/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datalabeling/apiv1beta1/doc.go b/datalabeling/apiv1beta1/doc.go index 8058caf4596..04fe97b97cb 100644 --- a/datalabeling/apiv1beta1/doc.go +++ b/datalabeling/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataproc/apiv1/doc.go b/dataproc/apiv1/doc.go index 69c90b1e10b..f581e01102a 100644 --- a/dataproc/apiv1/doc.go +++ b/dataproc/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataproc/apiv1beta2/doc.go b/dataproc/apiv1beta2/doc.go index 667e018c5f0..79234b19545 100644 --- a/dataproc/apiv1beta2/doc.go +++ b/dataproc/apiv1beta2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dataqna/apiv1alpha/doc.go b/dataqna/apiv1alpha/doc.go index 5d3e59576c6..5ea6599078a 100644 --- a/dataqna/apiv1alpha/doc.go +++ b/dataqna/apiv1alpha/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datastore/admin/apiv1/doc.go b/datastore/admin/apiv1/doc.go index fad25e838c2..ba4a6f8bd56 100644 --- a/datastore/admin/apiv1/doc.go +++ b/datastore/admin/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/datastore/go.mod b/datastore/go.mod index d9b084df589..1b55812761b 100644 --- a/datastore/go.mod +++ b/datastore/go.mod @@ -8,7 +8,7 @@ require ( github.com/google/go-cmp v0.5.6 github.com/googleapis/gax-go/v2 v2.0.5 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/datastore/go.sum b/datastore/go.sum index aa8fd5de0a2..b5bbe658111 100644 --- a/datastore/go.sum +++ b/datastore/go.sum @@ -450,8 +450,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/datastream/apiv1alpha1/doc.go b/datastream/apiv1alpha1/doc.go index b110d9efea7..471c955c17c 100644 --- a/datastream/apiv1alpha1/doc.go +++ b/datastream/apiv1alpha1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/debugger/apiv2/doc.go b/debugger/apiv2/doc.go index 43dbfffd1ad..8bc3b0ff263 100644 --- a/debugger/apiv2/doc.go +++ b/debugger/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/apiv2/doc.go b/dialogflow/apiv2/doc.go index 32d95a11eb1..0313f8a0164 100644 --- a/dialogflow/apiv2/doc.go +++ b/dialogflow/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/cx/apiv3/doc.go b/dialogflow/cx/apiv3/doc.go index 9b11084fd7f..2cae60812e9 100644 --- a/dialogflow/cx/apiv3/doc.go +++ b/dialogflow/cx/apiv3/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dialogflow/cx/apiv3beta1/doc.go b/dialogflow/cx/apiv3beta1/doc.go index 1c2c2e8e25f..733732e3740 100644 --- a/dialogflow/cx/apiv3beta1/doc.go +++ b/dialogflow/cx/apiv3beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/dlp/apiv2/doc.go b/dlp/apiv2/doc.go index 78df191ef06..9c078b1b38c 100644 --- a/dlp/apiv2/doc.go +++ b/dlp/apiv2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/documentai/apiv1/doc.go b/documentai/apiv1/doc.go index 1eee9f2a7d3..02503fd829e 100644 --- a/documentai/apiv1/doc.go +++ b/documentai/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/documentai/apiv1beta3/doc.go b/documentai/apiv1beta3/doc.go index 6db4adc466c..df25b68f1d7 100644 --- a/documentai/apiv1beta3/doc.go +++ b/documentai/apiv1beta3/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/domains/apiv1beta1/doc.go b/domains/apiv1beta1/doc.go index 52c7b825a9e..3975e924308 100644 --- a/domains/apiv1beta1/doc.go +++ b/domains/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/errorreporting/apiv1beta1/doc.go b/errorreporting/apiv1beta1/doc.go index 732bdb35079..b4ce26b2953 100644 --- a/errorreporting/apiv1beta1/doc.go +++ b/errorreporting/apiv1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/essentialcontacts/apiv1/doc.go b/essentialcontacts/apiv1/doc.go index 824133d10c3..e941c142cd5 100644 --- a/essentialcontacts/apiv1/doc.go +++ b/essentialcontacts/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/eventarc/apiv1/doc.go b/eventarc/apiv1/doc.go index 2100ac370f4..3e2c7556481 100644 --- a/eventarc/apiv1/doc.go +++ b/eventarc/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/apiv1/admin/doc.go b/firestore/apiv1/admin/doc.go index 78ecef1f7cc..3b5c4483413 100644 --- a/firestore/apiv1/admin/doc.go +++ b/firestore/apiv1/admin/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/apiv1/doc.go b/firestore/apiv1/doc.go index c1e56d75b51..226cee86433 100644 --- a/firestore/apiv1/doc.go +++ b/firestore/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/apiv1beta1/doc.go b/firestore/apiv1beta1/doc.go index 75dcfa86000..5796d8e2cad 100644 --- a/firestore/apiv1beta1/doc.go +++ b/firestore/apiv1beta1/doc.go @@ -46,7 +46,7 @@ import ( "google.golang.org/grpc/metadata" ) -const versionClient = "20210624" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/firestore/go.mod b/firestore/go.mod index 42888a32e23..b304594720a 100644 --- a/firestore/go.mod +++ b/firestore/go.mod @@ -8,7 +8,7 @@ require ( github.com/google/go-cmp v0.5.6 github.com/googleapis/gax-go/v2 v2.0.5 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/firestore/go.sum b/firestore/go.sum index aa8fd5de0a2..b5bbe658111 100644 --- a/firestore/go.sum +++ b/firestore/go.sum @@ -450,8 +450,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/functions/apiv1/doc.go b/functions/apiv1/doc.go index a4585accc01..d9751c3b115 100644 --- a/functions/apiv1/doc.go +++ b/functions/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gaming/apiv1/doc.go b/gaming/apiv1/doc.go index a76ed2f294d..c9d625ea587 100644 --- a/gaming/apiv1/doc.go +++ b/gaming/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gaming/apiv1beta/doc.go b/gaming/apiv1beta/doc.go index c98ad69fa04..250fcef62df 100644 --- a/gaming/apiv1beta/doc.go +++ b/gaming/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gkeconnect/gateway/apiv1beta1/doc.go b/gkeconnect/gateway/apiv1beta1/doc.go index c2078ca33f0..917eb9daf89 100644 --- a/gkeconnect/gateway/apiv1beta1/doc.go +++ b/gkeconnect/gateway/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/gkehub/apiv1beta1/doc.go b/gkehub/apiv1beta1/doc.go index 4e52a500a58..0b127a9f393 100644 --- a/gkehub/apiv1beta1/doc.go +++ b/gkehub/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/go.mod b/go.mod index ebfba10f281..73612d03cf8 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( golang.org/x/text v0.3.6 golang.org/x/tools v0.1.4 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/go.sum b/go.sum index cdf29627f57..20498d4e23f 100644 --- a/go.sum +++ b/go.sum @@ -458,8 +458,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/grafeas/apiv1/doc.go b/grafeas/apiv1/doc.go index b495225f0d3..ced4c7bccd8 100644 --- a/grafeas/apiv1/doc.go +++ b/grafeas/apiv1/doc.go @@ -92,4 +92,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210624" +const versionClient = "20210702" diff --git a/gsuiteaddons/apiv1/doc.go b/gsuiteaddons/apiv1/doc.go index 2487b0bc497..9f8b57761d4 100644 --- a/gsuiteaddons/apiv1/doc.go +++ b/gsuiteaddons/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/iam/admin/apiv1/doc.go b/iam/admin/apiv1/doc.go index 39d55c6b280..809729bec41 100644 --- a/iam/admin/apiv1/doc.go +++ b/iam/admin/apiv1/doc.go @@ -100,4 +100,4 @@ func versionGo() string { return "UNKNOWN" } -const versionClient = "20210624" +const versionClient = "20210702" diff --git a/iam/credentials/apiv1/doc.go b/iam/credentials/apiv1/doc.go index d2b85b8f7dc..6a01b500cc1 100644 --- a/iam/credentials/apiv1/doc.go +++ b/iam/credentials/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go new file mode 100644 index 00000000000..b3c9f6e0421 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_AcceleratorTypes_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAcceleratorTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListAcceleratorTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_AcceleratorTypes_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go new file mode 100644 index 00000000000..16b07053593 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_AcceleratorTypes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAcceleratorTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetAcceleratorTypeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_AcceleratorTypes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go new file mode 100644 index 00000000000..02dbf1998f5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_AcceleratorTypes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAcceleratorTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListAcceleratorTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_AcceleratorTypes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go new file mode 100644 index 00000000000..0b23c4476ca --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Addresses_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListAddressesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Addresses_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go new file mode 100644 index 00000000000..593e218872b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Addresses_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteAddressRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Addresses_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go new file mode 100644 index 00000000000..4823e04640e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Addresses_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetAddressRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Addresses_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go new file mode 100644 index 00000000000..c59570af00a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Addresses_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertAddressRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Addresses_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go new file mode 100644 index 00000000000..bf312ed22a0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Addresses_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListAddressesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Addresses_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go new file mode 100644 index 00000000000..7420a76cee2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListAutoscalersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go new file mode 100644 index 00000000000..433d784172e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go new file mode 100644 index 00000000000..752cd34d374 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go new file mode 100644 index 00000000000..b49572354dc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go new file mode 100644 index 00000000000..d997f4167c9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListAutoscalersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go new file mode 100644 index 00000000000..69683b2cc91 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go new file mode 100644 index 00000000000..4d449fe31fe --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Autoscalers_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Autoscalers_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go new file mode 100644 index 00000000000..a9d146a16ec --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_AddSignedUrlKey_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddSignedUrlKeyBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddSignedUrlKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_AddSignedUrlKey_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go new file mode 100644 index 00000000000..c3d28c77e6c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go new file mode 100644 index 00000000000..6bc9a975121 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSignedUrlKeyBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeleteSignedUrlKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go new file mode 100644 index 00000000000..ed2824625cf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go new file mode 100644 index 00000000000..ccef5a121fc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go new file mode 100644 index 00000000000..2bfcc139a09 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListBackendBucketsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go new file mode 100644 index 00000000000..ada54834c9f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go new file mode 100644 index 00000000000..1d0dc6b51ba --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendBuckets_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendBucketsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateBackendBucketRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendBuckets_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go new file mode 100644 index 00000000000..4bcdd4d6278 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_AddSignedUrlKey_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddSignedUrlKeyBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddSignedUrlKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_AddSignedUrlKey_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go new file mode 100644 index 00000000000..0b518e33081 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListBackendServicesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go new file mode 100644 index 00000000000..6504cce2811 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go new file mode 100644 index 00000000000..d8c786f5960 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_DeleteSignedUrlKey_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSignedUrlKeyBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeleteSignedUrlKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_DeleteSignedUrlKey_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go new file mode 100644 index 00000000000..43a301d6f40 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go new file mode 100644 index 00000000000..722aaab8fd9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_GetHealth_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetHealthBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetHealth(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_GetHealth_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go new file mode 100644 index 00000000000..8c81f1a3967 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go new file mode 100644 index 00000000000..052fb23d2b8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListBackendServicesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go new file mode 100644 index 00000000000..ec90c5f4cd0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go new file mode 100644 index 00000000000..20d7fa596e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_SetSecurityPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSecurityPolicyBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetSecurityPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_SetSecurityPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go new file mode 100644 index 00000000000..c5d20937762 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_BackendServices_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_BackendServices_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go new file mode 100644 index 00000000000..0ee18900751 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_DiskTypes_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDiskTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListDiskTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_DiskTypes_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go new file mode 100644 index 00000000000..54abb95b5ba --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_DiskTypes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDiskTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetDiskTypeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_DiskTypes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go new file mode 100644 index 00000000000..16db930d662 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_DiskTypes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDiskTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListDiskTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_DiskTypes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go new file mode 100644 index 00000000000..3b264f8e7e1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_AddResourcePolicies_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddResourcePoliciesDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddResourcePolicies(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_AddResourcePolicies_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go new file mode 100644 index 00000000000..1be782eaf3a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListDisksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go new file mode 100644 index 00000000000..1f85bf18584 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_CreateSnapshot_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.CreateSnapshotDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateSnapshot(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_CreateSnapshot_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go new file mode 100644 index 00000000000..f18812faf98 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go new file mode 100644 index 00000000000..0be50ac3343 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..a533be9e67e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go new file mode 100644 index 00000000000..a61639d88ad --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go new file mode 100644 index 00000000000..4361a842882 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListDisksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go new file mode 100644 index 00000000000..a10e4d3bbdf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_RemoveResourcePolicies_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveResourcePoliciesDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveResourcePolicies(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_RemoveResourcePolicies_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go new file mode 100644 index 00000000000..98b5bf381bb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_Resize_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ResizeDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Resize(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_Resize_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..0c1b263a150 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go new file mode 100644 index 00000000000..cad7c36c5e5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..a3f5730c1b1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Disks_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Disks_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go new file mode 100644 index 00000000000..0f9e9631e06 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ExternalVpnGateways_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteExternalVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ExternalVpnGateways_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go new file mode 100644 index 00000000000..a43bfc19b98 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ExternalVpnGateways_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetExternalVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ExternalVpnGateways_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go new file mode 100644 index 00000000000..e8d19f4263d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ExternalVpnGateways_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertExternalVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ExternalVpnGateways_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go new file mode 100644 index 00000000000..65cb226da4f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ExternalVpnGateways_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListExternalVpnGatewaysRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ExternalVpnGateways_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go new file mode 100644 index 00000000000..9458e1b62d9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ExternalVpnGateways_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsExternalVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ExternalVpnGateways_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..c751bb420d0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsExternalVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go new file mode 100644 index 00000000000..52ef161815d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_AddAssociation_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddAssociationFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddAssociation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_AddAssociation_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go new file mode 100644 index 00000000000..ff9641b746e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_AddRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddRuleFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_AddRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go new file mode 100644 index 00000000000..0d3ce25817f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_CloneRules_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.CloneRulesFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CloneRules(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_CloneRules_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go new file mode 100644 index 00000000000..b71790f3fbf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go new file mode 100644 index 00000000000..6b38bddac7a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go new file mode 100644 index 00000000000..c4f2448ce6a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_GetAssociation_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetAssociationFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetAssociation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_GetAssociation_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..75419423b1d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go new file mode 100644 index 00000000000..0628752fcb4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_GetRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRuleFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_GetRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go new file mode 100644 index 00000000000..6d05015a824 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go new file mode 100644 index 00000000000..423377d058f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListFirewallPoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go new file mode 100644 index 00000000000..c259e27dc3f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_ListAssociations_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListAssociationsFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListAssociations(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_ListAssociations_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go new file mode 100644 index 00000000000..7b5e02d6cf9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_Move_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.MoveFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Move(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_Move_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go new file mode 100644 index 00000000000..529dc29a9e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go new file mode 100644 index 00000000000..22dc2a53f8b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_PatchRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRuleFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.PatchRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_PatchRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go new file mode 100644 index 00000000000..34a88b27237 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_RemoveAssociation_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveAssociationFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveAssociation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_RemoveAssociation_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go new file mode 100644 index 00000000000..ea150529f60 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_RemoveRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveRuleFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_RemoveRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..8299ca535b8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..0576f1186c7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_FirewallPolicies_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsFirewallPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_FirewallPolicies_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go new file mode 100644 index 00000000000..9124def9aae --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Firewalls_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteFirewallRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Firewalls_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go new file mode 100644 index 00000000000..efe9ec14011 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Firewalls_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetFirewallRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Firewalls_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go new file mode 100644 index 00000000000..c2e51ea463a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Firewalls_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertFirewallRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Firewalls_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go new file mode 100644 index 00000000000..80accc27c5f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Firewalls_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListFirewallsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Firewalls_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go new file mode 100644 index 00000000000..62013e3e5ec --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Firewalls_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchFirewallRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Firewalls_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go new file mode 100644 index 00000000000..c103c33846f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Firewalls_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewFirewallsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateFirewallRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Firewalls_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go new file mode 100644 index 00000000000..1b17b2cbd6f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListForwardingRulesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go new file mode 100644 index 00000000000..55c8297a7ee --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go new file mode 100644 index 00000000000..d705fce55ca --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go new file mode 100644 index 00000000000..408098aecb3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go new file mode 100644 index 00000000000..6f28a95ce65 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListForwardingRulesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go new file mode 100644 index 00000000000..d1d281d60d2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go new file mode 100644 index 00000000000..23c420f03e2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go new file mode 100644 index 00000000000..f6e58a2fcc7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ForwardingRules_SetTarget_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetTargetForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetTarget(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ForwardingRules_SetTarget_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go new file mode 100644 index 00000000000..5ab5aaa6ad2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalAddresses_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteGlobalAddressRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalAddresses_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go new file mode 100644 index 00000000000..5afacfc579e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalAddresses_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGlobalAddressRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalAddresses_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go new file mode 100644 index 00000000000..6aff36badc9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalAddresses_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertGlobalAddressRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalAddresses_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go new file mode 100644 index 00000000000..dd5fe1fcdf5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalAddresses_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalAddressesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListGlobalAddressesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalAddresses_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go new file mode 100644 index 00000000000..54f5e8da0a6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteGlobalForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go new file mode 100644 index 00000000000..baa2b332d15 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGlobalForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go new file mode 100644 index 00000000000..bd79442e628 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertGlobalForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go new file mode 100644 index 00000000000..afa74498a18 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListGlobalForwardingRulesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go new file mode 100644 index 00000000000..c4d9b3a7460 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchGlobalForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go new file mode 100644 index 00000000000..b18e65e848f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsGlobalForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go new file mode 100644 index 00000000000..550028bd191 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalForwardingRules_SetTarget_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetTargetGlobalForwardingRuleRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetTarget(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalForwardingRules_SetTarget_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go new file mode 100644 index 00000000000..4726e6b1ba1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AttachNetworkEndpoints(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go new file mode 100644 index 00000000000..9fd73b870dc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteGlobalNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go new file mode 100644 index 00000000000..9a51a203d5a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DetachNetworkEndpoints(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go new file mode 100644 index 00000000000..9fe8e3816fb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGlobalNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go new file mode 100644 index 00000000000..c899ce25cd7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertGlobalNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go new file mode 100644 index 00000000000..c251982d6d1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListGlobalNetworkEndpointGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go new file mode 100644 index 00000000000..93cfab642fc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListNetworkEndpoints(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go new file mode 100644 index 00000000000..d39510e11a9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOperations_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListGlobalOperationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOperations_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go new file mode 100644 index 00000000000..fc37d92f853 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOperations_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteGlobalOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOperations_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go new file mode 100644 index 00000000000..6f19b0bd4ab --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOperations_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGlobalOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOperations_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go new file mode 100644 index 00000000000..6a9338b414b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOperations_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListGlobalOperationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOperations_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go new file mode 100644 index 00000000000..095e604e509 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOperations_Wait_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.WaitGlobalOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Wait(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOperations_Wait_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go new file mode 100644 index 00000000000..a13c52190d1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOrganizationOperations_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteGlobalOrganizationOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOrganizationOperations_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go new file mode 100644 index 00000000000..9afab714bea --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOrganizationOperations_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGlobalOrganizationOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOrganizationOperations_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go new file mode 100644 index 00000000000..d2c6de1ac82 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalOrganizationOperations_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListGlobalOrganizationOperationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalOrganizationOperations_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go new file mode 100644 index 00000000000..7049fdb670b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteGlobalPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go new file mode 100644 index 00000000000..85b432776d7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGlobalPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go new file mode 100644 index 00000000000..b3b14308ed9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertGlobalPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go new file mode 100644 index 00000000000..1b437c49f66 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListGlobalPublicDelegatedPrefixesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go new file mode 100644 index 00000000000..473ca1d4f4c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchGlobalPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go new file mode 100644 index 00000000000..417a15f2c75 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListHealthChecksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go new file mode 100644 index 00000000000..1a7d2f6a1d1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go new file mode 100644 index 00000000000..682a05d076a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go new file mode 100644 index 00000000000..70e839986a6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go new file mode 100644 index 00000000000..59083592f67 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListHealthChecksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go new file mode 100644 index 00000000000..0f71e1e23cd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go new file mode 100644 index 00000000000..a316fe12fb9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_HealthChecks_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_HealthChecks_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go new file mode 100644 index 00000000000..2c089e7926b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go new file mode 100644 index 00000000000..04fe9805936 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_Deprecate_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeprecateImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Deprecate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_Deprecate_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go new file mode 100644 index 00000000000..4bfa38d9129 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go new file mode 100644 index 00000000000..27d46c9cdd0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_GetFromFamily_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetFromFamilyImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetFromFamily(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_GetFromFamily_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..8a65ddda9e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go new file mode 100644 index 00000000000..05e6ef1d844 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go new file mode 100644 index 00000000000..97373959b2d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListImagesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go new file mode 100644 index 00000000000..0c62a2c1c5e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..ba992db5741 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go new file mode 100644 index 00000000000..8a2b0b244fa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..faa49a2c24b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Images_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewImagesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsImageRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Images_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go new file mode 100644 index 00000000000..f60abeb2611 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AbandonInstancesInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AbandonInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go new file mode 100644 index 00000000000..51422d6a538 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go new file mode 100644 index 00000000000..710b494007d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ApplyUpdatesToInstancesInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ApplyUpdatesToInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go new file mode 100644 index 00000000000..23979c430fc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_CreateInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.CreateInstancesInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_CreateInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go new file mode 100644 index 00000000000..064bae7ae92 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go new file mode 100644 index 00000000000..036534c0486 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInstancesInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeleteInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go new file mode 100644 index 00000000000..4b89a235e40 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeletePerInstanceConfigsInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeletePerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go new file mode 100644 index 00000000000..29676d62274 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go new file mode 100644 index 00000000000..dc62b3d07f0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go new file mode 100644 index 00000000000..10a1daf49c9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go new file mode 100644 index 00000000000..c903d85214a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_ListErrors_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListErrorsInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListErrors(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_ListErrors_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go new file mode 100644 index 00000000000..28e99cf89df --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListManagedInstancesInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListManagedInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go new file mode 100644 index 00000000000..5ba10f679ae --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPerInstanceConfigsInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListPerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go new file mode 100644 index 00000000000..16ddb70aadb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go new file mode 100644 index 00000000000..0835cfb40ee --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchPerInstanceConfigsInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.PatchPerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go new file mode 100644 index 00000000000..31b4b18f454 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RecreateInstancesInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RecreateInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go new file mode 100644 index 00000000000..3c2b764eb88 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_Resize_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ResizeInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Resize(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_Resize_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go new file mode 100644 index 00000000000..88af3c2302b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetInstanceTemplateInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetInstanceTemplate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go new file mode 100644 index 00000000000..e4bef8297c3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetTargetPoolsInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetTargetPools(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go new file mode 100644 index 00000000000..40bc5859c1c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdatePerInstanceConfigsInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdatePerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go new file mode 100644 index 00000000000..b809bb5731e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_AddInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddInstancesInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_AddInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go new file mode 100644 index 00000000000..7d585ca124e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListInstanceGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go new file mode 100644 index 00000000000..3f262abb630 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go new file mode 100644 index 00000000000..41e64c414e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go new file mode 100644 index 00000000000..ffe069a0c38 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go new file mode 100644 index 00000000000..c7e51374096 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInstanceGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go new file mode 100644 index 00000000000..94f7daa6510 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_ListInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInstancesInstanceGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_ListInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go new file mode 100644 index 00000000000..9d0e93ad853 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_RemoveInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveInstancesInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_RemoveInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go new file mode 100644 index 00000000000..4b9174cfb5b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceGroups_SetNamedPorts_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetNamedPortsInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetNamedPorts(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceGroups_SetNamedPorts_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go new file mode 100644 index 00000000000..9b7820717cb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInstanceTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go new file mode 100644 index 00000000000..a8ffb81eda2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInstanceTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..0d3d496ce8e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyInstanceTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go new file mode 100644 index 00000000000..c7246ee59e4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertInstanceTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go new file mode 100644 index 00000000000..c56e4f339e0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInstanceTemplatesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..92464b40f81 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyInstanceTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..cac2dc5d009 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InstanceTemplates_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstanceTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsInstanceTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InstanceTemplates_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go new file mode 100644 index 00000000000..1e2f9b3186c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_AddAccessConfig_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddAccessConfigInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddAccessConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_AddAccessConfig_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go new file mode 100644 index 00000000000..99d233d4685 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_AddResourcePolicies_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddResourcePoliciesInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddResourcePolicies(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_AddResourcePolicies_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go new file mode 100644 index 00000000000..f37fd4c4713 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListInstancesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go new file mode 100644 index 00000000000..842ad72867d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_AttachDisk_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AttachDiskInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AttachDisk(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_AttachDisk_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go new file mode 100644 index 00000000000..cbe4ade9ffc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_BulkInsert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.BulkInsertInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.BulkInsert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_BulkInsert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go new file mode 100644 index 00000000000..82886825657 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go new file mode 100644 index 00000000000..88e3b0af4bb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_DeleteAccessConfig_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteAccessConfigInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeleteAccessConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_DeleteAccessConfig_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go new file mode 100644 index 00000000000..254d6a69517 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_DetachDisk_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DetachDiskInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DetachDisk(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_DetachDisk_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go new file mode 100644 index 00000000000..86740b03db3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go new file mode 100644 index 00000000000..a045292a13e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_GetEffectiveFirewalls_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetEffectiveFirewallsInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetEffectiveFirewalls(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_GetEffectiveFirewalls_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go new file mode 100644 index 00000000000..5181b65af0d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_GetGuestAttributes_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetGuestAttributesInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetGuestAttributes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_GetGuestAttributes_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..adc9990d3b8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go new file mode 100644 index 00000000000..398cf701946 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_GetScreenshot_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetScreenshotInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetScreenshot(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_GetScreenshot_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go new file mode 100644 index 00000000000..196627f37f5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_GetSerialPortOutput_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetSerialPortOutputInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetSerialPortOutput(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_GetSerialPortOutput_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go new file mode 100644 index 00000000000..1f187b085df --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetShieldedInstanceIdentityInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetShieldedInstanceIdentity(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go new file mode 100644 index 00000000000..66bad8fa3fa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go new file mode 100644 index 00000000000..f40c40cad9c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInstancesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go new file mode 100644 index 00000000000..a6e15ddf0cb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_ListReferrers_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListReferrersInstancesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListReferrers(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_ListReferrers_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go new file mode 100644 index 00000000000..b357f85fc38 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_RemoveResourcePolicies_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveResourcePoliciesInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveResourcePolicies(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_RemoveResourcePolicies_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go new file mode 100644 index 00000000000..49dead24433 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Reset_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ResetInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Reset(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Reset_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go new file mode 100644 index 00000000000..1eebbff222c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetDeletionProtection_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetDeletionProtectionInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetDeletionProtection(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetDeletionProtection_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go new file mode 100644 index 00000000000..3beb29faf0e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetDiskAutoDelete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetDiskAutoDeleteInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetDiskAutoDelete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetDiskAutoDelete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..8a7c64e73d6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go new file mode 100644 index 00000000000..d9f5f38028e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go new file mode 100644 index 00000000000..f210295d308 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetMachineResources_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetMachineResourcesInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetMachineResources(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetMachineResources_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go new file mode 100644 index 00000000000..8519202da3f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetMachineType_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetMachineTypeInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetMachineType(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetMachineType_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go new file mode 100644 index 00000000000..4d0dcaea968 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetMetadata_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetMetadataInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetMetadata(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetMetadata_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go new file mode 100644 index 00000000000..1e2abb53167 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetMinCpuPlatform_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetMinCpuPlatformInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetMinCpuPlatform(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetMinCpuPlatform_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go new file mode 100644 index 00000000000..6a22b7ff0e5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetScheduling_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSchedulingInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetScheduling(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetScheduling_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go new file mode 100644 index 00000000000..fbe83d6ae42 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetServiceAccount_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetServiceAccountInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetServiceAccount(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetServiceAccount_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go new file mode 100644 index 00000000000..6b559e9e9f8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetShieldedInstanceIntegrityPolicyInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetShieldedInstanceIntegrityPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go new file mode 100644 index 00000000000..b1707592d94 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SetTags_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetTagsInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetTags(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SetTags_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go new file mode 100644 index 00000000000..61198d742ad --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_SimulateMaintenanceEvent_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SimulateMaintenanceEventInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SimulateMaintenanceEvent(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_SimulateMaintenanceEvent_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go new file mode 100644 index 00000000000..2de124a95ae --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Start_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.StartInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Start(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Start_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go new file mode 100644 index 00000000000..5635874886e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_StartWithEncryptionKey_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.StartWithEncryptionKeyInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.StartWithEncryptionKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_StartWithEncryptionKey_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go new file mode 100644 index 00000000000..cfb439deec1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Stop_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.StopInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Stop(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Stop_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..05d3011258f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go new file mode 100644 index 00000000000..a8619a8d8aa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go new file mode 100644 index 00000000000..8eb53670865 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_UpdateAccessConfig_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateAccessConfigInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateAccessConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_UpdateAccessConfig_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go new file mode 100644 index 00000000000..0df9a3cf17d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_UpdateDisplayDevice_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateDisplayDeviceInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateDisplayDevice(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_UpdateDisplayDevice_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go new file mode 100644 index 00000000000..e21917e1a83 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_UpdateNetworkInterface_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateNetworkInterfaceInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateNetworkInterface(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_UpdateNetworkInterface_sync] diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go new file mode 100644 index 00000000000..06e0cad3aa7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateShieldedInstanceConfigInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdateShieldedInstanceConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go new file mode 100644 index 00000000000..9bd879a7d8e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectAttachments_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListInterconnectAttachmentsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectAttachments_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go new file mode 100644 index 00000000000..e93a33d0971 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectAttachments_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInterconnectAttachmentRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectAttachments_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go new file mode 100644 index 00000000000..b5b8a1089e2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectAttachments_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInterconnectAttachmentRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectAttachments_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go new file mode 100644 index 00000000000..8f9b9a51f54 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectAttachments_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertInterconnectAttachmentRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectAttachments_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go new file mode 100644 index 00000000000..a04f24f9215 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectAttachments_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInterconnectAttachmentsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectAttachments_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go new file mode 100644 index 00000000000..02a4bc02387 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectAttachments_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchInterconnectAttachmentRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectAttachments_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go new file mode 100644 index 00000000000..15c9961fa9e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectLocations_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectLocationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInterconnectLocationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectLocations_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go new file mode 100644 index 00000000000..065c91a4ea6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_InterconnectLocations_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectLocationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInterconnectLocationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_InterconnectLocations_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go new file mode 100644 index 00000000000..b1b176e4ec7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Interconnects_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInterconnectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Interconnects_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go new file mode 100644 index 00000000000..35d2912723f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Interconnects_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetInterconnectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Interconnects_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go new file mode 100644 index 00000000000..355aa8de431 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Interconnects_GetDiagnostics_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetDiagnosticsInterconnectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetDiagnostics(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Interconnects_GetDiagnostics_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go new file mode 100644 index 00000000000..b3fb416ef35 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Interconnects_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertInterconnectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Interconnects_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go new file mode 100644 index 00000000000..d24f81da6b4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Interconnects_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInterconnectsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Interconnects_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go new file mode 100644 index 00000000000..331ff611bb9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Interconnects_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewInterconnectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchInterconnectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Interconnects_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go new file mode 100644 index 00000000000..444d576f9ed --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_LicenseCodes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicenseCodesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetLicenseCodeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_LicenseCodes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..e6298487918 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_LicenseCodes_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicenseCodesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsLicenseCodeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_LicenseCodes_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go new file mode 100644 index 00000000000..accaec4583f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteLicenseRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go new file mode 100644 index 00000000000..8ceb74ecc2a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetLicenseRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..0ed2370e252 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyLicenseRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go new file mode 100644 index 00000000000..97a8125cbcf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertLicenseRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go new file mode 100644 index 00000000000..769565b3661 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListLicensesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..e87031cf13f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyLicenseRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..f03456d22ad --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Licenses_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewLicensesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsLicenseRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Licenses_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go new file mode 100644 index 00000000000..cecc5aaadf5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_MachineTypes_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewMachineTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListMachineTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_MachineTypes_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go new file mode 100644 index 00000000000..9fa9d7901fd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_MachineTypes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewMachineTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetMachineTypeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_MachineTypes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go new file mode 100644 index 00000000000..dd0f7368b9d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_MachineTypes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewMachineTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListMachineTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_MachineTypes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go new file mode 100644 index 00000000000..a535c1fc034 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListNetworkEndpointGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go new file mode 100644 index 00000000000..d413adf6384 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AttachNetworkEndpointsNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AttachNetworkEndpoints(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go new file mode 100644 index 00000000000..ad4e0c7845f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go new file mode 100644 index 00000000000..82c94aa913c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DetachNetworkEndpointsNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DetachNetworkEndpoints(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go new file mode 100644 index 00000000000..1733910cb43 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go new file mode 100644 index 00000000000..26ba32f2048 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go new file mode 100644 index 00000000000..7270b9346d3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNetworkEndpointGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go new file mode 100644 index 00000000000..a9bb0b09829 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNetworkEndpointsNetworkEndpointGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListNetworkEndpoints(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..20649ffddfe --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go new file mode 100644 index 00000000000..9908ec12110 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_AddPeering_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddPeeringNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddPeering(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_AddPeering_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go new file mode 100644 index 00000000000..958c668d521 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go new file mode 100644 index 00000000000..e12cdf83ad3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go new file mode 100644 index 00000000000..b49226e0d1b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_GetEffectiveFirewalls_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetEffectiveFirewallsNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetEffectiveFirewalls(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_GetEffectiveFirewalls_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go new file mode 100644 index 00000000000..3834cc7e4ce --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go new file mode 100644 index 00000000000..962c2cc358b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNetworksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go new file mode 100644 index 00000000000..66cb360c090 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_ListPeeringRoutes_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPeeringRoutesNetworksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListPeeringRoutes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_ListPeeringRoutes_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go new file mode 100644 index 00000000000..a8b4d7f2b3e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go new file mode 100644 index 00000000000..5c5b577590d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_RemovePeering_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemovePeeringNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemovePeering(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_RemovePeering_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go new file mode 100644 index 00000000000..e347d59af7a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_SwitchToCustomMode_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SwitchToCustomModeNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SwitchToCustomMode(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_SwitchToCustomMode_sync] diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go new file mode 100644 index 00000000000..f530cdcbd9a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Networks_UpdatePeering_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdatePeeringNetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdatePeering(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Networks_UpdatePeering_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go new file mode 100644 index 00000000000..6c0564ead1f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_AddNodes_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddNodesNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddNodes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_AddNodes_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go new file mode 100644 index 00000000000..0f170357204 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListNodeGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go new file mode 100644 index 00000000000..521c833bd55 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go new file mode 100644 index 00000000000..c49ca4171a4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_DeleteNodes_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteNodesNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeleteNodes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_DeleteNodes_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go new file mode 100644 index 00000000000..33a6a208c05 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..5d627a9ae8f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go new file mode 100644 index 00000000000..19d2d7b900e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go new file mode 100644 index 00000000000..4f6ec73ac5a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNodeGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go new file mode 100644 index 00000000000..dc8ee207bac --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_ListNodes_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNodesNodeGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListNodes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_ListNodes_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go new file mode 100644 index 00000000000..70022cd5665 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..a3ee5e9001e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go new file mode 100644 index 00000000000..f2f958fd3bd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_SetNodeTemplate_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetNodeTemplateNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetNodeTemplate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_SetNodeTemplate_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..b520f3f3d8e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeGroups_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsNodeGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeGroups_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go new file mode 100644 index 00000000000..9e5e8487845 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListNodeTemplatesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go new file mode 100644 index 00000000000..f853d8cfe07 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteNodeTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go new file mode 100644 index 00000000000..dd92093c19d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetNodeTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..dfca8991e47 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyNodeTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go new file mode 100644 index 00000000000..1cd7645df97 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertNodeTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go new file mode 100644 index 00000000000..e4ad17d4d82 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNodeTemplatesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..308ff54c0b2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyNodeTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..ec78c2d81b7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTemplates_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTemplatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsNodeTemplateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTemplates_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go new file mode 100644 index 00000000000..e2adde1a82c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTypes_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListNodeTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTypes_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go new file mode 100644 index 00000000000..02442047a63 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTypes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetNodeTypeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTypes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go new file mode 100644 index 00000000000..a12c9e9da10 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_NodeTypes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewNodeTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListNodeTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_NodeTypes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go new file mode 100644 index 00000000000..71a7cfaad40 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListPacketMirroringsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go new file mode 100644 index 00000000000..7c1602ac41d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeletePacketMirroringRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go new file mode 100644 index 00000000000..99b0f209818 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetPacketMirroringRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go new file mode 100644 index 00000000000..bb5bc609589 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertPacketMirroringRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go new file mode 100644 index 00000000000..2b9a137cbc4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPacketMirroringsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go new file mode 100644 index 00000000000..efefa5e83b4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchPacketMirroringRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..952c39ac05a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PacketMirrorings_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPacketMirroringsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsPacketMirroringRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PacketMirrorings_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go new file mode 100644 index 00000000000..7c73cdd9a70 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_DisableXpnHost_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DisableXpnHostProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DisableXpnHost(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_DisableXpnHost_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go new file mode 100644 index 00000000000..2bed318f697 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_DisableXpnResource_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DisableXpnResourceProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DisableXpnResource(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_DisableXpnResource_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go new file mode 100644 index 00000000000..ec6f30693a5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_EnableXpnHost_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.EnableXpnHostProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.EnableXpnHost(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_EnableXpnHost_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go new file mode 100644 index 00000000000..4bff0888c72 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_EnableXpnResource_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.EnableXpnResourceProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.EnableXpnResource(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_EnableXpnResource_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go new file mode 100644 index 00000000000..9487834d474 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go new file mode 100644 index 00000000000..82e6aa4778f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_GetXpnHost_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetXpnHostProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetXpnHost(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_GetXpnHost_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go new file mode 100644 index 00000000000..aee40afffd7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_GetXpnResources_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetXpnResourcesProjectsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetXpnResources(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_GetXpnResources_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go new file mode 100644 index 00000000000..4f72c26ab00 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_ListXpnHosts_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListXpnHostsProjectsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListXpnHosts(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_ListXpnHosts_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go new file mode 100644 index 00000000000..ddefd97bd48 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_MoveDisk_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.MoveDiskProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.MoveDisk(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_MoveDisk_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go new file mode 100644 index 00000000000..45bea0c7886 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_MoveInstance_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.MoveInstanceProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.MoveInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_MoveInstance_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go new file mode 100644 index 00000000000..9c3e9d29cb9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_SetCommonInstanceMetadata_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetCommonInstanceMetadataProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetCommonInstanceMetadata(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_SetCommonInstanceMetadata_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go new file mode 100644 index 00000000000..299d90d1cf6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_SetDefaultNetworkTier_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetDefaultNetworkTierProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetDefaultNetworkTier(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_SetDefaultNetworkTier_sync] diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go new file mode 100644 index 00000000000..476631db9b9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Projects_SetUsageExportBucket_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewProjectsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetUsageExportBucketProjectRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetUsageExportBucket(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Projects_SetUsageExportBucket_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go new file mode 100644 index 00000000000..2506523ae61 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeletePublicAdvertisedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go new file mode 100644 index 00000000000..d0ae6e7fb57 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicAdvertisedPrefixes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetPublicAdvertisedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicAdvertisedPrefixes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go new file mode 100644 index 00000000000..2b41426ff3d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertPublicAdvertisedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go new file mode 100644 index 00000000000..10dc3c13104 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicAdvertisedPrefixes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPublicAdvertisedPrefixesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicAdvertisedPrefixes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go new file mode 100644 index 00000000000..26e35a9af4e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchPublicAdvertisedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go new file mode 100644 index 00000000000..91dcf53852a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListPublicDelegatedPrefixesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go new file mode 100644 index 00000000000..b363069a39d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicDelegatedPrefixes_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeletePublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicDelegatedPrefixes_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go new file mode 100644 index 00000000000..1491162e664 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicDelegatedPrefixes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicDelegatedPrefixes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go new file mode 100644 index 00000000000..f45acc79007 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicDelegatedPrefixes_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicDelegatedPrefixes_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go new file mode 100644 index 00000000000..a0d51e274a9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicDelegatedPrefixes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPublicDelegatedPrefixesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicDelegatedPrefixes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go new file mode 100644 index 00000000000..664ae525f0d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_PublicDelegatedPrefixes_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchPublicDelegatedPrefixeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_PublicDelegatedPrefixes_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go new file mode 100644 index 00000000000..97cebf78baa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionAutoscalers_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionAutoscalers_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go new file mode 100644 index 00000000000..30eb8558377 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionAutoscalers_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionAutoscalers_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go new file mode 100644 index 00000000000..bb85b267480 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionAutoscalers_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionAutoscalers_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go new file mode 100644 index 00000000000..c1bd16bbfc1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionAutoscalers_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionAutoscalersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionAutoscalers_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go new file mode 100644 index 00000000000..ab89b628ea7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionAutoscalers_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRegionAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionAutoscalers_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go new file mode 100644 index 00000000000..efb626e16fd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionAutoscalers_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionAutoscalersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateRegionAutoscalerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionAutoscalers_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go new file mode 100644 index 00000000000..e74691543da --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go new file mode 100644 index 00000000000..64f1590657c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go new file mode 100644 index 00000000000..e02dbca3e3a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_GetHealth_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetHealthRegionBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetHealth(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_GetHealth_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go new file mode 100644 index 00000000000..50e803cd736 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go new file mode 100644 index 00000000000..a94afdeb7aa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionBackendServicesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go new file mode 100644 index 00000000000..fd46e3fecf9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRegionBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go new file mode 100644 index 00000000000..ea02eb48d2b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionBackendServices_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionBackendServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateRegionBackendServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionBackendServices_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go new file mode 100644 index 00000000000..f4af596d26a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionCommitments_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionCommitmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListRegionCommitmentsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionCommitments_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go new file mode 100644 index 00000000000..01a794cfa97 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionCommitments_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionCommitmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionCommitmentRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionCommitments_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go new file mode 100644 index 00000000000..10268a5b228 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionCommitments_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionCommitmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionCommitmentRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionCommitments_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go new file mode 100644 index 00000000000..3db5ffea56c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionCommitments_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionCommitmentsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionCommitmentsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionCommitments_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go new file mode 100644 index 00000000000..7ecdd9eda2b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDiskTypes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDiskTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionDiskTypeRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDiskTypes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go new file mode 100644 index 00000000000..a914731196d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDiskTypes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDiskTypesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionDiskTypesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDiskTypes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go new file mode 100644 index 00000000000..36696bbf266 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_AddResourcePolicies_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddResourcePoliciesRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddResourcePolicies(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_AddResourcePolicies_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go new file mode 100644 index 00000000000..1f3dc830e6d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_CreateSnapshot_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.CreateSnapshotRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateSnapshot(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_CreateSnapshot_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go new file mode 100644 index 00000000000..c2b4cc990e8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go new file mode 100644 index 00000000000..934a20627ef --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..c3fd9afac7d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go new file mode 100644 index 00000000000..9fc42b98d2c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go new file mode 100644 index 00000000000..63948fc3abd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionDisksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go new file mode 100644 index 00000000000..ad81c081884 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveResourcePoliciesRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveResourcePolicies(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go new file mode 100644 index 00000000000..8bfaa2b0403 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_Resize_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ResizeRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Resize(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_Resize_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..fbfd2b9e4ae --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go new file mode 100644 index 00000000000..74f3dd571c5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..c66c6117af4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionDisks_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionDisksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsRegionDiskRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionDisks_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go new file mode 100644 index 00000000000..203abea1343 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthCheckServices_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionHealthCheckServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthCheckServices_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go new file mode 100644 index 00000000000..cb7af6b5aba --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthCheckServices_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionHealthCheckServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthCheckServices_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go new file mode 100644 index 00000000000..83b6dec8f28 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthCheckServices_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionHealthCheckServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthCheckServices_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go new file mode 100644 index 00000000000..4d1e00c9ef7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthCheckServices_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionHealthCheckServicesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthCheckServices_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go new file mode 100644 index 00000000000..3b596460646 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthCheckServices_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRegionHealthCheckServiceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthCheckServices_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go new file mode 100644 index 00000000000..309f5fb52fc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthChecks_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthChecks_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go new file mode 100644 index 00000000000..f08c89531cb --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthChecks_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthChecks_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go new file mode 100644 index 00000000000..48308076c6f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthChecks_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthChecks_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go new file mode 100644 index 00000000000..93ece6ca856 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthChecks_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionHealthChecksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthChecks_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go new file mode 100644 index 00000000000..8f6c27fc920 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthChecks_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRegionHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthChecks_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go new file mode 100644 index 00000000000..c44d9b35cb3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionHealthChecks_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionHealthChecksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateRegionHealthCheckRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionHealthChecks_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go new file mode 100644 index 00000000000..1f2f6ebf891 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AbandonInstancesRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AbandonInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go new file mode 100644 index 00000000000..b2e797490c0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ApplyUpdatesToInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go new file mode 100644 index 00000000000..a8a011214e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.CreateInstancesRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.CreateInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go new file mode 100644 index 00000000000..fc6da7db704 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go new file mode 100644 index 00000000000..23580646058 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteInstancesRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeleteInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go new file mode 100644 index 00000000000..cbca31d3816 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.DeletePerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go new file mode 100644 index 00000000000..1f38d60072c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go new file mode 100644 index 00000000000..269c82ff9cd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go new file mode 100644 index 00000000000..4bf2a647f0a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go new file mode 100644 index 00000000000..a94934ff98f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListErrorsRegionInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListErrors(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go new file mode 100644 index 00000000000..703b66628ee --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListManagedInstancesRegionInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListManagedInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go new file mode 100644 index 00000000000..da2f397886e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPerInstanceConfigsRegionInstanceGroupManagersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListPerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go new file mode 100644 index 00000000000..6148572a7ee --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go new file mode 100644 index 00000000000..c052be867d0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.PatchPerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go new file mode 100644 index 00000000000..b3a6304073c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RecreateInstancesRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RecreateInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go new file mode 100644 index 00000000000..96db73c9f5d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_Resize_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ResizeRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Resize(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_Resize_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go new file mode 100644 index 00000000000..0d28e9729a4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetInstanceTemplateRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetInstanceTemplate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go new file mode 100644 index 00000000000..47e5a3887d2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetTargetPoolsRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetTargetPools(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go new file mode 100644 index 00000000000..ef6449693ea --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.UpdatePerInstanceConfigs(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go new file mode 100644 index 00000000000..d40638bfeac --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroups_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroups_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go new file mode 100644 index 00000000000..8c1861cb3ab --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroups_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionInstanceGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroups_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go new file mode 100644 index 00000000000..337ffdaf26b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroups_ListInstances_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListInstancesRegionInstanceGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListInstances(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroups_ListInstances_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go new file mode 100644 index 00000000000..c8f43a0904d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetNamedPortsRegionInstanceGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetNamedPorts(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go b/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go new file mode 100644 index 00000000000..4e73415417a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionInstances_BulkInsert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.BulkInsertRegionInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.BulkInsert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionInstances_BulkInsert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go new file mode 100644 index 00000000000..c501347fad2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go new file mode 100644 index 00000000000..13513444981 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNetworkEndpointGroups_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNetworkEndpointGroups_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go new file mode 100644 index 00000000000..f38bfc551b5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionNetworkEndpointGroupRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go new file mode 100644 index 00000000000..0db82d8c858 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNetworkEndpointGroups_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionNetworkEndpointGroupsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNetworkEndpointGroups_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go new file mode 100644 index 00000000000..bb6a1678172 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNotificationEndpoints_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionNotificationEndpointRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNotificationEndpoints_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go new file mode 100644 index 00000000000..8118016fb96 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNotificationEndpoints_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionNotificationEndpointRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNotificationEndpoints_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go new file mode 100644 index 00000000000..8481c23b4e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNotificationEndpoints_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionNotificationEndpointRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNotificationEndpoints_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go new file mode 100644 index 00000000000..5c015bfcc6d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionNotificationEndpoints_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionNotificationEndpointsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionNotificationEndpoints_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go new file mode 100644 index 00000000000..028292aaefa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionOperations_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionOperations_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go new file mode 100644 index 00000000000..0fc4be2fc18 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionOperations_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionOperations_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go new file mode 100644 index 00000000000..14bd336843c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionOperations_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionOperationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionOperations_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go new file mode 100644 index 00000000000..4e1b0cbaab8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionOperations_Wait_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.WaitRegionOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Wait(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionOperations_Wait_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go new file mode 100644 index 00000000000..1ee1cffdba8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionSslCertificates_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionSslCertificateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionSslCertificates_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go new file mode 100644 index 00000000000..a13a1bb6e55 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionSslCertificates_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionSslCertificateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionSslCertificates_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go new file mode 100644 index 00000000000..b58ae82e0b5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionSslCertificates_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionSslCertificateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionSslCertificates_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go new file mode 100644 index 00000000000..7f12b130463 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionSslCertificates_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionSslCertificatesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionSslCertificates_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go new file mode 100644 index 00000000000..7b8e5eca2e0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go new file mode 100644 index 00000000000..959bedf4c2c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go new file mode 100644 index 00000000000..25710f7a760 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go new file mode 100644 index 00000000000..e6eaf3a1c70 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionTargetHttpProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go new file mode 100644 index 00000000000..c9f472455a5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetUrlMapRegionTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetUrlMap(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go new file mode 100644 index 00000000000..a49fc3ac0b7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpsProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpsProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go new file mode 100644 index 00000000000..863d11508a6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpsProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpsProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go new file mode 100644 index 00000000000..b4ccf9ffdae --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpsProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpsProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go new file mode 100644 index 00000000000..7e6a5cea93b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpsProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionTargetHttpsProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpsProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go new file mode 100644 index 00000000000..ca915352849 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSslCertificatesRegionTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetSslCertificates(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go new file mode 100644 index 00000000000..e9aab3d7ca3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetUrlMapRegionTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetUrlMap(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go new file mode 100644 index 00000000000..b5cd9b24057 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRegionUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go new file mode 100644 index 00000000000..ee085d93a92 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go new file mode 100644 index 00000000000..5d030a7a20c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRegionUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go new file mode 100644 index 00000000000..dcf28f09aaa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionUrlMapsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go new file mode 100644 index 00000000000..269bb79df43 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRegionUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go new file mode 100644 index 00000000000..600051dc924 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateRegionUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go new file mode 100644 index 00000000000..3b66acb3456 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_RegionUrlMaps_Validate_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ValidateRegionUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Validate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_RegionUrlMaps_Validate_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go new file mode 100644 index 00000000000..822df933f0f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Regions_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRegionRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Regions_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go new file mode 100644 index 00000000000..a31b6dad499 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Regions_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRegionsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRegionsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Regions_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go new file mode 100644 index 00000000000..9b490b98ddd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListReservationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go new file mode 100644 index 00000000000..de18898b6a8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go new file mode 100644 index 00000000000..85876909070 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..6d5427ce02a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go new file mode 100644 index 00000000000..fdb3e9577c2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go new file mode 100644 index 00000000000..f22d829632c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListReservationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go new file mode 100644 index 00000000000..73b4ee94ffc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_Resize_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ResizeReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Resize(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_Resize_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..d31963dc121 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..c7f18548e45 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Reservations_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewReservationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsReservationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Reservations_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go new file mode 100644 index 00000000000..2690f47e505 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListResourcePoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go new file mode 100644 index 00000000000..0c67e78dbdf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteResourcePolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go new file mode 100644 index 00000000000..557e59305e7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetResourcePolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..bf0b1f5fb93 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicyResourcePolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go new file mode 100644 index 00000000000..499e2462c45 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertResourcePolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go new file mode 100644 index 00000000000..269a2db1818 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListResourcePoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..9b5f61456b5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicyResourcePolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..f17c9ce1caa --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ResourcePolicies_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewResourcePoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsResourcePolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ResourcePolicies_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go new file mode 100644 index 00000000000..fb9a4305927 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListRoutersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go new file mode 100644 index 00000000000..7ad6a278a7e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go new file mode 100644 index 00000000000..228f6f59009 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go new file mode 100644 index 00000000000..b6e8481b230 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_GetNatMappingInfo_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetNatMappingInfoRoutersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetNatMappingInfo(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_GetNatMappingInfo_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go new file mode 100644 index 00000000000..b2b55764d4c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_GetRouterStatus_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRouterStatusRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetRouterStatus(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_GetRouterStatus_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go new file mode 100644 index 00000000000..a2f593f8b5e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go new file mode 100644 index 00000000000..dba9c711900 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRoutersRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go new file mode 100644 index 00000000000..14fa33493ec --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go new file mode 100644 index 00000000000..2e8e2a85744 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_Preview_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PreviewRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Preview(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_Preview_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go new file mode 100644 index 00000000000..9c89efe0d00 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routers_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutersRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateRouterRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routers_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go new file mode 100644 index 00000000000..70cf17f1ccf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routes_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteRouteRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routes_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go new file mode 100644 index 00000000000..50cd60c9d25 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routes_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRouteRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routes_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go new file mode 100644 index 00000000000..2f24172d111 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routes_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertRouteRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routes_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go new file mode 100644 index 00000000000..3a9e71bd283 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Routes_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewRoutesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListRoutesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Routes_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go new file mode 100644 index 00000000000..9b1d30df380 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_AddRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddRuleSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_AddRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go new file mode 100644 index 00000000000..677fd182b5f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go new file mode 100644 index 00000000000..79dbb82e8b2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go new file mode 100644 index 00000000000..2bf45ed2ce5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_GetRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetRuleSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_GetRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go new file mode 100644 index 00000000000..4d09f40232d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go new file mode 100644 index 00000000000..43984c4b16a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListSecurityPoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go new file mode 100644 index 00000000000..c5400f9ae5f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListPreconfiguredExpressionSetsSecurityPoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListPreconfiguredExpressionSets(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go new file mode 100644 index 00000000000..1af3d1b62d3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go new file mode 100644 index 00000000000..7079a50537b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_PatchRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchRuleSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.PatchRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_PatchRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go new file mode 100644 index 00000000000..ac9d72972cc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SecurityPolicies_RemoveRule_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSecurityPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveRuleSecurityPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveRule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SecurityPolicies_RemoveRule_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go new file mode 100644 index 00000000000..bd3dd08968d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSnapshotRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go new file mode 100644 index 00000000000..648c5fa412c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetSnapshotRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..e9ba3fec591 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicySnapshotRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go new file mode 100644 index 00000000000..4e2ca6cb172 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListSnapshotsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..ddc1cdc5cc7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicySnapshotRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go new file mode 100644 index 00000000000..05f676d5024 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsSnapshotRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..2ab14d7b3b4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Snapshots_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSnapshotsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsSnapshotRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Snapshots_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go new file mode 100644 index 00000000000..41e262897f0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslCertificates_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListSslCertificatesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslCertificates_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go new file mode 100644 index 00000000000..a8374661943 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslCertificates_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSslCertificateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslCertificates_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go new file mode 100644 index 00000000000..f113a6a5be2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslCertificates_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetSslCertificateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslCertificates_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go new file mode 100644 index 00000000000..5a3f3f6bc9d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslCertificates_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertSslCertificateRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslCertificates_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go new file mode 100644 index 00000000000..3b715954f23 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslCertificates_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslCertificatesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListSslCertificatesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslCertificates_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go new file mode 100644 index 00000000000..7f66deb0486 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslPolicies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSslPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslPolicies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go new file mode 100644 index 00000000000..8360773860d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslPolicies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetSslPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslPolicies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go new file mode 100644 index 00000000000..ae5f88c83ed --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslPolicies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertSslPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslPolicies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go new file mode 100644 index 00000000000..a5661656899 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslPolicies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListSslPoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslPolicies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go new file mode 100644 index 00000000000..bf875cec71e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslPolicies_ListAvailableFeatures_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListAvailableFeaturesSslPoliciesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListAvailableFeatures(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslPolicies_ListAvailableFeatures_sync] diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go new file mode 100644 index 00000000000..1c6e076649f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_SslPolicies_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSslPoliciesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchSslPolicyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_SslPolicies_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go new file mode 100644 index 00000000000..e6cb4241249 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListSubnetworksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go new file mode 100644 index 00000000000..94e3d0f5b4b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go new file mode 100644 index 00000000000..065cdaaf167 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_ExpandIpCidrRange_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ExpandIpCidrRangeSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ExpandIpCidrRange(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_ExpandIpCidrRange_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go new file mode 100644 index 00000000000..0c34ca26ae1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go new file mode 100644 index 00000000000..56020672180 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_GetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetIamPolicySubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_GetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go new file mode 100644 index 00000000000..d19fc31ecc1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go new file mode 100644 index 00000000000..cdb993f80b2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListSubnetworksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go new file mode 100644 index 00000000000..77e9a547a35 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_ListUsable_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListUsableSubnetworksRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.ListUsable(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_ListUsable_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go new file mode 100644 index 00000000000..d26413dd41e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go new file mode 100644 index 00000000000..6681bccdb57 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_SetIamPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetIamPolicySubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_SetIamPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go new file mode 100644 index 00000000000..39c9b8f18b2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetPrivateIpGoogleAccessSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetPrivateIpGoogleAccess(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_sync] diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..523c9d484ce --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Subnetworks_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewSubnetworksRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsSubnetworkRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Subnetworks_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go new file mode 100644 index 00000000000..4489bee8549 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetGrpcProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetGrpcProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetGrpcProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go new file mode 100644 index 00000000000..c09eb231ed0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetGrpcProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetGrpcProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetGrpcProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go new file mode 100644 index 00000000000..8f622154b51 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetGrpcProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetGrpcProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetGrpcProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go new file mode 100644 index 00000000000..ba12198f32d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetGrpcProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetGrpcProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetGrpcProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go new file mode 100644 index 00000000000..b18ac75c5ed --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetGrpcProxies_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchTargetGrpcProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetGrpcProxies_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go new file mode 100644 index 00000000000..886dfbf6f3a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListTargetHttpProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go new file mode 100644 index 00000000000..960a30fccbc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go new file mode 100644 index 00000000000..98542bf5a6b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go new file mode 100644 index 00000000000..e1418a310b9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go new file mode 100644 index 00000000000..86432d0a792 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetHttpProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go new file mode 100644 index 00000000000..e62e2fd5c67 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go new file mode 100644 index 00000000000..c864222310b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpProxies_SetUrlMap_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetUrlMapTargetHttpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetUrlMap(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpProxies_SetUrlMap_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go new file mode 100644 index 00000000000..b55716e6c46 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListTargetHttpsProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go new file mode 100644 index 00000000000..a5187423cbd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go new file mode 100644 index 00000000000..43511e3180c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go new file mode 100644 index 00000000000..59db9dd1cc4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go new file mode 100644 index 00000000000..11cb3f750cf --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetHttpsProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go new file mode 100644 index 00000000000..9cfa7b45c22 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go new file mode 100644 index 00000000000..7b41b396971 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_SetQuicOverride_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetQuicOverrideTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetQuicOverride(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_SetQuicOverride_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go new file mode 100644 index 00000000000..bf2787b4541 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_SetSslCertificates_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSslCertificatesTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetSslCertificates(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_SetSslCertificates_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go new file mode 100644 index 00000000000..bdd47071306 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_SetSslPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSslPolicyTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetSslPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_SetSslPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go new file mode 100644 index 00000000000..14f9837220c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetHttpsProxies_SetUrlMap_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetUrlMapTargetHttpsProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetUrlMap(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetHttpsProxies_SetUrlMap_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go new file mode 100644 index 00000000000..a162623b33c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetInstances_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListTargetInstancesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetInstances_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go new file mode 100644 index 00000000000..cd9f4651971 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetInstances_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetInstances_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go new file mode 100644 index 00000000000..0c10eadb387 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetInstances_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetInstances_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go new file mode 100644 index 00000000000..248905891ee --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetInstances_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetInstanceRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetInstances_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go new file mode 100644 index 00000000000..13630208a7c --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetInstances_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetInstancesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetInstancesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetInstances_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go new file mode 100644 index 00000000000..95113228b53 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_AddHealthCheck_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddHealthCheckTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddHealthCheck(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_AddHealthCheck_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go new file mode 100644 index 00000000000..3a2dc66fdde --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_AddInstance_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AddInstanceTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AddInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_AddInstance_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go new file mode 100644 index 00000000000..ffa65f5bcd9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListTargetPoolsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go new file mode 100644 index 00000000000..058397e35d3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go new file mode 100644 index 00000000000..f9f477021d1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go new file mode 100644 index 00000000000..81fd1bf82dc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_GetHealth_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetHealthTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetHealth(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_GetHealth_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go new file mode 100644 index 00000000000..1ced45b6cc3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go new file mode 100644 index 00000000000..22e9fe0e8c5 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetPoolsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go new file mode 100644 index 00000000000..05da6bed2e6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_RemoveHealthCheck_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveHealthCheckTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveHealthCheck(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_RemoveHealthCheck_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go new file mode 100644 index 00000000000..87f711ce3f1 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_RemoveInstance_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.RemoveInstanceTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.RemoveInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_RemoveInstance_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go new file mode 100644 index 00000000000..43ed4204a50 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetPools_SetBackup_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetPoolsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetBackupTargetPoolRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetBackup(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetPools_SetBackup_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go new file mode 100644 index 00000000000..2830ee8ba46 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go new file mode 100644 index 00000000000..800e3386605 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go new file mode 100644 index 00000000000..daff769d83d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go new file mode 100644 index 00000000000..c885b8d3013 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetSslProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go new file mode 100644 index 00000000000..7b14cae5a59 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_SetBackendService_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetBackendServiceTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetBackendService(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_SetBackendService_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go new file mode 100644 index 00000000000..a205e939de4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_SetProxyHeader_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetProxyHeaderTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetProxyHeader(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_SetProxyHeader_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go new file mode 100644 index 00000000000..32ef1f6f93d --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_SetSslCertificates_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSslCertificatesTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetSslCertificates(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_SetSslCertificates_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go new file mode 100644 index 00000000000..2492f739afc --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetSslProxies_SetSslPolicy_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetSslProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetSslPolicyTargetSslProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetSslPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetSslProxies_SetSslPolicy_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go new file mode 100644 index 00000000000..c30b5418496 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetTcpProxies_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetTcpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetTcpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetTcpProxies_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go new file mode 100644 index 00000000000..5188e97a7d6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetTcpProxies_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetTcpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetTcpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetTcpProxies_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go new file mode 100644 index 00000000000..4e6215e469e --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetTcpProxies_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetTcpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetTcpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetTcpProxies_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go new file mode 100644 index 00000000000..7b38cb7c111 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetTcpProxies_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetTcpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetTcpProxiesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetTcpProxies_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go new file mode 100644 index 00000000000..1fba9b5b833 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetTcpProxies_SetBackendService_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetTcpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetBackendServiceTargetTcpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetBackendService(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetTcpProxies_SetBackendService_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go new file mode 100644 index 00000000000..0929144b6a8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetTcpProxies_SetProxyHeader_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetTcpProxiesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetProxyHeaderTargetTcpProxyRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetProxyHeader(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetTcpProxies_SetProxyHeader_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go new file mode 100644 index 00000000000..d2e228c116a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetVpnGateways_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListTargetVpnGatewaysRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetVpnGateways_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go new file mode 100644 index 00000000000..3e2c1978eb2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetVpnGateways_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteTargetVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetVpnGateways_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go new file mode 100644 index 00000000000..ed30535b098 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetVpnGateways_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetTargetVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetVpnGateways_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go new file mode 100644 index 00000000000..141b922ac11 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetVpnGateways_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertTargetVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetVpnGateways_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go new file mode 100644 index 00000000000..33cfdd9f495 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_TargetVpnGateways_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListTargetVpnGatewaysRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_TargetVpnGateways_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go new file mode 100644 index 00000000000..001f924f6d4 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListUrlMapsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go new file mode 100644 index 00000000000..084e926efdd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go new file mode 100644 index 00000000000..4cabc4d4693 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go new file mode 100644 index 00000000000..ec02f7ab7ad --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go new file mode 100644 index 00000000000..9e7adb17399 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_InvalidateCache_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InvalidateCacheUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.InvalidateCache(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_InvalidateCache_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go new file mode 100644 index 00000000000..97f63bd108f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListUrlMapsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go new file mode 100644 index 00000000000..6b1c226583b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_Patch_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.PatchUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Patch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_Patch_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go new file mode 100644 index 00000000000..0cd062816fe --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_Update_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.UpdateUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Update(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_Update_sync] diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go new file mode 100644 index 00000000000..4e85c61a79a --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_UrlMaps_Validate_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewUrlMapsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ValidateUrlMapRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Validate(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_UrlMaps_Validate_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go new file mode 100644 index 00000000000..5f7b925a5d3 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListVpnGatewaysRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go new file mode 100644 index 00000000000..8c39d91a1e8 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go new file mode 100644 index 00000000000..6efdfdff317 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go new file mode 100644 index 00000000000..908f0358883 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_GetStatus_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetStatusVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.GetStatus(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_GetStatus_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go new file mode 100644 index 00000000000..b7695145cb2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go new file mode 100644 index 00000000000..57995f6b765 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListVpnGatewaysRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go new file mode 100644 index 00000000000..8c8a7246cec --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_SetLabels_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.SetLabelsVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.SetLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_SetLabels_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go new file mode 100644 index 00000000000..1483367d1f7 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnGateways_TestIamPermissions_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnGatewaysRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.TestIamPermissionsVpnGatewayRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnGateways_TestIamPermissions_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go new file mode 100644 index 00000000000..b5bccca0ba2 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnTunnels_AggregatedList_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnTunnelsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.AggregatedListVpnTunnelsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.AggregatedList(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnTunnels_AggregatedList_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go new file mode 100644 index 00000000000..9c508fe2ac9 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnTunnels_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnTunnelsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteVpnTunnelRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnTunnels_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go new file mode 100644 index 00000000000..cc9e6fdd236 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnTunnels_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnTunnelsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetVpnTunnelRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnTunnels_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go new file mode 100644 index 00000000000..4a47b32781f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnTunnels_Insert_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnTunnelsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.InsertVpnTunnelRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Insert(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnTunnels_Insert_sync] diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go new file mode 100644 index 00000000000..8be2ba830f6 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_VpnTunnels_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewVpnTunnelsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListVpnTunnelsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_VpnTunnels_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go new file mode 100644 index 00000000000..2a179fbc31b --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ZoneOperations_Delete_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewZoneOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.DeleteZoneOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Delete(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ZoneOperations_Delete_sync] diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go new file mode 100644 index 00000000000..a6faad6c5d0 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ZoneOperations_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewZoneOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetZoneOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ZoneOperations_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go new file mode 100644 index 00000000000..83782a89982 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ZoneOperations_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewZoneOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListZoneOperationsRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ZoneOperations_List_sync] diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go new file mode 100644 index 00000000000..128a8306b3f --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_ZoneOperations_Wait_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewZoneOperationsRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.WaitZoneOperationRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Wait(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_ZoneOperations_Wait_sync] diff --git a/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go new file mode 100644 index 00000000000..cc07f6efa24 --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Zones_Get_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewZonesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.GetZoneRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.Get(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Zones_Get_sync] diff --git a/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go new file mode 100644 index 00000000000..515c319e9fd --- /dev/null +++ b/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START compute_v1_generated_Zones_List_sync] + +package main + +import ( + "context" + + compute "cloud.google.com/go/compute/apiv1" + computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" +) + +func main() { + ctx := context.Background() + c, err := compute.NewZonesRESTClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &computepb.ListZonesRequest{ + // TODO: Fill request struct fields. + } + resp, err := c.List(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END compute_v1_generated_Zones_List_sync] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index b4d069b007d..1b8013da90f 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -32,5 +32,5 @@ require ( cloud.google.com/go/pubsublite v0.84.0 cloud.google.com/go/spanner v0.84.0 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 ) diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 344e7341ff1..15310b0d031 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -133,8 +133,8 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 h1:s1jFTXJryg4a1mew7xv03VZD8N9XjxFhk1o4Js4WvPQ= -google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/internal/godocfx/go.sum b/internal/godocfx/go.sum index 390cdff2ac3..c0a263808ac 100644 --- a/internal/godocfx/go.sum +++ b/internal/godocfx/go.sum @@ -169,7 +169,6 @@ golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAG golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914 h1:3B43BWw0xEBsLZ/NO1VALz6fppU3481pik+2Ksv45z8= golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -265,8 +264,8 @@ google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/ google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.49.0 h1:gjIBDxlTG7vnzMmEnYwTnvLTF8Rjzo+ETCgEX1YZ/fY= -google.golang.org/api v0.49.0/go.mod h1:BECiH72wsfwUvOVn3+btPD5WHi0LzavZReBndi42L18= +google.golang.org/api v0.50.0 h1:LX7NFCFYOHzr7WHaYiRUpeipZe9o5L8T+2F4Z798VDw= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -297,9 +296,9 @@ google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEY google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200827165113-ac2560b5e952/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 h1:s1jFTXJryg4a1mew7xv03VZD8N9XjxFhk1o4Js4WvPQ= -google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/iot/apiv1/doc.go b/iot/apiv1/doc.go index bc1f04dd90b..fa2d55f076d 100644 --- a/iot/apiv1/doc.go +++ b/iot/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/kms/apiv1/doc.go b/kms/apiv1/doc.go index a8d4ec31c4b..64a1bd430b7 100644 --- a/kms/apiv1/doc.go +++ b/kms/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/language/apiv1/doc.go b/language/apiv1/doc.go index 5dc45017abd..d47aba73e7c 100644 --- a/language/apiv1/doc.go +++ b/language/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/language/apiv1beta2/doc.go b/language/apiv1beta2/doc.go index c5464428fee..0e983d09a6f 100644 --- a/language/apiv1beta2/doc.go +++ b/language/apiv1beta2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/lifesciences/apiv2beta/doc.go b/lifesciences/apiv2beta/doc.go index ef3dbf75a8b..b31ee07016e 100644 --- a/lifesciences/apiv2beta/doc.go +++ b/lifesciences/apiv2beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/logging/apiv2/doc.go b/logging/apiv2/doc.go index 4958f8c808f..53f18bc5c07 100644 --- a/logging/apiv2/doc.go +++ b/logging/apiv2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/logging/go.mod b/logging/go.mod index b0f7fe80ff6..32afbf179ba 100644 --- a/logging/go.mod +++ b/logging/go.mod @@ -11,7 +11,7 @@ require ( go.opencensus.io v0.23.0 golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/logging/go.sum b/logging/go.sum index 41ab982999f..4aaf86a016a 100644 --- a/logging/go.sum +++ b/logging/go.sum @@ -455,8 +455,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/longrunning/autogen/doc.go b/longrunning/autogen/doc.go index 33bf0f3db74..634668fcd5e 100644 --- a/longrunning/autogen/doc.go +++ b/longrunning/autogen/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/managedidentities/apiv1/doc.go b/managedidentities/apiv1/doc.go index e9b40495836..7c7ad32dfe4 100644 --- a/managedidentities/apiv1/doc.go +++ b/managedidentities/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/mediatranslation/apiv1beta1/doc.go b/mediatranslation/apiv1beta1/doc.go index 80c2dfc4ec5..fbf2b7dfe1d 100644 --- a/mediatranslation/apiv1beta1/doc.go +++ b/mediatranslation/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/memcache/apiv1/doc.go b/memcache/apiv1/doc.go index f891f3f3dd0..4af2963c6ac 100644 --- a/memcache/apiv1/doc.go +++ b/memcache/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/memcache/apiv1beta2/doc.go b/memcache/apiv1beta2/doc.go index da5a4241192..0a1bec71f73 100644 --- a/memcache/apiv1beta2/doc.go +++ b/memcache/apiv1beta2/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/metastore/apiv1/doc.go b/metastore/apiv1/doc.go index cc4984a4ec6..3f34bfcc6e8 100644 --- a/metastore/apiv1/doc.go +++ b/metastore/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/metastore/apiv1alpha/doc.go b/metastore/apiv1alpha/doc.go index c7abcb3c484..d41a0c7cd2c 100644 --- a/metastore/apiv1alpha/doc.go +++ b/metastore/apiv1alpha/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/metastore/apiv1beta/doc.go b/metastore/apiv1beta/doc.go index 2f95d1c0f45..5b5ab16fecc 100644 --- a/metastore/apiv1beta/doc.go +++ b/metastore/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/monitoring/apiv3/doc.go b/monitoring/apiv3/doc.go index 1a6d259f5df..363aa8b36bf 100644 --- a/monitoring/apiv3/doc.go +++ b/monitoring/apiv3/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210624" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/monitoring/apiv3/v2/doc.go b/monitoring/apiv3/v2/doc.go index e8f1d363d8d..e5454c048d8 100644 --- a/monitoring/apiv3/v2/doc.go +++ b/monitoring/apiv3/v2/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/monitoring/dashboard/apiv1/doc.go b/monitoring/dashboard/apiv1/doc.go index 271cc826068..f4517a37810 100644 --- a/monitoring/dashboard/apiv1/doc.go +++ b/monitoring/dashboard/apiv1/doc.go @@ -53,7 +53,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/networkconnectivity/apiv1alpha1/doc.go b/networkconnectivity/apiv1alpha1/doc.go index f93d846129a..2dfa6877cd5 100644 --- a/networkconnectivity/apiv1alpha1/doc.go +++ b/networkconnectivity/apiv1alpha1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/notebooks/apiv1beta1/doc.go b/notebooks/apiv1beta1/doc.go index 2402a2cc469..b436410c358 100644 --- a/notebooks/apiv1beta1/doc.go +++ b/notebooks/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/orgpolicy/apiv2/doc.go b/orgpolicy/apiv2/doc.go index 1bfd1d41b86..6660f94e7b0 100644 --- a/orgpolicy/apiv2/doc.go +++ b/orgpolicy/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/agentendpoint/apiv1/doc.go b/osconfig/agentendpoint/apiv1/doc.go index 685cb443fdc..770117edc5c 100644 --- a/osconfig/agentendpoint/apiv1/doc.go +++ b/osconfig/agentendpoint/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/agentendpoint/apiv1beta/doc.go b/osconfig/agentendpoint/apiv1beta/doc.go index 1a76b52d9ad..da86cabb0f0 100644 --- a/osconfig/agentendpoint/apiv1beta/doc.go +++ b/osconfig/agentendpoint/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/apiv1/doc.go b/osconfig/apiv1/doc.go index 11d02031618..cb68872a175 100644 --- a/osconfig/apiv1/doc.go +++ b/osconfig/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/apiv1alpha/doc.go b/osconfig/apiv1alpha/doc.go index 4712c64c232..b6adca7f7dc 100644 --- a/osconfig/apiv1alpha/doc.go +++ b/osconfig/apiv1alpha/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/osconfig/apiv1beta/doc.go b/osconfig/apiv1beta/doc.go index 2d0e46f1003..f8933de6df6 100644 --- a/osconfig/apiv1beta/doc.go +++ b/osconfig/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/oslogin/apiv1/doc.go b/oslogin/apiv1/doc.go index b238bbcfc96..4ef050d6e79 100644 --- a/oslogin/apiv1/doc.go +++ b/oslogin/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/oslogin/apiv1beta/doc.go b/oslogin/apiv1beta/doc.go index 8d1df6e5073..29664b1a1d4 100644 --- a/oslogin/apiv1beta/doc.go +++ b/oslogin/apiv1beta/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/phishingprotection/apiv1beta1/doc.go b/phishingprotection/apiv1beta1/doc.go index 9de824a3ff4..32769db1592 100644 --- a/phishingprotection/apiv1beta1/doc.go +++ b/phishingprotection/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/policytroubleshooter/apiv1/doc.go b/policytroubleshooter/apiv1/doc.go index 41b2bbaf26f..c285009a06a 100644 --- a/policytroubleshooter/apiv1/doc.go +++ b/policytroubleshooter/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/privatecatalog/apiv1beta1/doc.go b/privatecatalog/apiv1beta1/doc.go index 59b32641b76..7d319e70927 100644 --- a/privatecatalog/apiv1beta1/doc.go +++ b/privatecatalog/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsub/apiv1/doc.go b/pubsub/apiv1/doc.go index d415a1724df..6a1a1964518 100644 --- a/pubsub/apiv1/doc.go +++ b/pubsub/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsub/go.mod b/pubsub/go.mod index c9853a19eae..4cb3be628b7 100644 --- a/pubsub/go.mod +++ b/pubsub/go.mod @@ -12,7 +12,7 @@ require ( golang.org/x/sync v0.0.0-20210220032951-036812b2e83c golang.org/x/time v0.0.0-20210611083556-38a9dc6acbc6 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/pubsub/go.sum b/pubsub/go.sum index 424a7ba5550..f04c8ce4d65 100644 --- a/pubsub/go.sum +++ b/pubsub/go.sum @@ -453,8 +453,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/pubsublite/apiv1/doc.go b/pubsublite/apiv1/doc.go index 24882873059..b15e29eb1d2 100644 --- a/pubsublite/apiv1/doc.go +++ b/pubsublite/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/pubsublite/go.mod b/pubsublite/go.mod index 6329bc5686a..9b843eb4e94 100644 --- a/pubsublite/go.mod +++ b/pubsublite/go.mod @@ -12,7 +12,7 @@ require ( golang.org/x/sync v0.0.0-20210220032951-036812b2e83c golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/pubsublite/go.sum b/pubsublite/go.sum index 0e3eacfcd53..126b3e73049 100644 --- a/pubsublite/go.sum +++ b/pubsublite/go.sum @@ -461,8 +461,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/recaptchaenterprise/apiv1/doc.go b/recaptchaenterprise/apiv1/doc.go index 25f7abce78e..9b10e9ae15f 100644 --- a/recaptchaenterprise/apiv1/doc.go +++ b/recaptchaenterprise/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recaptchaenterprise/apiv1beta1/doc.go b/recaptchaenterprise/apiv1beta1/doc.go index d0a1985401a..ca712323027 100644 --- a/recaptchaenterprise/apiv1beta1/doc.go +++ b/recaptchaenterprise/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recommendationengine/apiv1beta1/doc.go b/recommendationengine/apiv1beta1/doc.go index e2d95502e79..134ab3cad07 100644 --- a/recommendationengine/apiv1beta1/doc.go +++ b/recommendationengine/apiv1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210624" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recommender/apiv1/doc.go b/recommender/apiv1/doc.go index 34e45a5412d..3373efd2a0c 100644 --- a/recommender/apiv1/doc.go +++ b/recommender/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/recommender/apiv1beta1/doc.go b/recommender/apiv1beta1/doc.go index e688e486a37..d5f747e0e6a 100644 --- a/recommender/apiv1beta1/doc.go +++ b/recommender/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/redis/apiv1/doc.go b/redis/apiv1/doc.go index 88c276f4a1c..521c1130226 100644 --- a/redis/apiv1/doc.go +++ b/redis/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/redis/apiv1beta1/doc.go b/redis/apiv1beta1/doc.go index 2db6db9eb5e..4b97f5f44b6 100644 --- a/redis/apiv1beta1/doc.go +++ b/redis/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/resourcemanager/apiv2/doc.go b/resourcemanager/apiv2/doc.go index 64f94499fea..07825d86a5a 100644 --- a/resourcemanager/apiv2/doc.go +++ b/resourcemanager/apiv2/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/resourcesettings/apiv1/doc.go b/resourcesettings/apiv1/doc.go index 0a8ab6112d9..ad70092d6b2 100644 --- a/resourcesettings/apiv1/doc.go +++ b/resourcesettings/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/retail/apiv2/doc.go b/retail/apiv2/doc.go index e11dd65c9d1..8cb489f5525 100644 --- a/retail/apiv2/doc.go +++ b/retail/apiv2/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/scheduler/apiv1/doc.go b/scheduler/apiv1/doc.go index 2ee425905fe..900f4001199 100644 --- a/scheduler/apiv1/doc.go +++ b/scheduler/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/scheduler/apiv1beta1/doc.go b/scheduler/apiv1beta1/doc.go index 4814fa38d3a..1ac4e596154 100644 --- a/scheduler/apiv1beta1/doc.go +++ b/scheduler/apiv1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/secretmanager/apiv1/doc.go b/secretmanager/apiv1/doc.go index 80bb5b816a7..7149d4275d6 100644 --- a/secretmanager/apiv1/doc.go +++ b/secretmanager/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/secretmanager/apiv1beta1/doc.go b/secretmanager/apiv1beta1/doc.go index b0a58a1ed99..b4954c82166 100644 --- a/secretmanager/apiv1beta1/doc.go +++ b/secretmanager/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/security/privateca/apiv1/doc.go b/security/privateca/apiv1/doc.go index 4b0d63a0d11..4be023ede2d 100644 --- a/security/privateca/apiv1/doc.go +++ b/security/privateca/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/security/privateca/apiv1beta1/doc.go b/security/privateca/apiv1beta1/doc.go index 469b3288171..6b327102285 100644 --- a/security/privateca/apiv1beta1/doc.go +++ b/security/privateca/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1/doc.go b/securitycenter/apiv1/doc.go index 5a1c5e3d4bf..3195621047a 100644 --- a/securitycenter/apiv1/doc.go +++ b/securitycenter/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1beta1/doc.go b/securitycenter/apiv1beta1/doc.go index 2d9d312d199..f6eab054412 100644 --- a/securitycenter/apiv1beta1/doc.go +++ b/securitycenter/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/apiv1p1beta1/doc.go b/securitycenter/apiv1p1beta1/doc.go index e84de24b574..42706871281 100644 --- a/securitycenter/apiv1p1beta1/doc.go +++ b/securitycenter/apiv1p1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/securitycenter/settings/apiv1beta1/doc.go b/securitycenter/settings/apiv1beta1/doc.go index dc35f507e48..c67ff038cc4 100644 --- a/securitycenter/settings/apiv1beta1/doc.go +++ b/securitycenter/settings/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicecontrol/apiv1/doc.go b/servicecontrol/apiv1/doc.go index 5995fa3623c..ab85b399913 100644 --- a/servicecontrol/apiv1/doc.go +++ b/servicecontrol/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicedirectory/apiv1/doc.go b/servicedirectory/apiv1/doc.go index 2f164c581b0..9ab7a9692ec 100644 --- a/servicedirectory/apiv1/doc.go +++ b/servicedirectory/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicedirectory/apiv1beta1/doc.go b/servicedirectory/apiv1beta1/doc.go index fa7b8e51b9f..251ef253b74 100644 --- a/servicedirectory/apiv1beta1/doc.go +++ b/servicedirectory/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/servicemanagement/apiv1/doc.go b/servicemanagement/apiv1/doc.go index 7b126a8d0d4..18224036394 100644 --- a/servicemanagement/apiv1/doc.go +++ b/servicemanagement/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/serviceusage/apiv1/doc.go b/serviceusage/apiv1/doc.go index 85c71b37b55..d171706f788 100644 --- a/serviceusage/apiv1/doc.go +++ b/serviceusage/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/shell/apiv1/doc.go b/shell/apiv1/doc.go index 519481b1aaf..9e73134ec14 100644 --- a/shell/apiv1/doc.go +++ b/shell/apiv1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/admin/database/apiv1/doc.go b/spanner/admin/database/apiv1/doc.go index 9830571ea07..16f93ac9d8d 100644 --- a/spanner/admin/database/apiv1/doc.go +++ b/spanner/admin/database/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/admin/instance/apiv1/doc.go b/spanner/admin/instance/apiv1/doc.go index eb313b2c3c1..78599a48e8d 100644 --- a/spanner/admin/instance/apiv1/doc.go +++ b/spanner/admin/instance/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/apiv1/doc.go b/spanner/apiv1/doc.go index 512f60f25f6..b5197751dc5 100644 --- a/spanner/apiv1/doc.go +++ b/spanner/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/spanner/go.mod b/spanner/go.mod index 457a68aea49..1408f99cf02 100644 --- a/spanner/go.mod +++ b/spanner/go.mod @@ -10,7 +10,7 @@ require ( go.opencensus.io v0.23.0 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 google.golang.org/protobuf v1.27.1 ) diff --git a/spanner/go.sum b/spanner/go.sum index aa8fd5de0a2..b5bbe658111 100644 --- a/spanner/go.sum +++ b/spanner/go.sum @@ -450,8 +450,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/speech/apiv1/doc.go b/speech/apiv1/doc.go index 37405d8bb7b..abd3cc28580 100644 --- a/speech/apiv1/doc.go +++ b/speech/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/speech/apiv1p1beta1/doc.go b/speech/apiv1p1beta1/doc.go index 3b2a00d5ec1..36a43a33b03 100644 --- a/speech/apiv1p1beta1/doc.go +++ b/speech/apiv1p1beta1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/storage/go.mod b/storage/go.mod index 5651bf0eee3..5baa8c172fe 100644 --- a/storage/go.mod +++ b/storage/go.mod @@ -10,6 +10,6 @@ require ( golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 google.golang.org/api v0.50.0 - google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 + google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 google.golang.org/grpc v1.38.0 ) diff --git a/storage/go.sum b/storage/go.sum index 0d994fb54e3..32d05841a26 100644 --- a/storage/go.sum +++ b/storage/go.sum @@ -453,8 +453,8 @@ google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxH google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95 h1:xyRjacsGcaSoZ2fTcaLCSzh2JEceLLOT4X8k32Q0xAQ= -google.golang.org/genproto v0.0.0-20210701133433-6b8dcf568a95/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9 h1:F2TjstHaRqe0vj9LuGmkPaOn0nw0DVRTUqx0aAkn8JM= +google.golang.org/genproto v0.0.0-20210707141755-0f065b0b1eb9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/storage/internal/apiv1/doc.go b/storage/internal/apiv1/doc.go index f99c1727c55..7c25a5da938 100644 --- a/storage/internal/apiv1/doc.go +++ b/storage/internal/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/talent/apiv4/doc.go b/talent/apiv4/doc.go index d516d2ccb0f..4b0648afe1d 100644 --- a/talent/apiv4/doc.go +++ b/talent/apiv4/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/talent/apiv4beta1/doc.go b/talent/apiv4beta1/doc.go index 42177b8b532..e354c42874d 100644 --- a/talent/apiv4beta1/doc.go +++ b/talent/apiv4beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/texttospeech/apiv1/doc.go b/texttospeech/apiv1/doc.go index 24ba20cf8ea..7dbeff12355 100644 --- a/texttospeech/apiv1/doc.go +++ b/texttospeech/apiv1/doc.go @@ -49,7 +49,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/tpu/apiv1/doc.go b/tpu/apiv1/doc.go index dad0e41b400..f0a3c92b58c 100644 --- a/tpu/apiv1/doc.go +++ b/tpu/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/trace/apiv1/doc.go b/trace/apiv1/doc.go index e0a78f4aa7f..b4105ab1f7a 100644 --- a/trace/apiv1/doc.go +++ b/trace/apiv1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/trace/apiv2/doc.go b/trace/apiv2/doc.go index d0c58d96532..0616862fe67 100644 --- a/trace/apiv2/doc.go +++ b/trace/apiv2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/translate/apiv3/doc.go b/translate/apiv3/doc.go index 8fec30345a2..4aa401b48ff 100644 --- a/translate/apiv3/doc.go +++ b/translate/apiv3/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/video/transcoder/apiv1beta1/doc.go b/video/transcoder/apiv1beta1/doc.go index f6b78a3a542..eca36419906 100644 --- a/video/transcoder/apiv1beta1/doc.go +++ b/video/transcoder/apiv1beta1/doc.go @@ -51,7 +51,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/videointelligence/apiv1/doc.go b/videointelligence/apiv1/doc.go index 54494b31bf2..ea9dead2596 100644 --- a/videointelligence/apiv1/doc.go +++ b/videointelligence/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/videointelligence/apiv1beta2/doc.go b/videointelligence/apiv1beta2/doc.go index 3ca9b3f113b..b0921896feb 100644 --- a/videointelligence/apiv1beta2/doc.go +++ b/videointelligence/apiv1beta2/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vision/apiv1/doc.go b/vision/apiv1/doc.go index d8eb6e74870..a2b20704780 100644 --- a/vision/apiv1/doc.go +++ b/vision/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vision/apiv1p1beta1/doc.go b/vision/apiv1p1beta1/doc.go index 780ad088ca6..8676e68bf47 100644 --- a/vision/apiv1p1beta1/doc.go +++ b/vision/apiv1p1beta1/doc.go @@ -52,7 +52,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/vpcaccess/apiv1/doc.go b/vpcaccess/apiv1/doc.go index cc9820231b8..859bb53aeda 100644 --- a/vpcaccess/apiv1/doc.go +++ b/vpcaccess/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/webrisk/apiv1/doc.go b/webrisk/apiv1/doc.go index cf39af86ed7..0e1ab2d6c27 100644 --- a/webrisk/apiv1/doc.go +++ b/webrisk/apiv1/doc.go @@ -46,7 +46,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/webrisk/apiv1beta1/doc.go b/webrisk/apiv1beta1/doc.go index d6278cbfffe..17165e96595 100644 --- a/webrisk/apiv1beta1/doc.go +++ b/webrisk/apiv1beta1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/websecurityscanner/apiv1/doc.go b/websecurityscanner/apiv1/doc.go index 7065fdfd358..77795c0aa1a 100644 --- a/websecurityscanner/apiv1/doc.go +++ b/websecurityscanner/apiv1/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/workflows/apiv1beta/doc.go b/workflows/apiv1beta/doc.go index d2eaf175289..126fd8eb2f4 100644 --- a/workflows/apiv1beta/doc.go +++ b/workflows/apiv1beta/doc.go @@ -48,7 +48,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/workflows/executions/apiv1/doc.go b/workflows/executions/apiv1/doc.go index 302fe9c08fc..198f0a39900 100644 --- a/workflows/executions/apiv1/doc.go +++ b/workflows/executions/apiv1/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx) diff --git a/workflows/executions/apiv1beta/doc.go b/workflows/executions/apiv1beta/doc.go index 25969c4bed2..2df717b3737 100644 --- a/workflows/executions/apiv1beta/doc.go +++ b/workflows/executions/apiv1beta/doc.go @@ -50,7 +50,7 @@ import ( type clientHookParams struct{} type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) -const versionClient = "20210701" +const versionClient = "20210702" func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { out, _ := metadata.FromOutgoingContext(ctx)