google-cloud-compute overview (1.26.0)

The interfaces provided are listed below, along with usage samples.

Service Description: Services

The AcceleratorTypes API.

Sample for AcceleratorTypesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String acceleratorType = "acceleratorType-82462651";
   AcceleratorType response = acceleratorTypesClient.get(project, zone, acceleratorType);
 }
 

AddressesClient

Service Description: The Addresses API.

Sample for AddressesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AddressesClient addressesClient = AddressesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String address = "address-1147692044";
   Address response = addressesClient.get(project, region, address);
 }
 

AutoscalersClient

Service Description: The Autoscalers API.

Sample for AutoscalersClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String autoscaler = "autoscaler517258967";
   Autoscaler response = autoscalersClient.get(project, zone, autoscaler);
 }
 

BackendBucketsClient

Service Description: The BackendBuckets API.

Sample for BackendBucketsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) {
   String project = "project-309310695";
   String backendBucket = "backendBucket713751966";
   BackendBucket response = backendBucketsClient.get(project, backendBucket);
 }
 

BackendServicesClient

Service Description: The BackendServices API.

Sample for BackendServicesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) {
   String project = "project-309310695";
   String backendService = "backendService-1884714623";
   BackendService response = backendServicesClient.get(project, backendService);
 }
 

DiskTypesClient

Service Description: The DiskTypes API.

Sample for DiskTypesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DiskTypesClient diskTypesClient = DiskTypesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String diskType = "diskType279771767";
   DiskType response = diskTypesClient.get(project, zone, diskType);
 }
 

DisksClient

Service Description: The Disks API.

Sample for DisksClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DisksClient disksClient = DisksClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String disk = "disk3083677";
   Disk response = disksClient.get(project, zone, disk);
 }
 

ExternalVpnGatewaysClient

Service Description: The ExternalVpnGateways API.

Sample for ExternalVpnGatewaysClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ExternalVpnGatewaysClient externalVpnGatewaysClient = ExternalVpnGatewaysClient.create()) {
   String project = "project-309310695";
   String externalVpnGateway = "externalVpnGateway-1140582181";
   ExternalVpnGateway response = externalVpnGatewaysClient.get(project, externalVpnGateway);
 }
 

FirewallPoliciesClient

Service Description: The FirewallPolicies API.

Sample for FirewallPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (FirewallPoliciesClient firewallPoliciesClient = FirewallPoliciesClient.create()) {
   String firewallPolicy = "firewallPolicy1819692626";
   FirewallPolicy response = firewallPoliciesClient.get(firewallPolicy);
 }
 

FirewallsClient

Service Description: The Firewalls API.

Sample for FirewallsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (FirewallsClient firewallsClient = FirewallsClient.create()) {
   String project = "project-309310695";
   String firewall = "firewall-562725632";
   Firewall response = firewallsClient.get(project, firewall);
 }
 

ForwardingRulesClient

Service Description: The ForwardingRules API.

Sample for ForwardingRulesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ForwardingRulesClient forwardingRulesClient = ForwardingRulesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String forwardingRule = "forwardingRule-1429104743";
   ForwardingRule response = forwardingRulesClient.get(project, region, forwardingRule);
 }
 

GlobalAddressesClient

Service Description: The GlobalAddresses API.

Sample for GlobalAddressesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) {
   String project = "project-309310695";
   String address = "address-1147692044";
   Address response = globalAddressesClient.get(project, address);
 }
 

GlobalForwardingRulesClient

Service Description: The GlobalForwardingRules API.

Sample for GlobalForwardingRulesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GlobalForwardingRulesClient globalForwardingRulesClient =
     GlobalForwardingRulesClient.create()) {
   String project = "project-309310695";
   String forwardingRule = "forwardingRule-1429104743";
   ForwardingRule response = globalForwardingRulesClient.get(project, forwardingRule);
 }
 

GlobalNetworkEndpointGroupsClient

Service Description: The GlobalNetworkEndpointGroups API.

Sample for GlobalNetworkEndpointGroupsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GlobalNetworkEndpointGroupsClient globalNetworkEndpointGroupsClient =
     GlobalNetworkEndpointGroupsClient.create()) {
   String project = "project-309310695";
   String networkEndpointGroup = "networkEndpointGroup-2120389028";
   NetworkEndpointGroup response =
       globalNetworkEndpointGroupsClient.get(project, networkEndpointGroup);
 }
 

