- 1.62.0 (latest)
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
com.google.cloud.compute.v1
The interfaces provided are listed below, along with usage samples.
AcceleratorTypesClient
Service Description: Services
The AcceleratorTypes API.
Sample for AcceleratorTypesClient:
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:
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:
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:
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:
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:
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:
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:
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:
try (FirewallPoliciesClient firewallPoliciesClient = FirewallPoliciesClient.create()) {
String firewallPolicy = "firewallPolicy1819692626";
FirewallPolicy response = firewallPoliciesClient.get(firewallPolicy);
}
FirewallsClient
Service Description: The Firewalls API.
Sample for FirewallsClient:
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:
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:
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:
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:
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:
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:
try (GlobalOrganizationOperationsClient globalOrganizationOperationsClient =
GlobalOrganizationOperationsClient.create()) {
String operation = "operation1662702951";
DeleteGlobalOrganizationOperationResponse response =
globalOrganizationOperationsClient.delete(operation);
}
GlobalPublicDelegatedPrefixesClient
Service Description: The GlobalPublicDelegatedPrefixes API.
Sample for GlobalPublicDelegatedPrefixesClient:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
try (LicensesClient licensesClient = LicensesClient.create()) {
String project = "project-309310695";
String license = "license166757441";
License response = licensesClient.get(project, license);
}
MachineTypesClient
Service Description: The MachineTypes API.
Sample for MachineTypesClient:
try (MachineTypesClient machineTypesClient = MachineTypesClient.create()) {
String project = "project-309310695";
String zone = "zone3744684";
String machineType = "machineType-218117087";
MachineType response = machineTypesClient.get(project, zone, machineType);
}
NetworkEndpointGroupsClient
Service Description: The NetworkEndpointGroups API.
Sample for NetworkEndpointGroupsClient:
try (NetworkEndpointGroupsClient networkEndpointGroupsClient =
NetworkEndpointGroupsClient.create()) {
String project = "project-309310695";
String zone = "zone3744684";
String networkEndpointGroup = "networkEndpointGroup-2120389028";
NetworkEndpointGroup response =
networkEndpointGroupsClient.get(project, zone, networkEndpointGroup);
}
NetworksClient
Service Description: The Networks API.
Sample for NetworksClient:
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:
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:
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:
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:
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:
try (ProjectsClient projectsClient = ProjectsClient.create()) {
String project = "project-309310695";
Project response = projectsClient.get(project);
}
PublicAdvertisedPrefixesClient
Service Description: The PublicAdvertisedPrefixes API.
Sample for PublicAdvertisedPrefixesClient:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
try (RegionInstanceGroupsClient regionInstanceGroupsClient =
RegionInstanceGroupsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String instanceGroup = "instanceGroup-1404696854";
InstanceGroup response = regionInstanceGroupsClient.get(project, region, instanceGroup);
}
RegionInstancesClient
Service Description: The RegionInstances API.
Sample for RegionInstancesClient:
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:
try (RegionNetworkEndpointGroupsClient regionNetworkEndpointGroupsClient =
RegionNetworkEndpointGroupsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String networkEndpointGroup = "networkEndpointGroup-2120389028";
NetworkEndpointGroup response =
regionNetworkEndpointGroupsClient.get(project, region, networkEndpointGroup);
}
RegionNotificationEndpointsClient
Service Description: The RegionNotificationEndpoints API.
Sample for RegionNotificationEndpointsClient:
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:
try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String operation = "operation1662702951";
DeleteRegionOperationResponse response =
regionOperationsClient.delete(project, region, operation);
}
RegionSslCertificatesClient
Service Description: The RegionSslCertificates API.
Sample for RegionSslCertificatesClient:
try (RegionSslCertificatesClient regionSslCertificatesClient =
RegionSslCertificatesClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String sslCertificate = "sslCertificate-1304941589";
SslCertificate response = regionSslCertificatesClient.get(project, region, sslCertificate);
}
RegionTargetHttpProxiesClient
Service Description: The RegionTargetHttpProxies API.
Sample for RegionTargetHttpProxiesClient:
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:
try (RegionTargetHttpsProxiesClient regionTargetHttpsProxiesClient =
RegionTargetHttpsProxiesClient.create()) {
String project = "project-309310695";
String region = "region-934795532";
String targetHttpsProxy = "targetHttpsProxy833943732";
TargetHttpsProxy response =
regionTargetHttpsProxiesClient.get(project, region, targetHttpsProxy);
}
RegionUrlMapsClient
Service Description: The RegionUrlMaps API.
Sample for RegionUrlMapsClient:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
try (ZonesClient zonesClient = ZonesClient.create()) {
String project = "project-309310695";
String zone = "zone3744684";
Zone response = zonesClient.get(project, zone);
}