GlobalOperationsClient

Service Description: The GlobalOperations API.

Sample for GlobalOperationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GlobalOperationsClient globalOperationsClient = GlobalOperationsClient.create()) {
   String project = "project-309310695";
   String operation = "operation1662702951";
   DeleteGlobalOperationResponse response = globalOperationsClient.delete(project, operation);
 }
 

GlobalOrganizationOperationsClient

Service Description: The GlobalOrganizationOperations API.

Sample for GlobalOrganizationOperationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GlobalOrganizationOperationsClient globalOrganizationOperationsClient =
     GlobalOrganizationOperationsClient.create()) {
   String operation = "operation1662702951";
   DeleteGlobalOrganizationOperationResponse response =
       globalOrganizationOperationsClient.delete(operation);
 }
 

GlobalPublicDelegatedPrefixesClient

Service Description: The GlobalPublicDelegatedPrefixes API.

Sample for GlobalPublicDelegatedPrefixesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (GlobalPublicDelegatedPrefixesClient globalPublicDelegatedPrefixesClient =
     GlobalPublicDelegatedPrefixesClient.create()) {
   String project = "project-309310695";
   String publicDelegatedPrefix = "publicDelegatedPrefix-663003832";
   PublicDelegatedPrefix response =
       globalPublicDelegatedPrefixesClient.get(project, publicDelegatedPrefix);
 }
 

HealthChecksClient

Service Description: The HealthChecks API.

Sample for HealthChecksClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (HealthChecksClient healthChecksClient = HealthChecksClient.create()) {
   String project = "project-309310695";
   String healthCheck = "healthCheck-1938093044";
   HealthCheck response = healthChecksClient.get(project, healthCheck);
 }
 

ImageFamilyViewsClient

Service Description: The ImageFamilyViews API.

Sample for ImageFamilyViewsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ImageFamilyViewsClient imageFamilyViewsClient = ImageFamilyViewsClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String family = "family-1281860764";
   ImageFamilyView response = imageFamilyViewsClient.get(project, zone, family);
 }
 

ImagesClient

Service Description: The Images API.

Sample for ImagesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ImagesClient imagesClient = ImagesClient.create()) {
   String project = "project-309310695";
   String image = "image100313435";
   Image response = imagesClient.get(project, image);
 }
 

InstanceGroupManagersClient

Service Description: The InstanceGroupManagers API.

Sample for InstanceGroupManagersClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InstanceGroupManagersClient instanceGroupManagersClient =
     InstanceGroupManagersClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String instanceGroupManager = "instanceGroupManager-388242077";
   InstanceGroupManager response =
       instanceGroupManagersClient.get(project, zone, instanceGroupManager);
 }
 

InstanceGroupsClient

Service Description: The InstanceGroups API.

Sample for InstanceGroupsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String instanceGroup = "instanceGroup-1404696854";
   InstanceGroup response = instanceGroupsClient.get(project, zone, instanceGroup);
 }
 

InstanceTemplatesClient

Service Description: The InstanceTemplates API.

Sample for InstanceTemplatesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InstanceTemplatesClient instanceTemplatesClient = InstanceTemplatesClient.create()) {
   String project = "project-309310695";
   String instanceTemplate = "instanceTemplate1009541167";
   InstanceTemplate response = instanceTemplatesClient.get(project, instanceTemplate);
 }
 

InstancesClient

Service Description: The Instances API.

Sample for InstancesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InstancesClient instancesClient = InstancesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String instance = "instance555127957";
   Instance response = instancesClient.get(project, zone, instance);
 }
 

InterconnectAttachmentsClient

Service Description: The InterconnectAttachments API.

Sample for InterconnectAttachmentsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String interconnectAttachment = "interconnectAttachment1869250641";
   InterconnectAttachment response =
       interconnectAttachmentsClient.get(project, region, interconnectAttachment);
 }
 

InterconnectLocationsClient

Service Description: The InterconnectLocations API.

Sample for InterconnectLocationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InterconnectLocationsClient interconnectLocationsClient =
     InterconnectLocationsClient.create()) {
   String project = "project-309310695";
   String interconnectLocation = "interconnectLocation220117603";
   InterconnectLocation response =
       interconnectLocationsClient.get(project, interconnectLocation);
 }
 

InterconnectsClient

Service Description: The Interconnects API.

Sample for InterconnectsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InterconnectsClient interconnectsClient = InterconnectsClient.create()) {
   String project = "project-309310695";
   String interconnect = "interconnect-849140594";
   Interconnect response = interconnectsClient.get(project, interconnect);
 }
 

LicenseCodesClient

Service Description: The LicenseCodes API.

Sample for LicenseCodesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
   String project = "project-309310695";
   String licenseCode = "licenseCode-641557042";
   LicenseCode response = licenseCodesClient.get(project, licenseCode);
 }
 

LicensesClient

Service Description: The Licenses API.

Sample for LicensesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (LicensesClient licensesClient = LicensesClient.create()) {
   String project = "project-309310695";
   String license = "license166757441";
   License response = licensesClient.get(project, license);
 }
 

MachineImagesClient

Service Description: The MachineImages API.

Sample for MachineImagesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (MachineImagesClient machineImagesClient = MachineImagesClient.create()) {
   String project = "project-309310695";
   String machineImage = "machineImage1817774420";
   MachineImage response = machineImagesClient.get(project, machineImage);
 }
 

MachineTypesClient

Service Description: The MachineTypes API.

Sample for MachineTypesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (MachineTypesClient machineTypesClient = MachineTypesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String machineType = "machineType-218117087";
   MachineType response = machineTypesClient.get(project, zone, machineType);
 }
 

NetworkAttachmentsClient

Service Description: The NetworkAttachments API.

Sample for NetworkAttachmentsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NetworkAttachmentsClient networkAttachmentsClient = NetworkAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String networkAttachment = "networkAttachment1918512625";
   NetworkAttachment response = networkAttachmentsClient.get(project, region, networkAttachment);
 }
 

NetworkEdgeSecurityServicesClient

Service Description: The NetworkEdgeSecurityServices API.

Sample for NetworkEdgeSecurityServicesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient =
     NetworkEdgeSecurityServicesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String networkEdgeSecurityService = "networkEdgeSecurityService-1390253366";
   NetworkEdgeSecurityService response =
       networkEdgeSecurityServicesClient.get(project, region, networkEdgeSecurityService);
 }
 

NetworkEndpointGroupsClient

Service Description: The NetworkEndpointGroups API.

Sample for NetworkEndpointGroupsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NetworkEndpointGroupsClient networkEndpointGroupsClient =
     NetworkEndpointGroupsClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String networkEndpointGroup = "networkEndpointGroup-2120389028";
   NetworkEndpointGroup response =
       networkEndpointGroupsClient.get(project, zone, networkEndpointGroup);
 }
 

NetworkFirewallPoliciesClient

Service Description: The NetworkFirewallPolicies API.

Sample for NetworkFirewallPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient =
     NetworkFirewallPoliciesClient.create()) {
   String project = "project-309310695";
   String firewallPolicy = "firewallPolicy1819692626";
   FirewallPolicy response = networkFirewallPoliciesClient.get(project, firewallPolicy);
 }
 

NetworksClient

Service Description: The Networks API.

Sample for NetworksClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NetworksClient networksClient = NetworksClient.create()) {
   String project = "project-309310695";
   String network = "network1843485230";
   Network response = networksClient.get(project, network);
 }
 

NodeGroupsClient

Service Description: The NodeGroups API.

Sample for NodeGroupsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NodeGroupsClient nodeGroupsClient = NodeGroupsClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String nodeGroup = "nodeGroup443599261";
   NodeGroup response = nodeGroupsClient.get(project, zone, nodeGroup);
 }
 

NodeTemplatesClient

Service Description: The NodeTemplates API.

Sample for NodeTemplatesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NodeTemplatesClient nodeTemplatesClient = NodeTemplatesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String nodeTemplate = "nodeTemplate2118368412";
   NodeTemplate response = nodeTemplatesClient.get(project, region, nodeTemplate);
 }
 

NodeTypesClient

Service Description: The NodeTypes API.

Sample for NodeTypesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (NodeTypesClient nodeTypesClient = NodeTypesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String nodeType = "nodeType1123082332";
   NodeType response = nodeTypesClient.get(project, zone, nodeType);
 }
 

PacketMirroringsClient

Service Description: The PacketMirrorings API.

Sample for PacketMirroringsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PacketMirroringsClient packetMirroringsClient = PacketMirroringsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String packetMirroring = "packetMirroring1405520923";
   PacketMirroring response = packetMirroringsClient.get(project, region, packetMirroring);
 }
 

ProjectsClient

Service Description: The Projects API.

Sample for ProjectsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ProjectsClient projectsClient = ProjectsClient.create()) {
   String project = "project-309310695";
   Project response = projectsClient.get(project);
 }
 

PublicAdvertisedPrefixesClient

Service Description: The PublicAdvertisedPrefixes API.

Sample for PublicAdvertisedPrefixesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PublicAdvertisedPrefixesClient publicAdvertisedPrefixesClient =
     PublicAdvertisedPrefixesClient.create()) {
   String project = "project-309310695";
   String publicAdvertisedPrefix = "publicAdvertisedPrefix1506440856";
   PublicAdvertisedPrefix response =
       publicAdvertisedPrefixesClient.get(project, publicAdvertisedPrefix);
 }
 

PublicDelegatedPrefixesClient

Service Description: The PublicDelegatedPrefixes API.

Sample for PublicDelegatedPrefixesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (PublicDelegatedPrefixesClient publicDelegatedPrefixesClient =
     PublicDelegatedPrefixesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String publicDelegatedPrefix = "publicDelegatedPrefix-663003832";
   PublicDelegatedPrefix response =
       publicDelegatedPrefixesClient.get(project, region, publicDelegatedPrefix);
 }
 

RegionAutoscalersClient

Service Description: The RegionAutoscalers API.

Sample for RegionAutoscalersClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionAutoscalersClient regionAutoscalersClient = RegionAutoscalersClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String autoscaler = "autoscaler517258967";
   Autoscaler response = regionAutoscalersClient.get(project, region, autoscaler);
 }
 

RegionBackendServicesClient

Service Description: The RegionBackendServices API.

Sample for RegionBackendServicesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionBackendServicesClient regionBackendServicesClient =
     RegionBackendServicesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String backendService = "backendService-1884714623";
   BackendService response = regionBackendServicesClient.get(project, region, backendService);
 }
 

RegionCommitmentsClient

Service Description: The RegionCommitments API.

Sample for RegionCommitmentsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionCommitmentsClient regionCommitmentsClient = RegionCommitmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String commitment = "commitment1019005717";
   Commitment response = regionCommitmentsClient.get(project, region, commitment);
 }
 

RegionDiskTypesClient

Service Description: The RegionDiskTypes API.

Sample for RegionDiskTypesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionDiskTypesClient regionDiskTypesClient = RegionDiskTypesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String diskType = "diskType279771767";
   DiskType response = regionDiskTypesClient.get(project, region, diskType);
 }
 

RegionDisksClient

Service Description: The RegionDisks API.

Sample for RegionDisksClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String disk = "disk3083677";
   Disk response = regionDisksClient.get(project, region, disk);
 }
 

RegionHealthCheckServicesClient

Service Description: The RegionHealthCheckServices API.

Sample for RegionHealthCheckServicesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionHealthCheckServicesClient regionHealthCheckServicesClient =
     RegionHealthCheckServicesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String healthCheckService = "healthCheckService-917902071";
   HealthCheckService response =
       regionHealthCheckServicesClient.get(project, region, healthCheckService);
 }
 

RegionHealthChecksClient

Service Description: The RegionHealthChecks API.

Sample for RegionHealthChecksClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionHealthChecksClient regionHealthChecksClient = RegionHealthChecksClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String healthCheck = "healthCheck-1938093044";
   HealthCheck response = regionHealthChecksClient.get(project, region, healthCheck);
 }
 

RegionInstanceGroupManagersClient

Service Description: The RegionInstanceGroupManagers API.

Sample for RegionInstanceGroupManagersClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient =
     RegionInstanceGroupManagersClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String instanceGroupManager = "instanceGroupManager-388242077";
   InstanceGroupManager response =
       regionInstanceGroupManagersClient.get(project, region, instanceGroupManager);
 }
 

RegionInstanceGroupsClient

Service Description: The RegionInstanceGroups API.

Sample for RegionInstanceGroupsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionInstanceGroupsClient regionInstanceGroupsClient =
     RegionInstanceGroupsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String instanceGroup = "instanceGroup-1404696854";
   InstanceGroup response = regionInstanceGroupsClient.get(project, region, instanceGroup);
 }
 

RegionInstanceTemplatesClient

Service Description: The RegionInstanceTemplates API.

Sample for RegionInstanceTemplatesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionInstanceTemplatesClient regionInstanceTemplatesClient =
     RegionInstanceTemplatesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String instanceTemplate = "instanceTemplate1009541167";
   InstanceTemplate response =
       regionInstanceTemplatesClient.get(project, region, instanceTemplate);
 }
 

RegionInstancesClient

Service Description: The RegionInstances API.

Sample for RegionInstancesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionInstancesClient regionInstancesClient = RegionInstancesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   BulkInsertInstanceResource bulkInsertInstanceResourceResource =
       BulkInsertInstanceResource.newBuilder().build();
   Operation response =
       regionInstancesClient
           .bulkInsertAsync(project, region, bulkInsertInstanceResourceResource)
           .get();
 }
 

RegionNetworkEndpointGroupsClient

Service Description: The RegionNetworkEndpointGroups API.

Sample for RegionNetworkEndpointGroupsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionNetworkEndpointGroupsClient regionNetworkEndpointGroupsClient =
     RegionNetworkEndpointGroupsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String networkEndpointGroup = "networkEndpointGroup-2120389028";
   NetworkEndpointGroup response =
       regionNetworkEndpointGroupsClient.get(project, region, networkEndpointGroup);
 }
 

RegionNetworkFirewallPoliciesClient

Service Description: The RegionNetworkFirewallPolicies API.

Sample for RegionNetworkFirewallPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient =
     RegionNetworkFirewallPoliciesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String firewallPolicy = "firewallPolicy1819692626";
   FirewallPolicy response =
       regionNetworkFirewallPoliciesClient.get(project, region, firewallPolicy);
 }
 

RegionNotificationEndpointsClient

Service Description: The RegionNotificationEndpoints API.

Sample for RegionNotificationEndpointsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionNotificationEndpointsClient regionNotificationEndpointsClient =
     RegionNotificationEndpointsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String notificationEndpoint = "notificationEndpoint-354029664";
   NotificationEndpoint response =
       regionNotificationEndpointsClient.get(project, region, notificationEndpoint);
 }
 

RegionOperationsClient

Service Description: The RegionOperations API.

Sample for RegionOperationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String operation = "operation1662702951";
   DeleteRegionOperationResponse response =
       regionOperationsClient.delete(project, region, operation);
 }
 

RegionSecurityPoliciesClient

Service Description: The RegionSecurityPolicies API.

Sample for RegionSecurityPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionSecurityPoliciesClient regionSecurityPoliciesClient =
     RegionSecurityPoliciesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String securityPolicy = "securityPolicy-788621166";
   SecurityPolicy response = regionSecurityPoliciesClient.get(project, region, securityPolicy);
 }
 

RegionSslCertificatesClient

Service Description: The RegionSslCertificates API.

Sample for RegionSslCertificatesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionSslCertificatesClient regionSslCertificatesClient =
     RegionSslCertificatesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String sslCertificate = "sslCertificate-1304941589";
   SslCertificate response = regionSslCertificatesClient.get(project, region, sslCertificate);
 }
 

RegionSslPoliciesClient

Service Description: The RegionSslPolicies API.

Sample for RegionSslPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionSslPoliciesClient regionSslPoliciesClient = RegionSslPoliciesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String sslPolicy = "sslPolicy618174046";
   SslPolicy response = regionSslPoliciesClient.get(project, region, sslPolicy);
 }
 

RegionTargetHttpProxiesClient

Service Description: The RegionTargetHttpProxies API.

Sample for RegionTargetHttpProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionTargetHttpProxiesClient regionTargetHttpProxiesClient =
     RegionTargetHttpProxiesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String targetHttpProxy = "targetHttpProxy-1944074187";
   TargetHttpProxy response =
       regionTargetHttpProxiesClient.get(project, region, targetHttpProxy);
 }
 

RegionTargetHttpsProxiesClient

Service Description: The RegionTargetHttpsProxies API.

Sample for RegionTargetHttpsProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionTargetHttpsProxiesClient regionTargetHttpsProxiesClient =
     RegionTargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxy response =
       regionTargetHttpsProxiesClient.get(project, region, targetHttpsProxy);
 }
 

RegionTargetTcpProxiesClient

Service Description: The RegionTargetTcpProxies API.

Sample for RegionTargetTcpProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionTargetTcpProxiesClient regionTargetTcpProxiesClient =
     RegionTargetTcpProxiesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String targetTcpProxy = "targetTcpProxy-337144898";
   TargetTcpProxy response = regionTargetTcpProxiesClient.get(project, region, targetTcpProxy);
 }
 

RegionUrlMapsClient

Service Description: The RegionUrlMaps API.

Sample for RegionUrlMapsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String urlMap = "urlMap-836780691";
   UrlMap response = regionUrlMapsClient.get(project, region, urlMap);
 }
 

RegionsClient

Service Description: The Regions API.

Sample for RegionsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RegionsClient regionsClient = RegionsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   Region response = regionsClient.get(project, region);
 }
 

ReservationsClient

Service Description: The Reservations API.

Sample for ReservationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ReservationsClient reservationsClient = ReservationsClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String reservation = "reservation-1563081780";
   Reservation response = reservationsClient.get(project, zone, reservation);
 }
 

ResourcePoliciesClient

Service Description: The ResourcePolicies API.

Sample for ResourcePoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ResourcePoliciesClient resourcePoliciesClient = ResourcePoliciesClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String resourcePolicy = "resourcePolicy-130903328";
   ResourcePolicy response = resourcePoliciesClient.get(project, region, resourcePolicy);
 }
 

RoutersClient

Service Description: The Routers API.

Sample for RoutersClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RoutersClient routersClient = RoutersClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String router = "router-925132983";
   Router response = routersClient.get(project, region, router);
 }
 

RoutesClient

Service Description: The Routes API.

Sample for RoutesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (RoutesClient routesClient = RoutesClient.create()) {
   String project = "project-309310695";
   String route = "route108704329";
   Route response = routesClient.get(project, route);
 }
 

SecurityPoliciesClient

Service Description: The SecurityPolicies API.

Sample for SecurityPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SecurityPoliciesClient securityPoliciesClient = SecurityPoliciesClient.create()) {
   String project = "project-309310695";
   String securityPolicy = "securityPolicy-788621166";
   SecurityPolicy response = securityPoliciesClient.get(project, securityPolicy);
 }
 

ServiceAttachmentsClient

Service Description: The ServiceAttachments API.

Sample for ServiceAttachmentsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ServiceAttachmentsClient serviceAttachmentsClient = ServiceAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String serviceAttachment = "serviceAttachment-398467656";
   ServiceAttachment response = serviceAttachmentsClient.get(project, region, serviceAttachment);
 }
 

SnapshotsClient

Service Description: The Snapshots API.

Sample for SnapshotsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SnapshotsClient snapshotsClient = SnapshotsClient.create()) {
   String project = "project-309310695";
   String snapshot = "snapshot284874180";
   Snapshot response = snapshotsClient.get(project, snapshot);
 }
 

SslCertificatesClient

Service Description: The SslCertificates API.

Sample for SslCertificatesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SslCertificatesClient sslCertificatesClient = SslCertificatesClient.create()) {
   String project = "project-309310695";
   String sslCertificate = "sslCertificate-1304941589";
   SslCertificate response = sslCertificatesClient.get(project, sslCertificate);
 }
 

SslPoliciesClient

Service Description: The SslPolicies API.

Sample for SslPoliciesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SslPoliciesClient sslPoliciesClient = SslPoliciesClient.create()) {
   String project = "project-309310695";
   String sslPolicy = "sslPolicy618174046";
   SslPolicy response = sslPoliciesClient.get(project, sslPolicy);
 }
 

SubnetworksClient

Service Description: The Subnetworks API.

Sample for SubnetworksClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (SubnetworksClient subnetworksClient = SubnetworksClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String subnetwork = "subnetwork-1302785042";
   Subnetwork response = subnetworksClient.get(project, region, subnetwork);
 }
 

TargetGrpcProxiesClient

Service Description: The TargetGrpcProxies API.

Sample for TargetGrpcProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetGrpcProxiesClient targetGrpcProxiesClient = TargetGrpcProxiesClient.create()) {
   String project = "project-309310695";
   String targetGrpcProxy = "targetGrpcProxy1045500511";
   TargetGrpcProxy response = targetGrpcProxiesClient.get(project, targetGrpcProxy);
 }
 

TargetHttpProxiesClient

Service Description: The TargetHttpProxies API.

Sample for TargetHttpProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpProxy = "targetHttpProxy-1944074187";
   TargetHttpProxy response = targetHttpProxiesClient.get(project, targetHttpProxy);
 }
 

TargetHttpsProxiesClient

Service Description: The TargetHttpsProxies API.

Sample for TargetHttpsProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) {
   String project = "project-309310695";
   String targetHttpsProxy = "targetHttpsProxy833943732";
   TargetHttpsProxy response = targetHttpsProxiesClient.get(project, targetHttpsProxy);
 }
 

TargetInstancesClient

Service Description: The TargetInstances API.

Sample for TargetInstancesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetInstancesClient targetInstancesClient = TargetInstancesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String targetInstance = "targetInstance-1036957370";
   TargetInstance response = targetInstancesClient.get(project, zone, targetInstance);
 }
 

TargetPoolsClient

Service Description: The TargetPools API.

Sample for TargetPoolsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetPoolsClient targetPoolsClient = TargetPoolsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String targetPool = "targetPool486493517";
   TargetPool response = targetPoolsClient.get(project, region, targetPool);
 }
 

TargetSslProxiesClient

Service Description: The TargetSslProxies API.

Sample for TargetSslProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetSslProxiesClient targetSslProxiesClient = TargetSslProxiesClient.create()) {
   String project = "project-309310695";
   String targetSslProxy = "targetSslProxy-879314829";
   TargetSslProxy response = targetSslProxiesClient.get(project, targetSslProxy);
 }
 

TargetTcpProxiesClient

Service Description: The TargetTcpProxies API.

Sample for TargetTcpProxiesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) {
   String project = "project-309310695";
   String targetTcpProxy = "targetTcpProxy-337144898";
   TargetTcpProxy response = targetTcpProxiesClient.get(project, targetTcpProxy);
 }
 

TargetVpnGatewaysClient

Service Description: The TargetVpnGateways API.

Sample for TargetVpnGatewaysClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TargetVpnGatewaysClient targetVpnGatewaysClient = TargetVpnGatewaysClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String targetVpnGateway = "targetVpnGateway935274273";
   TargetVpnGateway response = targetVpnGatewaysClient.get(project, region, targetVpnGateway);
 }
 

UrlMapsClient

Service Description: The UrlMaps API.

Sample for UrlMapsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (UrlMapsClient urlMapsClient = UrlMapsClient.create()) {
   String project = "project-309310695";
   String urlMap = "urlMap-836780691";
   UrlMap response = urlMapsClient.get(project, urlMap);
 }
 

VpnGatewaysClient

Service Description: The VpnGateways API.

Sample for VpnGatewaysClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (VpnGatewaysClient vpnGatewaysClient = VpnGatewaysClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String vpnGateway = "vpnGateway1920916144";
   VpnGateway response = vpnGatewaysClient.get(project, region, vpnGateway);
 }
 

VpnTunnelsClient

Service Description: The VpnTunnels API.

Sample for VpnTunnelsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (VpnTunnelsClient vpnTunnelsClient = VpnTunnelsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String vpnTunnel = "vpnTunnel452443772";
   VpnTunnel response = vpnTunnelsClient.get(project, region, vpnTunnel);
 }
 

ZoneOperationsClient

Service Description: The ZoneOperations API.

Sample for ZoneOperationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ZoneOperationsClient zoneOperationsClient = ZoneOperationsClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   String operation = "operation1662702951";
   DeleteZoneOperationResponse response = zoneOperationsClient.delete(project, zone, operation);
 }
 

ZonesClient

Service Description: The Zones API.

Sample for ZonesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ZonesClient zonesClient = ZonesClient.create()) {
   String project = "project-309310695";
   String zone = "zone3744684";
   Zone response = zonesClient.get(project, zone);
 }
 

com.google.cloud.compute.v1.stub