1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * The interfaces provided are listed below, along with usage samples. 19 * 20 * <p>======================= AcceleratorTypesClient ======================= 21 * 22 * <p>Service Description: Services 23 * 24 * <p>The AcceleratorTypes API. 25 * 26 * <p>Sample for AcceleratorTypesClient: 27 * 28 * <pre>{@code 29 * // This snippet has been automatically generated and should be regarded as a code template only. 30 * // It will require modifications to work: 31 * // - It may require correct/in-range values for request initialization. 32 * // - It may require specifying regional endpoints when creating the service client as shown in 33 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 34 * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { 35 * String project = "project-309310695"; 36 * String zone = "zone3744684"; 37 * String acceleratorType = "acceleratorType-82462651"; 38 * AcceleratorType response = acceleratorTypesClient.get(project, zone, acceleratorType); 39 * } 40 * }</pre> 41 * 42 * <p>======================= AddressesClient ======================= 43 * 44 * <p>Service Description: The Addresses API. 45 * 46 * <p>Sample for AddressesClient: 47 * 48 * <pre>{@code 49 * // This snippet has been automatically generated and should be regarded as a code template only. 50 * // It will require modifications to work: 51 * // - It may require correct/in-range values for request initialization. 52 * // - It may require specifying regional endpoints when creating the service client as shown in 53 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 54 * try (AddressesClient addressesClient = AddressesClient.create()) { 55 * String project = "project-309310695"; 56 * String region = "region-934795532"; 57 * String address = "address-1147692044"; 58 * Address response = addressesClient.get(project, region, address); 59 * } 60 * }</pre> 61 * 62 * <p>======================= AutoscalersClient ======================= 63 * 64 * <p>Service Description: The Autoscalers API. 65 * 66 * <p>Sample for AutoscalersClient: 67 * 68 * <pre>{@code 69 * // This snippet has been automatically generated and should be regarded as a code template only. 70 * // It will require modifications to work: 71 * // - It may require correct/in-range values for request initialization. 72 * // - It may require specifying regional endpoints when creating the service client as shown in 73 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 74 * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { 75 * String project = "project-309310695"; 76 * String zone = "zone3744684"; 77 * String autoscaler = "autoscaler517258967"; 78 * Autoscaler response = autoscalersClient.get(project, zone, autoscaler); 79 * } 80 * }</pre> 81 * 82 * <p>======================= BackendBucketsClient ======================= 83 * 84 * <p>Service Description: The BackendBuckets API. 85 * 86 * <p>Sample for BackendBucketsClient: 87 * 88 * <pre>{@code 89 * // This snippet has been automatically generated and should be regarded as a code template only. 90 * // It will require modifications to work: 91 * // - It may require correct/in-range values for request initialization. 92 * // - It may require specifying regional endpoints when creating the service client as shown in 93 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 94 * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { 95 * String project = "project-309310695"; 96 * String backendBucket = "backendBucket713751966"; 97 * BackendBucket response = backendBucketsClient.get(project, backendBucket); 98 * } 99 * }</pre> 100 * 101 * <p>======================= BackendServicesClient ======================= 102 * 103 * <p>Service Description: The BackendServices API. 104 * 105 * <p>Sample for BackendServicesClient: 106 * 107 * <pre>{@code 108 * // This snippet has been automatically generated and should be regarded as a code template only. 109 * // It will require modifications to work: 110 * // - It may require correct/in-range values for request initialization. 111 * // - It may require specifying regional endpoints when creating the service client as shown in 112 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 113 * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { 114 * String project = "project-309310695"; 115 * String backendService = "backendService-1884714623"; 116 * BackendService response = backendServicesClient.get(project, backendService); 117 * } 118 * }</pre> 119 * 120 * <p>======================= DiskTypesClient ======================= 121 * 122 * <p>Service Description: The DiskTypes API. 123 * 124 * <p>Sample for DiskTypesClient: 125 * 126 * <pre>{@code 127 * // This snippet has been automatically generated and should be regarded as a code template only. 128 * // It will require modifications to work: 129 * // - It may require correct/in-range values for request initialization. 130 * // - It may require specifying regional endpoints when creating the service client as shown in 131 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 132 * try (DiskTypesClient diskTypesClient = DiskTypesClient.create()) { 133 * String project = "project-309310695"; 134 * String zone = "zone3744684"; 135 * String diskType = "diskType279771767"; 136 * DiskType response = diskTypesClient.get(project, zone, diskType); 137 * } 138 * }</pre> 139 * 140 * <p>======================= DisksClient ======================= 141 * 142 * <p>Service Description: The Disks API. 143 * 144 * <p>Sample for DisksClient: 145 * 146 * <pre>{@code 147 * // This snippet has been automatically generated and should be regarded as a code template only. 148 * // It will require modifications to work: 149 * // - It may require correct/in-range values for request initialization. 150 * // - It may require specifying regional endpoints when creating the service client as shown in 151 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 152 * try (DisksClient disksClient = DisksClient.create()) { 153 * String project = "project-309310695"; 154 * String zone = "zone3744684"; 155 * String disk = "disk3083677"; 156 * Disk response = disksClient.get(project, zone, disk); 157 * } 158 * }</pre> 159 * 160 * <p>======================= ExternalVpnGatewaysClient ======================= 161 * 162 * <p>Service Description: The ExternalVpnGateways API. 163 * 164 * <p>Sample for ExternalVpnGatewaysClient: 165 * 166 * <pre>{@code 167 * // This snippet has been automatically generated and should be regarded as a code template only. 168 * // It will require modifications to work: 169 * // - It may require correct/in-range values for request initialization. 170 * // - It may require specifying regional endpoints when creating the service client as shown in 171 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 172 * try (ExternalVpnGatewaysClient externalVpnGatewaysClient = ExternalVpnGatewaysClient.create()) { 173 * String project = "project-309310695"; 174 * String externalVpnGateway = "externalVpnGateway-1140582181"; 175 * ExternalVpnGateway response = externalVpnGatewaysClient.get(project, externalVpnGateway); 176 * } 177 * }</pre> 178 * 179 * <p>======================= FirewallPoliciesClient ======================= 180 * 181 * <p>Service Description: The FirewallPolicies API. 182 * 183 * <p>Sample for FirewallPoliciesClient: 184 * 185 * <pre>{@code 186 * // This snippet has been automatically generated and should be regarded as a code template only. 187 * // It will require modifications to work: 188 * // - It may require correct/in-range values for request initialization. 189 * // - It may require specifying regional endpoints when creating the service client as shown in 190 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 191 * try (FirewallPoliciesClient firewallPoliciesClient = FirewallPoliciesClient.create()) { 192 * String firewallPolicy = "firewallPolicy1819692626"; 193 * FirewallPolicy response = firewallPoliciesClient.get(firewallPolicy); 194 * } 195 * }</pre> 196 * 197 * <p>======================= FirewallsClient ======================= 198 * 199 * <p>Service Description: The Firewalls API. 200 * 201 * <p>Sample for FirewallsClient: 202 * 203 * <pre>{@code 204 * // This snippet has been automatically generated and should be regarded as a code template only. 205 * // It will require modifications to work: 206 * // - It may require correct/in-range values for request initialization. 207 * // - It may require specifying regional endpoints when creating the service client as shown in 208 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 209 * try (FirewallsClient firewallsClient = FirewallsClient.create()) { 210 * String project = "project-309310695"; 211 * String firewall = "firewall-562725632"; 212 * Firewall response = firewallsClient.get(project, firewall); 213 * } 214 * }</pre> 215 * 216 * <p>======================= ForwardingRulesClient ======================= 217 * 218 * <p>Service Description: The ForwardingRules API. 219 * 220 * <p>Sample for ForwardingRulesClient: 221 * 222 * <pre>{@code 223 * // This snippet has been automatically generated and should be regarded as a code template only. 224 * // It will require modifications to work: 225 * // - It may require correct/in-range values for request initialization. 226 * // - It may require specifying regional endpoints when creating the service client as shown in 227 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 228 * try (ForwardingRulesClient forwardingRulesClient = ForwardingRulesClient.create()) { 229 * String project = "project-309310695"; 230 * String region = "region-934795532"; 231 * String forwardingRule = "forwardingRule-1429104743"; 232 * ForwardingRule response = forwardingRulesClient.get(project, region, forwardingRule); 233 * } 234 * }</pre> 235 * 236 * <p>======================= GlobalAddressesClient ======================= 237 * 238 * <p>Service Description: The GlobalAddresses API. 239 * 240 * <p>Sample for GlobalAddressesClient: 241 * 242 * <pre>{@code 243 * // This snippet has been automatically generated and should be regarded as a code template only. 244 * // It will require modifications to work: 245 * // - It may require correct/in-range values for request initialization. 246 * // - It may require specifying regional endpoints when creating the service client as shown in 247 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 248 * try (GlobalAddressesClient globalAddressesClient = GlobalAddressesClient.create()) { 249 * String project = "project-309310695"; 250 * String address = "address-1147692044"; 251 * Address response = globalAddressesClient.get(project, address); 252 * } 253 * }</pre> 254 * 255 * <p>======================= GlobalForwardingRulesClient ======================= 256 * 257 * <p>Service Description: The GlobalForwardingRules API. 258 * 259 * <p>Sample for GlobalForwardingRulesClient: 260 * 261 * <pre>{@code 262 * // This snippet has been automatically generated and should be regarded as a code template only. 263 * // It will require modifications to work: 264 * // - It may require correct/in-range values for request initialization. 265 * // - It may require specifying regional endpoints when creating the service client as shown in 266 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 267 * try (GlobalForwardingRulesClient globalForwardingRulesClient = 268 * GlobalForwardingRulesClient.create()) { 269 * String project = "project-309310695"; 270 * String forwardingRule = "forwardingRule-1429104743"; 271 * ForwardingRule response = globalForwardingRulesClient.get(project, forwardingRule); 272 * } 273 * }</pre> 274 * 275 * <p>======================= GlobalNetworkEndpointGroupsClient ======================= 276 * 277 * <p>Service Description: The GlobalNetworkEndpointGroups API. 278 * 279 * <p>Sample for GlobalNetworkEndpointGroupsClient: 280 * 281 * <pre>{@code 282 * // This snippet has been automatically generated and should be regarded as a code template only. 283 * // It will require modifications to work: 284 * // - It may require correct/in-range values for request initialization. 285 * // - It may require specifying regional endpoints when creating the service client as shown in 286 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 287 * try (GlobalNetworkEndpointGroupsClient globalNetworkEndpointGroupsClient = 288 * GlobalNetworkEndpointGroupsClient.create()) { 289 * String project = "project-309310695"; 290 * String networkEndpointGroup = "networkEndpointGroup-2120389028"; 291 * NetworkEndpointGroup response = 292 * globalNetworkEndpointGroupsClient.get(project, networkEndpointGroup); 293 * } 294 * }</pre> 295 * 296 * <p>======================= GlobalOperationsClient ======================= 297 * 298 * <p>Service Description: The GlobalOperations API. 299 * 300 * <p>Sample for GlobalOperationsClient: 301 * 302 * <pre>{@code 303 * // This snippet has been automatically generated and should be regarded as a code template only. 304 * // It will require modifications to work: 305 * // - It may require correct/in-range values for request initialization. 306 * // - It may require specifying regional endpoints when creating the service client as shown in 307 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 308 * try (GlobalOperationsClient globalOperationsClient = GlobalOperationsClient.create()) { 309 * String project = "project-309310695"; 310 * String operation = "operation1662702951"; 311 * DeleteGlobalOperationResponse response = globalOperationsClient.delete(project, operation); 312 * } 313 * }</pre> 314 * 315 * <p>======================= GlobalOrganizationOperationsClient ======================= 316 * 317 * <p>Service Description: The GlobalOrganizationOperations API. 318 * 319 * <p>Sample for GlobalOrganizationOperationsClient: 320 * 321 * <pre>{@code 322 * // This snippet has been automatically generated and should be regarded as a code template only. 323 * // It will require modifications to work: 324 * // - It may require correct/in-range values for request initialization. 325 * // - It may require specifying regional endpoints when creating the service client as shown in 326 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 327 * try (GlobalOrganizationOperationsClient globalOrganizationOperationsClient = 328 * GlobalOrganizationOperationsClient.create()) { 329 * String operation = "operation1662702951"; 330 * DeleteGlobalOrganizationOperationResponse response = 331 * globalOrganizationOperationsClient.delete(operation); 332 * } 333 * }</pre> 334 * 335 * <p>======================= GlobalPublicDelegatedPrefixesClient ======================= 336 * 337 * <p>Service Description: The GlobalPublicDelegatedPrefixes API. 338 * 339 * <p>Sample for GlobalPublicDelegatedPrefixesClient: 340 * 341 * <pre>{@code 342 * // This snippet has been automatically generated and should be regarded as a code template only. 343 * // It will require modifications to work: 344 * // - It may require correct/in-range values for request initialization. 345 * // - It may require specifying regional endpoints when creating the service client as shown in 346 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 347 * try (GlobalPublicDelegatedPrefixesClient globalPublicDelegatedPrefixesClient = 348 * GlobalPublicDelegatedPrefixesClient.create()) { 349 * String project = "project-309310695"; 350 * String publicDelegatedPrefix = "publicDelegatedPrefix-663003832"; 351 * PublicDelegatedPrefix response = 352 * globalPublicDelegatedPrefixesClient.get(project, publicDelegatedPrefix); 353 * } 354 * }</pre> 355 * 356 * <p>======================= HealthChecksClient ======================= 357 * 358 * <p>Service Description: The HealthChecks API. 359 * 360 * <p>Sample for HealthChecksClient: 361 * 362 * <pre>{@code 363 * // This snippet has been automatically generated and should be regarded as a code template only. 364 * // It will require modifications to work: 365 * // - It may require correct/in-range values for request initialization. 366 * // - It may require specifying regional endpoints when creating the service client as shown in 367 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 368 * try (HealthChecksClient healthChecksClient = HealthChecksClient.create()) { 369 * String project = "project-309310695"; 370 * String healthCheck = "healthCheck-1938093044"; 371 * HealthCheck response = healthChecksClient.get(project, healthCheck); 372 * } 373 * }</pre> 374 * 375 * <p>======================= ImageFamilyViewsClient ======================= 376 * 377 * <p>Service Description: The ImageFamilyViews API. 378 * 379 * <p>Sample for ImageFamilyViewsClient: 380 * 381 * <pre>{@code 382 * // This snippet has been automatically generated and should be regarded as a code template only. 383 * // It will require modifications to work: 384 * // - It may require correct/in-range values for request initialization. 385 * // - It may require specifying regional endpoints when creating the service client as shown in 386 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 387 * try (ImageFamilyViewsClient imageFamilyViewsClient = ImageFamilyViewsClient.create()) { 388 * String project = "project-309310695"; 389 * String zone = "zone3744684"; 390 * String family = "family-1281860764"; 391 * ImageFamilyView response = imageFamilyViewsClient.get(project, zone, family); 392 * } 393 * }</pre> 394 * 395 * <p>======================= ImagesClient ======================= 396 * 397 * <p>Service Description: The Images API. 398 * 399 * <p>Sample for ImagesClient: 400 * 401 * <pre>{@code 402 * // This snippet has been automatically generated and should be regarded as a code template only. 403 * // It will require modifications to work: 404 * // - It may require correct/in-range values for request initialization. 405 * // - It may require specifying regional endpoints when creating the service client as shown in 406 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 407 * try (ImagesClient imagesClient = ImagesClient.create()) { 408 * String project = "project-309310695"; 409 * String image = "image100313435"; 410 * Image response = imagesClient.get(project, image); 411 * } 412 * }</pre> 413 * 414 * <p>======================= InstanceGroupManagersClient ======================= 415 * 416 * <p>Service Description: The InstanceGroupManagers API. 417 * 418 * <p>Sample for InstanceGroupManagersClient: 419 * 420 * <pre>{@code 421 * // This snippet has been automatically generated and should be regarded as a code template only. 422 * // It will require modifications to work: 423 * // - It may require correct/in-range values for request initialization. 424 * // - It may require specifying regional endpoints when creating the service client as shown in 425 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 426 * try (InstanceGroupManagersClient instanceGroupManagersClient = 427 * InstanceGroupManagersClient.create()) { 428 * String project = "project-309310695"; 429 * String zone = "zone3744684"; 430 * String instanceGroupManager = "instanceGroupManager-388242077"; 431 * InstanceGroupManager response = 432 * instanceGroupManagersClient.get(project, zone, instanceGroupManager); 433 * } 434 * }</pre> 435 * 436 * <p>======================= InstanceGroupsClient ======================= 437 * 438 * <p>Service Description: The InstanceGroups API. 439 * 440 * <p>Sample for InstanceGroupsClient: 441 * 442 * <pre>{@code 443 * // This snippet has been automatically generated and should be regarded as a code template only. 444 * // It will require modifications to work: 445 * // - It may require correct/in-range values for request initialization. 446 * // - It may require specifying regional endpoints when creating the service client as shown in 447 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 448 * try (InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.create()) { 449 * String project = "project-309310695"; 450 * String zone = "zone3744684"; 451 * String instanceGroup = "instanceGroup-1404696854"; 452 * InstanceGroup response = instanceGroupsClient.get(project, zone, instanceGroup); 453 * } 454 * }</pre> 455 * 456 * <p>======================= InstanceTemplatesClient ======================= 457 * 458 * <p>Service Description: The InstanceTemplates API. 459 * 460 * <p>Sample for InstanceTemplatesClient: 461 * 462 * <pre>{@code 463 * // This snippet has been automatically generated and should be regarded as a code template only. 464 * // It will require modifications to work: 465 * // - It may require correct/in-range values for request initialization. 466 * // - It may require specifying regional endpoints when creating the service client as shown in 467 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 468 * try (InstanceTemplatesClient instanceTemplatesClient = InstanceTemplatesClient.create()) { 469 * String project = "project-309310695"; 470 * String instanceTemplate = "instanceTemplate1009541167"; 471 * InstanceTemplate response = instanceTemplatesClient.get(project, instanceTemplate); 472 * } 473 * }</pre> 474 * 475 * <p>======================= InstancesClient ======================= 476 * 477 * <p>Service Description: The Instances API. 478 * 479 * <p>Sample for InstancesClient: 480 * 481 * <pre>{@code 482 * // This snippet has been automatically generated and should be regarded as a code template only. 483 * // It will require modifications to work: 484 * // - It may require correct/in-range values for request initialization. 485 * // - It may require specifying regional endpoints when creating the service client as shown in 486 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 487 * try (InstancesClient instancesClient = InstancesClient.create()) { 488 * String project = "project-309310695"; 489 * String zone = "zone3744684"; 490 * String instance = "instance555127957"; 491 * Instance response = instancesClient.get(project, zone, instance); 492 * } 493 * }</pre> 494 * 495 * <p>======================= InterconnectAttachmentsClient ======================= 496 * 497 * <p>Service Description: The InterconnectAttachments API. 498 * 499 * <p>Sample for InterconnectAttachmentsClient: 500 * 501 * <pre>{@code 502 * // This snippet has been automatically generated and should be regarded as a code template only. 503 * // It will require modifications to work: 504 * // - It may require correct/in-range values for request initialization. 505 * // - It may require specifying regional endpoints when creating the service client as shown in 506 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 507 * try (InterconnectAttachmentsClient interconnectAttachmentsClient = 508 * InterconnectAttachmentsClient.create()) { 509 * String project = "project-309310695"; 510 * String region = "region-934795532"; 511 * String interconnectAttachment = "interconnectAttachment1869250641"; 512 * InterconnectAttachment response = 513 * interconnectAttachmentsClient.get(project, region, interconnectAttachment); 514 * } 515 * }</pre> 516 * 517 * <p>======================= InterconnectLocationsClient ======================= 518 * 519 * <p>Service Description: The InterconnectLocations API. 520 * 521 * <p>Sample for InterconnectLocationsClient: 522 * 523 * <pre>{@code 524 * // This snippet has been automatically generated and should be regarded as a code template only. 525 * // It will require modifications to work: 526 * // - It may require correct/in-range values for request initialization. 527 * // - It may require specifying regional endpoints when creating the service client as shown in 528 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 529 * try (InterconnectLocationsClient interconnectLocationsClient = 530 * InterconnectLocationsClient.create()) { 531 * String project = "project-309310695"; 532 * String interconnectLocation = "interconnectLocation220117603"; 533 * InterconnectLocation response = 534 * interconnectLocationsClient.get(project, interconnectLocation); 535 * } 536 * }</pre> 537 * 538 * <p>======================= InterconnectsClient ======================= 539 * 540 * <p>Service Description: The Interconnects API. 541 * 542 * <p>Sample for InterconnectsClient: 543 * 544 * <pre>{@code 545 * // This snippet has been automatically generated and should be regarded as a code template only. 546 * // It will require modifications to work: 547 * // - It may require correct/in-range values for request initialization. 548 * // - It may require specifying regional endpoints when creating the service client as shown in 549 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 550 * try (InterconnectsClient interconnectsClient = InterconnectsClient.create()) { 551 * String project = "project-309310695"; 552 * String interconnect = "interconnect-849140594"; 553 * Interconnect response = interconnectsClient.get(project, interconnect); 554 * } 555 * }</pre> 556 * 557 * <p>======================= LicenseCodesClient ======================= 558 * 559 * <p>Service Description: The LicenseCodes API. 560 * 561 * <p>Sample for LicenseCodesClient: 562 * 563 * <pre>{@code 564 * // This snippet has been automatically generated and should be regarded as a code template only. 565 * // It will require modifications to work: 566 * // - It may require correct/in-range values for request initialization. 567 * // - It may require specifying regional endpoints when creating the service client as shown in 568 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 569 * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) { 570 * String project = "project-309310695"; 571 * String licenseCode = "licenseCode-641557042"; 572 * LicenseCode response = licenseCodesClient.get(project, licenseCode); 573 * } 574 * }</pre> 575 * 576 * <p>======================= LicensesClient ======================= 577 * 578 * <p>Service Description: The Licenses API. 579 * 580 * <p>Sample for LicensesClient: 581 * 582 * <pre>{@code 583 * // This snippet has been automatically generated and should be regarded as a code template only. 584 * // It will require modifications to work: 585 * // - It may require correct/in-range values for request initialization. 586 * // - It may require specifying regional endpoints when creating the service client as shown in 587 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 588 * try (LicensesClient licensesClient = LicensesClient.create()) { 589 * String project = "project-309310695"; 590 * String license = "license166757441"; 591 * License response = licensesClient.get(project, license); 592 * } 593 * }</pre> 594 * 595 * <p>======================= MachineImagesClient ======================= 596 * 597 * <p>Service Description: The MachineImages API. 598 * 599 * <p>Sample for MachineImagesClient: 600 * 601 * <pre>{@code 602 * // This snippet has been automatically generated and should be regarded as a code template only. 603 * // It will require modifications to work: 604 * // - It may require correct/in-range values for request initialization. 605 * // - It may require specifying regional endpoints when creating the service client as shown in 606 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 607 * try (MachineImagesClient machineImagesClient = MachineImagesClient.create()) { 608 * String project = "project-309310695"; 609 * String machineImage = "machineImage1817774420"; 610 * MachineImage response = machineImagesClient.get(project, machineImage); 611 * } 612 * }</pre> 613 * 614 * <p>======================= MachineTypesClient ======================= 615 * 616 * <p>Service Description: The MachineTypes API. 617 * 618 * <p>Sample for MachineTypesClient: 619 * 620 * <pre>{@code 621 * // This snippet has been automatically generated and should be regarded as a code template only. 622 * // It will require modifications to work: 623 * // - It may require correct/in-range values for request initialization. 624 * // - It may require specifying regional endpoints when creating the service client as shown in 625 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 626 * try (MachineTypesClient machineTypesClient = MachineTypesClient.create()) { 627 * String project = "project-309310695"; 628 * String zone = "zone3744684"; 629 * String machineType = "machineType-218117087"; 630 * MachineType response = machineTypesClient.get(project, zone, machineType); 631 * } 632 * }</pre> 633 * 634 * <p>======================= NetworkAttachmentsClient ======================= 635 * 636 * <p>Service Description: The NetworkAttachments API. 637 * 638 * <p>Sample for NetworkAttachmentsClient: 639 * 640 * <pre>{@code 641 * // This snippet has been automatically generated and should be regarded as a code template only. 642 * // It will require modifications to work: 643 * // - It may require correct/in-range values for request initialization. 644 * // - It may require specifying regional endpoints when creating the service client as shown in 645 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 646 * try (NetworkAttachmentsClient networkAttachmentsClient = NetworkAttachmentsClient.create()) { 647 * String project = "project-309310695"; 648 * String region = "region-934795532"; 649 * String networkAttachment = "networkAttachment1918512625"; 650 * NetworkAttachment response = networkAttachmentsClient.get(project, region, networkAttachment); 651 * } 652 * }</pre> 653 * 654 * <p>======================= NetworkEdgeSecurityServicesClient ======================= 655 * 656 * <p>Service Description: The NetworkEdgeSecurityServices API. 657 * 658 * <p>Sample for NetworkEdgeSecurityServicesClient: 659 * 660 * <pre>{@code 661 * // This snippet has been automatically generated and should be regarded as a code template only. 662 * // It will require modifications to work: 663 * // - It may require correct/in-range values for request initialization. 664 * // - It may require specifying regional endpoints when creating the service client as shown in 665 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 666 * try (NetworkEdgeSecurityServicesClient networkEdgeSecurityServicesClient = 667 * NetworkEdgeSecurityServicesClient.create()) { 668 * String project = "project-309310695"; 669 * String region = "region-934795532"; 670 * String networkEdgeSecurityService = "networkEdgeSecurityService-1390253366"; 671 * NetworkEdgeSecurityService response = 672 * networkEdgeSecurityServicesClient.get(project, region, networkEdgeSecurityService); 673 * } 674 * }</pre> 675 * 676 * <p>======================= NetworkEndpointGroupsClient ======================= 677 * 678 * <p>Service Description: The NetworkEndpointGroups API. 679 * 680 * <p>Sample for NetworkEndpointGroupsClient: 681 * 682 * <pre>{@code 683 * // This snippet has been automatically generated and should be regarded as a code template only. 684 * // It will require modifications to work: 685 * // - It may require correct/in-range values for request initialization. 686 * // - It may require specifying regional endpoints when creating the service client as shown in 687 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 688 * try (NetworkEndpointGroupsClient networkEndpointGroupsClient = 689 * NetworkEndpointGroupsClient.create()) { 690 * String project = "project-309310695"; 691 * String zone = "zone3744684"; 692 * String networkEndpointGroup = "networkEndpointGroup-2120389028"; 693 * NetworkEndpointGroup response = 694 * networkEndpointGroupsClient.get(project, zone, networkEndpointGroup); 695 * } 696 * }</pre> 697 * 698 * <p>======================= NetworkFirewallPoliciesClient ======================= 699 * 700 * <p>Service Description: The NetworkFirewallPolicies API. 701 * 702 * <p>Sample for NetworkFirewallPoliciesClient: 703 * 704 * <pre>{@code 705 * // This snippet has been automatically generated and should be regarded as a code template only. 706 * // It will require modifications to work: 707 * // - It may require correct/in-range values for request initialization. 708 * // - It may require specifying regional endpoints when creating the service client as shown in 709 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 710 * try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient = 711 * NetworkFirewallPoliciesClient.create()) { 712 * String project = "project-309310695"; 713 * String firewallPolicy = "firewallPolicy1819692626"; 714 * FirewallPolicy response = networkFirewallPoliciesClient.get(project, firewallPolicy); 715 * } 716 * }</pre> 717 * 718 * <p>======================= NetworksClient ======================= 719 * 720 * <p>Service Description: The Networks API. 721 * 722 * <p>Sample for NetworksClient: 723 * 724 * <pre>{@code 725 * // This snippet has been automatically generated and should be regarded as a code template only. 726 * // It will require modifications to work: 727 * // - It may require correct/in-range values for request initialization. 728 * // - It may require specifying regional endpoints when creating the service client as shown in 729 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 730 * try (NetworksClient networksClient = NetworksClient.create()) { 731 * String project = "project-309310695"; 732 * String network = "network1843485230"; 733 * Network response = networksClient.get(project, network); 734 * } 735 * }</pre> 736 * 737 * <p>======================= NodeGroupsClient ======================= 738 * 739 * <p>Service Description: The NodeGroups API. 740 * 741 * <p>Sample for NodeGroupsClient: 742 * 743 * <pre>{@code 744 * // This snippet has been automatically generated and should be regarded as a code template only. 745 * // It will require modifications to work: 746 * // - It may require correct/in-range values for request initialization. 747 * // - It may require specifying regional endpoints when creating the service client as shown in 748 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 749 * try (NodeGroupsClient nodeGroupsClient = NodeGroupsClient.create()) { 750 * String project = "project-309310695"; 751 * String zone = "zone3744684"; 752 * String nodeGroup = "nodeGroup443599261"; 753 * NodeGroup response = nodeGroupsClient.get(project, zone, nodeGroup); 754 * } 755 * }</pre> 756 * 757 * <p>======================= NodeTemplatesClient ======================= 758 * 759 * <p>Service Description: The NodeTemplates API. 760 * 761 * <p>Sample for NodeTemplatesClient: 762 * 763 * <pre>{@code 764 * // This snippet has been automatically generated and should be regarded as a code template only. 765 * // It will require modifications to work: 766 * // - It may require correct/in-range values for request initialization. 767 * // - It may require specifying regional endpoints when creating the service client as shown in 768 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 769 * try (NodeTemplatesClient nodeTemplatesClient = NodeTemplatesClient.create()) { 770 * String project = "project-309310695"; 771 * String region = "region-934795532"; 772 * String nodeTemplate = "nodeTemplate2118368412"; 773 * NodeTemplate response = nodeTemplatesClient.get(project, region, nodeTemplate); 774 * } 775 * }</pre> 776 * 777 * <p>======================= NodeTypesClient ======================= 778 * 779 * <p>Service Description: The NodeTypes API. 780 * 781 * <p>Sample for NodeTypesClient: 782 * 783 * <pre>{@code 784 * // This snippet has been automatically generated and should be regarded as a code template only. 785 * // It will require modifications to work: 786 * // - It may require correct/in-range values for request initialization. 787 * // - It may require specifying regional endpoints when creating the service client as shown in 788 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 789 * try (NodeTypesClient nodeTypesClient = NodeTypesClient.create()) { 790 * String project = "project-309310695"; 791 * String zone = "zone3744684"; 792 * String nodeType = "nodeType1123082332"; 793 * NodeType response = nodeTypesClient.get(project, zone, nodeType); 794 * } 795 * }</pre> 796 * 797 * <p>======================= PacketMirroringsClient ======================= 798 * 799 * <p>Service Description: The PacketMirrorings API. 800 * 801 * <p>Sample for PacketMirroringsClient: 802 * 803 * <pre>{@code 804 * // This snippet has been automatically generated and should be regarded as a code template only. 805 * // It will require modifications to work: 806 * // - It may require correct/in-range values for request initialization. 807 * // - It may require specifying regional endpoints when creating the service client as shown in 808 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 809 * try (PacketMirroringsClient packetMirroringsClient = PacketMirroringsClient.create()) { 810 * String project = "project-309310695"; 811 * String region = "region-934795532"; 812 * String packetMirroring = "packetMirroring1405520923"; 813 * PacketMirroring response = packetMirroringsClient.get(project, region, packetMirroring); 814 * } 815 * }</pre> 816 * 817 * <p>======================= ProjectsClient ======================= 818 * 819 * <p>Service Description: The Projects API. 820 * 821 * <p>Sample for ProjectsClient: 822 * 823 * <pre>{@code 824 * // This snippet has been automatically generated and should be regarded as a code template only. 825 * // It will require modifications to work: 826 * // - It may require correct/in-range values for request initialization. 827 * // - It may require specifying regional endpoints when creating the service client as shown in 828 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 829 * try (ProjectsClient projectsClient = ProjectsClient.create()) { 830 * String project = "project-309310695"; 831 * Project response = projectsClient.get(project); 832 * } 833 * }</pre> 834 * 835 * <p>======================= PublicAdvertisedPrefixesClient ======================= 836 * 837 * <p>Service Description: The PublicAdvertisedPrefixes API. 838 * 839 * <p>Sample for PublicAdvertisedPrefixesClient: 840 * 841 * <pre>{@code 842 * // This snippet has been automatically generated and should be regarded as a code template only. 843 * // It will require modifications to work: 844 * // - It may require correct/in-range values for request initialization. 845 * // - It may require specifying regional endpoints when creating the service client as shown in 846 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 847 * try (PublicAdvertisedPrefixesClient publicAdvertisedPrefixesClient = 848 * PublicAdvertisedPrefixesClient.create()) { 849 * String project = "project-309310695"; 850 * String publicAdvertisedPrefix = "publicAdvertisedPrefix1506440856"; 851 * PublicAdvertisedPrefix response = 852 * publicAdvertisedPrefixesClient.get(project, publicAdvertisedPrefix); 853 * } 854 * }</pre> 855 * 856 * <p>======================= PublicDelegatedPrefixesClient ======================= 857 * 858 * <p>Service Description: The PublicDelegatedPrefixes API. 859 * 860 * <p>Sample for PublicDelegatedPrefixesClient: 861 * 862 * <pre>{@code 863 * // This snippet has been automatically generated and should be regarded as a code template only. 864 * // It will require modifications to work: 865 * // - It may require correct/in-range values for request initialization. 866 * // - It may require specifying regional endpoints when creating the service client as shown in 867 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 868 * try (PublicDelegatedPrefixesClient publicDelegatedPrefixesClient = 869 * PublicDelegatedPrefixesClient.create()) { 870 * String project = "project-309310695"; 871 * String region = "region-934795532"; 872 * String publicDelegatedPrefix = "publicDelegatedPrefix-663003832"; 873 * PublicDelegatedPrefix response = 874 * publicDelegatedPrefixesClient.get(project, region, publicDelegatedPrefix); 875 * } 876 * }</pre> 877 * 878 * <p>======================= RegionAutoscalersClient ======================= 879 * 880 * <p>Service Description: The RegionAutoscalers API. 881 * 882 * <p>Sample for RegionAutoscalersClient: 883 * 884 * <pre>{@code 885 * // This snippet has been automatically generated and should be regarded as a code template only. 886 * // It will require modifications to work: 887 * // - It may require correct/in-range values for request initialization. 888 * // - It may require specifying regional endpoints when creating the service client as shown in 889 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 890 * try (RegionAutoscalersClient regionAutoscalersClient = RegionAutoscalersClient.create()) { 891 * String project = "project-309310695"; 892 * String region = "region-934795532"; 893 * String autoscaler = "autoscaler517258967"; 894 * Autoscaler response = regionAutoscalersClient.get(project, region, autoscaler); 895 * } 896 * }</pre> 897 * 898 * <p>======================= RegionBackendServicesClient ======================= 899 * 900 * <p>Service Description: The RegionBackendServices API. 901 * 902 * <p>Sample for RegionBackendServicesClient: 903 * 904 * <pre>{@code 905 * // This snippet has been automatically generated and should be regarded as a code template only. 906 * // It will require modifications to work: 907 * // - It may require correct/in-range values for request initialization. 908 * // - It may require specifying regional endpoints when creating the service client as shown in 909 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 910 * try (RegionBackendServicesClient regionBackendServicesClient = 911 * RegionBackendServicesClient.create()) { 912 * String project = "project-309310695"; 913 * String region = "region-934795532"; 914 * String backendService = "backendService-1884714623"; 915 * BackendService response = regionBackendServicesClient.get(project, region, backendService); 916 * } 917 * }</pre> 918 * 919 * <p>======================= RegionCommitmentsClient ======================= 920 * 921 * <p>Service Description: The RegionCommitments API. 922 * 923 * <p>Sample for RegionCommitmentsClient: 924 * 925 * <pre>{@code 926 * // This snippet has been automatically generated and should be regarded as a code template only. 927 * // It will require modifications to work: 928 * // - It may require correct/in-range values for request initialization. 929 * // - It may require specifying regional endpoints when creating the service client as shown in 930 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 931 * try (RegionCommitmentsClient regionCommitmentsClient = RegionCommitmentsClient.create()) { 932 * String project = "project-309310695"; 933 * String region = "region-934795532"; 934 * String commitment = "commitment1019005717"; 935 * Commitment response = regionCommitmentsClient.get(project, region, commitment); 936 * } 937 * }</pre> 938 * 939 * <p>======================= RegionDiskTypesClient ======================= 940 * 941 * <p>Service Description: The RegionDiskTypes API. 942 * 943 * <p>Sample for RegionDiskTypesClient: 944 * 945 * <pre>{@code 946 * // This snippet has been automatically generated and should be regarded as a code template only. 947 * // It will require modifications to work: 948 * // - It may require correct/in-range values for request initialization. 949 * // - It may require specifying regional endpoints when creating the service client as shown in 950 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 951 * try (RegionDiskTypesClient regionDiskTypesClient = RegionDiskTypesClient.create()) { 952 * String project = "project-309310695"; 953 * String region = "region-934795532"; 954 * String diskType = "diskType279771767"; 955 * DiskType response = regionDiskTypesClient.get(project, region, diskType); 956 * } 957 * }</pre> 958 * 959 * <p>======================= RegionDisksClient ======================= 960 * 961 * <p>Service Description: The RegionDisks API. 962 * 963 * <p>Sample for RegionDisksClient: 964 * 965 * <pre>{@code 966 * // This snippet has been automatically generated and should be regarded as a code template only. 967 * // It will require modifications to work: 968 * // - It may require correct/in-range values for request initialization. 969 * // - It may require specifying regional endpoints when creating the service client as shown in 970 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 971 * try (RegionDisksClient regionDisksClient = RegionDisksClient.create()) { 972 * String project = "project-309310695"; 973 * String region = "region-934795532"; 974 * String disk = "disk3083677"; 975 * Disk response = regionDisksClient.get(project, region, disk); 976 * } 977 * }</pre> 978 * 979 * <p>======================= RegionHealthCheckServicesClient ======================= 980 * 981 * <p>Service Description: The RegionHealthCheckServices API. 982 * 983 * <p>Sample for RegionHealthCheckServicesClient: 984 * 985 * <pre>{@code 986 * // This snippet has been automatically generated and should be regarded as a code template only. 987 * // It will require modifications to work: 988 * // - It may require correct/in-range values for request initialization. 989 * // - It may require specifying regional endpoints when creating the service client as shown in 990 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 991 * try (RegionHealthCheckServicesClient regionHealthCheckServicesClient = 992 * RegionHealthCheckServicesClient.create()) { 993 * String project = "project-309310695"; 994 * String region = "region-934795532"; 995 * String healthCheckService = "healthCheckService-917902071"; 996 * HealthCheckService response = 997 * regionHealthCheckServicesClient.get(project, region, healthCheckService); 998 * } 999 * }</pre> 1000 * 1001 * <p>======================= RegionHealthChecksClient ======================= 1002 * 1003 * <p>Service Description: The RegionHealthChecks API. 1004 * 1005 * <p>Sample for RegionHealthChecksClient: 1006 * 1007 * <pre>{@code 1008 * // This snippet has been automatically generated and should be regarded as a code template only. 1009 * // It will require modifications to work: 1010 * // - It may require correct/in-range values for request initialization. 1011 * // - It may require specifying regional endpoints when creating the service client as shown in 1012 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1013 * try (RegionHealthChecksClient regionHealthChecksClient = RegionHealthChecksClient.create()) { 1014 * String project = "project-309310695"; 1015 * String region = "region-934795532"; 1016 * String healthCheck = "healthCheck-1938093044"; 1017 * HealthCheck response = regionHealthChecksClient.get(project, region, healthCheck); 1018 * } 1019 * }</pre> 1020 * 1021 * <p>======================= RegionInstanceGroupManagersClient ======================= 1022 * 1023 * <p>Service Description: The RegionInstanceGroupManagers API. 1024 * 1025 * <p>Sample for RegionInstanceGroupManagersClient: 1026 * 1027 * <pre>{@code 1028 * // This snippet has been automatically generated and should be regarded as a code template only. 1029 * // It will require modifications to work: 1030 * // - It may require correct/in-range values for request initialization. 1031 * // - It may require specifying regional endpoints when creating the service client as shown in 1032 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1033 * try (RegionInstanceGroupManagersClient regionInstanceGroupManagersClient = 1034 * RegionInstanceGroupManagersClient.create()) { 1035 * String project = "project-309310695"; 1036 * String region = "region-934795532"; 1037 * String instanceGroupManager = "instanceGroupManager-388242077"; 1038 * InstanceGroupManager response = 1039 * regionInstanceGroupManagersClient.get(project, region, instanceGroupManager); 1040 * } 1041 * }</pre> 1042 * 1043 * <p>======================= RegionInstanceGroupsClient ======================= 1044 * 1045 * <p>Service Description: The RegionInstanceGroups API. 1046 * 1047 * <p>Sample for RegionInstanceGroupsClient: 1048 * 1049 * <pre>{@code 1050 * // This snippet has been automatically generated and should be regarded as a code template only. 1051 * // It will require modifications to work: 1052 * // - It may require correct/in-range values for request initialization. 1053 * // - It may require specifying regional endpoints when creating the service client as shown in 1054 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1055 * try (RegionInstanceGroupsClient regionInstanceGroupsClient = 1056 * RegionInstanceGroupsClient.create()) { 1057 * String project = "project-309310695"; 1058 * String region = "region-934795532"; 1059 * String instanceGroup = "instanceGroup-1404696854"; 1060 * InstanceGroup response = regionInstanceGroupsClient.get(project, region, instanceGroup); 1061 * } 1062 * }</pre> 1063 * 1064 * <p>======================= RegionInstanceTemplatesClient ======================= 1065 * 1066 * <p>Service Description: The RegionInstanceTemplates API. 1067 * 1068 * <p>Sample for RegionInstanceTemplatesClient: 1069 * 1070 * <pre>{@code 1071 * // This snippet has been automatically generated and should be regarded as a code template only. 1072 * // It will require modifications to work: 1073 * // - It may require correct/in-range values for request initialization. 1074 * // - It may require specifying regional endpoints when creating the service client as shown in 1075 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1076 * try (RegionInstanceTemplatesClient regionInstanceTemplatesClient = 1077 * RegionInstanceTemplatesClient.create()) { 1078 * String project = "project-309310695"; 1079 * String region = "region-934795532"; 1080 * String instanceTemplate = "instanceTemplate1009541167"; 1081 * InstanceTemplate response = 1082 * regionInstanceTemplatesClient.get(project, region, instanceTemplate); 1083 * } 1084 * }</pre> 1085 * 1086 * <p>======================= RegionInstancesClient ======================= 1087 * 1088 * <p>Service Description: The RegionInstances API. 1089 * 1090 * <p>Sample for RegionInstancesClient: 1091 * 1092 * <pre>{@code 1093 * // This snippet has been automatically generated and should be regarded as a code template only. 1094 * // It will require modifications to work: 1095 * // - It may require correct/in-range values for request initialization. 1096 * // - It may require specifying regional endpoints when creating the service client as shown in 1097 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1098 * try (RegionInstancesClient regionInstancesClient = RegionInstancesClient.create()) { 1099 * String project = "project-309310695"; 1100 * String region = "region-934795532"; 1101 * BulkInsertInstanceResource bulkInsertInstanceResourceResource = 1102 * BulkInsertInstanceResource.newBuilder().build(); 1103 * Operation response = 1104 * regionInstancesClient 1105 * .bulkInsertAsync(project, region, bulkInsertInstanceResourceResource) 1106 * .get(); 1107 * } 1108 * }</pre> 1109 * 1110 * <p>======================= RegionNetworkEndpointGroupsClient ======================= 1111 * 1112 * <p>Service Description: The RegionNetworkEndpointGroups API. 1113 * 1114 * <p>Sample for RegionNetworkEndpointGroupsClient: 1115 * 1116 * <pre>{@code 1117 * // This snippet has been automatically generated and should be regarded as a code template only. 1118 * // It will require modifications to work: 1119 * // - It may require correct/in-range values for request initialization. 1120 * // - It may require specifying regional endpoints when creating the service client as shown in 1121 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1122 * try (RegionNetworkEndpointGroupsClient regionNetworkEndpointGroupsClient = 1123 * RegionNetworkEndpointGroupsClient.create()) { 1124 * String project = "project-309310695"; 1125 * String region = "region-934795532"; 1126 * String networkEndpointGroup = "networkEndpointGroup-2120389028"; 1127 * NetworkEndpointGroup response = 1128 * regionNetworkEndpointGroupsClient.get(project, region, networkEndpointGroup); 1129 * } 1130 * }</pre> 1131 * 1132 * <p>======================= RegionNetworkFirewallPoliciesClient ======================= 1133 * 1134 * <p>Service Description: The RegionNetworkFirewallPolicies API. 1135 * 1136 * <p>Sample for RegionNetworkFirewallPoliciesClient: 1137 * 1138 * <pre>{@code 1139 * // This snippet has been automatically generated and should be regarded as a code template only. 1140 * // It will require modifications to work: 1141 * // - It may require correct/in-range values for request initialization. 1142 * // - It may require specifying regional endpoints when creating the service client as shown in 1143 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1144 * try (RegionNetworkFirewallPoliciesClient regionNetworkFirewallPoliciesClient = 1145 * RegionNetworkFirewallPoliciesClient.create()) { 1146 * String project = "project-309310695"; 1147 * String region = "region-934795532"; 1148 * String firewallPolicy = "firewallPolicy1819692626"; 1149 * FirewallPolicy response = 1150 * regionNetworkFirewallPoliciesClient.get(project, region, firewallPolicy); 1151 * } 1152 * }</pre> 1153 * 1154 * <p>======================= RegionNotificationEndpointsClient ======================= 1155 * 1156 * <p>Service Description: The RegionNotificationEndpoints API. 1157 * 1158 * <p>Sample for RegionNotificationEndpointsClient: 1159 * 1160 * <pre>{@code 1161 * // This snippet has been automatically generated and should be regarded as a code template only. 1162 * // It will require modifications to work: 1163 * // - It may require correct/in-range values for request initialization. 1164 * // - It may require specifying regional endpoints when creating the service client as shown in 1165 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1166 * try (RegionNotificationEndpointsClient regionNotificationEndpointsClient = 1167 * RegionNotificationEndpointsClient.create()) { 1168 * String project = "project-309310695"; 1169 * String region = "region-934795532"; 1170 * String notificationEndpoint = "notificationEndpoint-354029664"; 1171 * NotificationEndpoint response = 1172 * regionNotificationEndpointsClient.get(project, region, notificationEndpoint); 1173 * } 1174 * }</pre> 1175 * 1176 * <p>======================= RegionOperationsClient ======================= 1177 * 1178 * <p>Service Description: The RegionOperations API. 1179 * 1180 * <p>Sample for RegionOperationsClient: 1181 * 1182 * <pre>{@code 1183 * // This snippet has been automatically generated and should be regarded as a code template only. 1184 * // It will require modifications to work: 1185 * // - It may require correct/in-range values for request initialization. 1186 * // - It may require specifying regional endpoints when creating the service client as shown in 1187 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1188 * try (RegionOperationsClient regionOperationsClient = RegionOperationsClient.create()) { 1189 * String project = "project-309310695"; 1190 * String region = "region-934795532"; 1191 * String operation = "operation1662702951"; 1192 * DeleteRegionOperationResponse response = 1193 * regionOperationsClient.delete(project, region, operation); 1194 * } 1195 * }</pre> 1196 * 1197 * <p>======================= RegionSecurityPoliciesClient ======================= 1198 * 1199 * <p>Service Description: The RegionSecurityPolicies API. 1200 * 1201 * <p>Sample for RegionSecurityPoliciesClient: 1202 * 1203 * <pre>{@code 1204 * // This snippet has been automatically generated and should be regarded as a code template only. 1205 * // It will require modifications to work: 1206 * // - It may require correct/in-range values for request initialization. 1207 * // - It may require specifying regional endpoints when creating the service client as shown in 1208 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1209 * try (RegionSecurityPoliciesClient regionSecurityPoliciesClient = 1210 * RegionSecurityPoliciesClient.create()) { 1211 * String project = "project-309310695"; 1212 * String region = "region-934795532"; 1213 * String securityPolicy = "securityPolicy-788621166"; 1214 * SecurityPolicy response = regionSecurityPoliciesClient.get(project, region, securityPolicy); 1215 * } 1216 * }</pre> 1217 * 1218 * <p>======================= RegionSslCertificatesClient ======================= 1219 * 1220 * <p>Service Description: The RegionSslCertificates API. 1221 * 1222 * <p>Sample for RegionSslCertificatesClient: 1223 * 1224 * <pre>{@code 1225 * // This snippet has been automatically generated and should be regarded as a code template only. 1226 * // It will require modifications to work: 1227 * // - It may require correct/in-range values for request initialization. 1228 * // - It may require specifying regional endpoints when creating the service client as shown in 1229 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1230 * try (RegionSslCertificatesClient regionSslCertificatesClient = 1231 * RegionSslCertificatesClient.create()) { 1232 * String project = "project-309310695"; 1233 * String region = "region-934795532"; 1234 * String sslCertificate = "sslCertificate-1304941589"; 1235 * SslCertificate response = regionSslCertificatesClient.get(project, region, sslCertificate); 1236 * } 1237 * }</pre> 1238 * 1239 * <p>======================= RegionSslPoliciesClient ======================= 1240 * 1241 * <p>Service Description: The RegionSslPolicies API. 1242 * 1243 * <p>Sample for RegionSslPoliciesClient: 1244 * 1245 * <pre>{@code 1246 * // This snippet has been automatically generated and should be regarded as a code template only. 1247 * // It will require modifications to work: 1248 * // - It may require correct/in-range values for request initialization. 1249 * // - It may require specifying regional endpoints when creating the service client as shown in 1250 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1251 * try (RegionSslPoliciesClient regionSslPoliciesClient = RegionSslPoliciesClient.create()) { 1252 * String project = "project-309310695"; 1253 * String region = "region-934795532"; 1254 * String sslPolicy = "sslPolicy618174046"; 1255 * SslPolicy response = regionSslPoliciesClient.get(project, region, sslPolicy); 1256 * } 1257 * }</pre> 1258 * 1259 * <p>======================= RegionTargetHttpProxiesClient ======================= 1260 * 1261 * <p>Service Description: The RegionTargetHttpProxies API. 1262 * 1263 * <p>Sample for RegionTargetHttpProxiesClient: 1264 * 1265 * <pre>{@code 1266 * // This snippet has been automatically generated and should be regarded as a code template only. 1267 * // It will require modifications to work: 1268 * // - It may require correct/in-range values for request initialization. 1269 * // - It may require specifying regional endpoints when creating the service client as shown in 1270 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1271 * try (RegionTargetHttpProxiesClient regionTargetHttpProxiesClient = 1272 * RegionTargetHttpProxiesClient.create()) { 1273 * String project = "project-309310695"; 1274 * String region = "region-934795532"; 1275 * String targetHttpProxy = "targetHttpProxy-1944074187"; 1276 * TargetHttpProxy response = 1277 * regionTargetHttpProxiesClient.get(project, region, targetHttpProxy); 1278 * } 1279 * }</pre> 1280 * 1281 * <p>======================= RegionTargetHttpsProxiesClient ======================= 1282 * 1283 * <p>Service Description: The RegionTargetHttpsProxies API. 1284 * 1285 * <p>Sample for RegionTargetHttpsProxiesClient: 1286 * 1287 * <pre>{@code 1288 * // This snippet has been automatically generated and should be regarded as a code template only. 1289 * // It will require modifications to work: 1290 * // - It may require correct/in-range values for request initialization. 1291 * // - It may require specifying regional endpoints when creating the service client as shown in 1292 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1293 * try (RegionTargetHttpsProxiesClient regionTargetHttpsProxiesClient = 1294 * RegionTargetHttpsProxiesClient.create()) { 1295 * String project = "project-309310695"; 1296 * String region = "region-934795532"; 1297 * String targetHttpsProxy = "targetHttpsProxy833943732"; 1298 * TargetHttpsProxy response = 1299 * regionTargetHttpsProxiesClient.get(project, region, targetHttpsProxy); 1300 * } 1301 * }</pre> 1302 * 1303 * <p>======================= RegionTargetTcpProxiesClient ======================= 1304 * 1305 * <p>Service Description: The RegionTargetTcpProxies API. 1306 * 1307 * <p>Sample for RegionTargetTcpProxiesClient: 1308 * 1309 * <pre>{@code 1310 * // This snippet has been automatically generated and should be regarded as a code template only. 1311 * // It will require modifications to work: 1312 * // - It may require correct/in-range values for request initialization. 1313 * // - It may require specifying regional endpoints when creating the service client as shown in 1314 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1315 * try (RegionTargetTcpProxiesClient regionTargetTcpProxiesClient = 1316 * RegionTargetTcpProxiesClient.create()) { 1317 * String project = "project-309310695"; 1318 * String region = "region-934795532"; 1319 * String targetTcpProxy = "targetTcpProxy-337144898"; 1320 * TargetTcpProxy response = regionTargetTcpProxiesClient.get(project, region, targetTcpProxy); 1321 * } 1322 * }</pre> 1323 * 1324 * <p>======================= RegionUrlMapsClient ======================= 1325 * 1326 * <p>Service Description: The RegionUrlMaps API. 1327 * 1328 * <p>Sample for RegionUrlMapsClient: 1329 * 1330 * <pre>{@code 1331 * // This snippet has been automatically generated and should be regarded as a code template only. 1332 * // It will require modifications to work: 1333 * // - It may require correct/in-range values for request initialization. 1334 * // - It may require specifying regional endpoints when creating the service client as shown in 1335 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1336 * try (RegionUrlMapsClient regionUrlMapsClient = RegionUrlMapsClient.create()) { 1337 * String project = "project-309310695"; 1338 * String region = "region-934795532"; 1339 * String urlMap = "urlMap-836780691"; 1340 * UrlMap response = regionUrlMapsClient.get(project, region, urlMap); 1341 * } 1342 * }</pre> 1343 * 1344 * <p>======================= RegionsClient ======================= 1345 * 1346 * <p>Service Description: The Regions API. 1347 * 1348 * <p>Sample for RegionsClient: 1349 * 1350 * <pre>{@code 1351 * // This snippet has been automatically generated and should be regarded as a code template only. 1352 * // It will require modifications to work: 1353 * // - It may require correct/in-range values for request initialization. 1354 * // - It may require specifying regional endpoints when creating the service client as shown in 1355 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1356 * try (RegionsClient regionsClient = RegionsClient.create()) { 1357 * String project = "project-309310695"; 1358 * String region = "region-934795532"; 1359 * Region response = regionsClient.get(project, region); 1360 * } 1361 * }</pre> 1362 * 1363 * <p>======================= ReservationsClient ======================= 1364 * 1365 * <p>Service Description: The Reservations API. 1366 * 1367 * <p>Sample for ReservationsClient: 1368 * 1369 * <pre>{@code 1370 * // This snippet has been automatically generated and should be regarded as a code template only. 1371 * // It will require modifications to work: 1372 * // - It may require correct/in-range values for request initialization. 1373 * // - It may require specifying regional endpoints when creating the service client as shown in 1374 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1375 * try (ReservationsClient reservationsClient = ReservationsClient.create()) { 1376 * String project = "project-309310695"; 1377 * String zone = "zone3744684"; 1378 * String reservation = "reservation-1563081780"; 1379 * Reservation response = reservationsClient.get(project, zone, reservation); 1380 * } 1381 * }</pre> 1382 * 1383 * <p>======================= ResourcePoliciesClient ======================= 1384 * 1385 * <p>Service Description: The ResourcePolicies API. 1386 * 1387 * <p>Sample for ResourcePoliciesClient: 1388 * 1389 * <pre>{@code 1390 * // This snippet has been automatically generated and should be regarded as a code template only. 1391 * // It will require modifications to work: 1392 * // - It may require correct/in-range values for request initialization. 1393 * // - It may require specifying regional endpoints when creating the service client as shown in 1394 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1395 * try (ResourcePoliciesClient resourcePoliciesClient = ResourcePoliciesClient.create()) { 1396 * String project = "project-309310695"; 1397 * String region = "region-934795532"; 1398 * String resourcePolicy = "resourcePolicy-130903328"; 1399 * ResourcePolicy response = resourcePoliciesClient.get(project, region, resourcePolicy); 1400 * } 1401 * }</pre> 1402 * 1403 * <p>======================= RoutersClient ======================= 1404 * 1405 * <p>Service Description: The Routers API. 1406 * 1407 * <p>Sample for RoutersClient: 1408 * 1409 * <pre>{@code 1410 * // This snippet has been automatically generated and should be regarded as a code template only. 1411 * // It will require modifications to work: 1412 * // - It may require correct/in-range values for request initialization. 1413 * // - It may require specifying regional endpoints when creating the service client as shown in 1414 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1415 * try (RoutersClient routersClient = RoutersClient.create()) { 1416 * String project = "project-309310695"; 1417 * String region = "region-934795532"; 1418 * String router = "router-925132983"; 1419 * Router response = routersClient.get(project, region, router); 1420 * } 1421 * }</pre> 1422 * 1423 * <p>======================= RoutesClient ======================= 1424 * 1425 * <p>Service Description: The Routes API. 1426 * 1427 * <p>Sample for RoutesClient: 1428 * 1429 * <pre>{@code 1430 * // This snippet has been automatically generated and should be regarded as a code template only. 1431 * // It will require modifications to work: 1432 * // - It may require correct/in-range values for request initialization. 1433 * // - It may require specifying regional endpoints when creating the service client as shown in 1434 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1435 * try (RoutesClient routesClient = RoutesClient.create()) { 1436 * String project = "project-309310695"; 1437 * String route = "route108704329"; 1438 * Route response = routesClient.get(project, route); 1439 * } 1440 * }</pre> 1441 * 1442 * <p>======================= SecurityPoliciesClient ======================= 1443 * 1444 * <p>Service Description: The SecurityPolicies API. 1445 * 1446 * <p>Sample for SecurityPoliciesClient: 1447 * 1448 * <pre>{@code 1449 * // This snippet has been automatically generated and should be regarded as a code template only. 1450 * // It will require modifications to work: 1451 * // - It may require correct/in-range values for request initialization. 1452 * // - It may require specifying regional endpoints when creating the service client as shown in 1453 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1454 * try (SecurityPoliciesClient securityPoliciesClient = SecurityPoliciesClient.create()) { 1455 * String project = "project-309310695"; 1456 * String securityPolicy = "securityPolicy-788621166"; 1457 * SecurityPolicy response = securityPoliciesClient.get(project, securityPolicy); 1458 * } 1459 * }</pre> 1460 * 1461 * <p>======================= ServiceAttachmentsClient ======================= 1462 * 1463 * <p>Service Description: The ServiceAttachments API. 1464 * 1465 * <p>Sample for ServiceAttachmentsClient: 1466 * 1467 * <pre>{@code 1468 * // This snippet has been automatically generated and should be regarded as a code template only. 1469 * // It will require modifications to work: 1470 * // - It may require correct/in-range values for request initialization. 1471 * // - It may require specifying regional endpoints when creating the service client as shown in 1472 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1473 * try (ServiceAttachmentsClient serviceAttachmentsClient = ServiceAttachmentsClient.create()) { 1474 * String project = "project-309310695"; 1475 * String region = "region-934795532"; 1476 * String serviceAttachment = "serviceAttachment-398467656"; 1477 * ServiceAttachment response = serviceAttachmentsClient.get(project, region, serviceAttachment); 1478 * } 1479 * }</pre> 1480 * 1481 * <p>======================= SnapshotsClient ======================= 1482 * 1483 * <p>Service Description: The Snapshots API. 1484 * 1485 * <p>Sample for SnapshotsClient: 1486 * 1487 * <pre>{@code 1488 * // This snippet has been automatically generated and should be regarded as a code template only. 1489 * // It will require modifications to work: 1490 * // - It may require correct/in-range values for request initialization. 1491 * // - It may require specifying regional endpoints when creating the service client as shown in 1492 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1493 * try (SnapshotsClient snapshotsClient = SnapshotsClient.create()) { 1494 * String project = "project-309310695"; 1495 * String snapshot = "snapshot284874180"; 1496 * Snapshot response = snapshotsClient.get(project, snapshot); 1497 * } 1498 * }</pre> 1499 * 1500 * <p>======================= SslCertificatesClient ======================= 1501 * 1502 * <p>Service Description: The SslCertificates API. 1503 * 1504 * <p>Sample for SslCertificatesClient: 1505 * 1506 * <pre>{@code 1507 * // This snippet has been automatically generated and should be regarded as a code template only. 1508 * // It will require modifications to work: 1509 * // - It may require correct/in-range values for request initialization. 1510 * // - It may require specifying regional endpoints when creating the service client as shown in 1511 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1512 * try (SslCertificatesClient sslCertificatesClient = SslCertificatesClient.create()) { 1513 * String project = "project-309310695"; 1514 * String sslCertificate = "sslCertificate-1304941589"; 1515 * SslCertificate response = sslCertificatesClient.get(project, sslCertificate); 1516 * } 1517 * }</pre> 1518 * 1519 * <p>======================= SslPoliciesClient ======================= 1520 * 1521 * <p>Service Description: The SslPolicies API. 1522 * 1523 * <p>Sample for SslPoliciesClient: 1524 * 1525 * <pre>{@code 1526 * // This snippet has been automatically generated and should be regarded as a code template only. 1527 * // It will require modifications to work: 1528 * // - It may require correct/in-range values for request initialization. 1529 * // - It may require specifying regional endpoints when creating the service client as shown in 1530 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1531 * try (SslPoliciesClient sslPoliciesClient = SslPoliciesClient.create()) { 1532 * String project = "project-309310695"; 1533 * String sslPolicy = "sslPolicy618174046"; 1534 * SslPolicy response = sslPoliciesClient.get(project, sslPolicy); 1535 * } 1536 * }</pre> 1537 * 1538 * <p>======================= SubnetworksClient ======================= 1539 * 1540 * <p>Service Description: The Subnetworks API. 1541 * 1542 * <p>Sample for SubnetworksClient: 1543 * 1544 * <pre>{@code 1545 * // This snippet has been automatically generated and should be regarded as a code template only. 1546 * // It will require modifications to work: 1547 * // - It may require correct/in-range values for request initialization. 1548 * // - It may require specifying regional endpoints when creating the service client as shown in 1549 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1550 * try (SubnetworksClient subnetworksClient = SubnetworksClient.create()) { 1551 * String project = "project-309310695"; 1552 * String region = "region-934795532"; 1553 * String subnetwork = "subnetwork-1302785042"; 1554 * Subnetwork response = subnetworksClient.get(project, region, subnetwork); 1555 * } 1556 * }</pre> 1557 * 1558 * <p>======================= TargetGrpcProxiesClient ======================= 1559 * 1560 * <p>Service Description: The TargetGrpcProxies API. 1561 * 1562 * <p>Sample for TargetGrpcProxiesClient: 1563 * 1564 * <pre>{@code 1565 * // This snippet has been automatically generated and should be regarded as a code template only. 1566 * // It will require modifications to work: 1567 * // - It may require correct/in-range values for request initialization. 1568 * // - It may require specifying regional endpoints when creating the service client as shown in 1569 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1570 * try (TargetGrpcProxiesClient targetGrpcProxiesClient = TargetGrpcProxiesClient.create()) { 1571 * String project = "project-309310695"; 1572 * String targetGrpcProxy = "targetGrpcProxy1045500511"; 1573 * TargetGrpcProxy response = targetGrpcProxiesClient.get(project, targetGrpcProxy); 1574 * } 1575 * }</pre> 1576 * 1577 * <p>======================= TargetHttpProxiesClient ======================= 1578 * 1579 * <p>Service Description: The TargetHttpProxies API. 1580 * 1581 * <p>Sample for TargetHttpProxiesClient: 1582 * 1583 * <pre>{@code 1584 * // This snippet has been automatically generated and should be regarded as a code template only. 1585 * // It will require modifications to work: 1586 * // - It may require correct/in-range values for request initialization. 1587 * // - It may require specifying regional endpoints when creating the service client as shown in 1588 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1589 * try (TargetHttpProxiesClient targetHttpProxiesClient = TargetHttpProxiesClient.create()) { 1590 * String project = "project-309310695"; 1591 * String targetHttpProxy = "targetHttpProxy-1944074187"; 1592 * TargetHttpProxy response = targetHttpProxiesClient.get(project, targetHttpProxy); 1593 * } 1594 * }</pre> 1595 * 1596 * <p>======================= TargetHttpsProxiesClient ======================= 1597 * 1598 * <p>Service Description: The TargetHttpsProxies API. 1599 * 1600 * <p>Sample for TargetHttpsProxiesClient: 1601 * 1602 * <pre>{@code 1603 * // This snippet has been automatically generated and should be regarded as a code template only. 1604 * // It will require modifications to work: 1605 * // - It may require correct/in-range values for request initialization. 1606 * // - It may require specifying regional endpoints when creating the service client as shown in 1607 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1608 * try (TargetHttpsProxiesClient targetHttpsProxiesClient = TargetHttpsProxiesClient.create()) { 1609 * String project = "project-309310695"; 1610 * String targetHttpsProxy = "targetHttpsProxy833943732"; 1611 * TargetHttpsProxy response = targetHttpsProxiesClient.get(project, targetHttpsProxy); 1612 * } 1613 * }</pre> 1614 * 1615 * <p>======================= TargetInstancesClient ======================= 1616 * 1617 * <p>Service Description: The TargetInstances API. 1618 * 1619 * <p>Sample for TargetInstancesClient: 1620 * 1621 * <pre>{@code 1622 * // This snippet has been automatically generated and should be regarded as a code template only. 1623 * // It will require modifications to work: 1624 * // - It may require correct/in-range values for request initialization. 1625 * // - It may require specifying regional endpoints when creating the service client as shown in 1626 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1627 * try (TargetInstancesClient targetInstancesClient = TargetInstancesClient.create()) { 1628 * String project = "project-309310695"; 1629 * String zone = "zone3744684"; 1630 * String targetInstance = "targetInstance-1036957370"; 1631 * TargetInstance response = targetInstancesClient.get(project, zone, targetInstance); 1632 * } 1633 * }</pre> 1634 * 1635 * <p>======================= TargetPoolsClient ======================= 1636 * 1637 * <p>Service Description: The TargetPools API. 1638 * 1639 * <p>Sample for TargetPoolsClient: 1640 * 1641 * <pre>{@code 1642 * // This snippet has been automatically generated and should be regarded as a code template only. 1643 * // It will require modifications to work: 1644 * // - It may require correct/in-range values for request initialization. 1645 * // - It may require specifying regional endpoints when creating the service client as shown in 1646 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1647 * try (TargetPoolsClient targetPoolsClient = TargetPoolsClient.create()) { 1648 * String project = "project-309310695"; 1649 * String region = "region-934795532"; 1650 * String targetPool = "targetPool486493517"; 1651 * TargetPool response = targetPoolsClient.get(project, region, targetPool); 1652 * } 1653 * }</pre> 1654 * 1655 * <p>======================= TargetSslProxiesClient ======================= 1656 * 1657 * <p>Service Description: The TargetSslProxies API. 1658 * 1659 * <p>Sample for TargetSslProxiesClient: 1660 * 1661 * <pre>{@code 1662 * // This snippet has been automatically generated and should be regarded as a code template only. 1663 * // It will require modifications to work: 1664 * // - It may require correct/in-range values for request initialization. 1665 * // - It may require specifying regional endpoints when creating the service client as shown in 1666 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1667 * try (TargetSslProxiesClient targetSslProxiesClient = TargetSslProxiesClient.create()) { 1668 * String project = "project-309310695"; 1669 * String targetSslProxy = "targetSslProxy-879314829"; 1670 * TargetSslProxy response = targetSslProxiesClient.get(project, targetSslProxy); 1671 * } 1672 * }</pre> 1673 * 1674 * <p>======================= TargetTcpProxiesClient ======================= 1675 * 1676 * <p>Service Description: The TargetTcpProxies API. 1677 * 1678 * <p>Sample for TargetTcpProxiesClient: 1679 * 1680 * <pre>{@code 1681 * // This snippet has been automatically generated and should be regarded as a code template only. 1682 * // It will require modifications to work: 1683 * // - It may require correct/in-range values for request initialization. 1684 * // - It may require specifying regional endpoints when creating the service client as shown in 1685 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1686 * try (TargetTcpProxiesClient targetTcpProxiesClient = TargetTcpProxiesClient.create()) { 1687 * String project = "project-309310695"; 1688 * String targetTcpProxy = "targetTcpProxy-337144898"; 1689 * TargetTcpProxy response = targetTcpProxiesClient.get(project, targetTcpProxy); 1690 * } 1691 * }</pre> 1692 * 1693 * <p>======================= TargetVpnGatewaysClient ======================= 1694 * 1695 * <p>Service Description: The TargetVpnGateways API. 1696 * 1697 * <p>Sample for TargetVpnGatewaysClient: 1698 * 1699 * <pre>{@code 1700 * // This snippet has been automatically generated and should be regarded as a code template only. 1701 * // It will require modifications to work: 1702 * // - It may require correct/in-range values for request initialization. 1703 * // - It may require specifying regional endpoints when creating the service client as shown in 1704 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1705 * try (TargetVpnGatewaysClient targetVpnGatewaysClient = TargetVpnGatewaysClient.create()) { 1706 * String project = "project-309310695"; 1707 * String region = "region-934795532"; 1708 * String targetVpnGateway = "targetVpnGateway935274273"; 1709 * TargetVpnGateway response = targetVpnGatewaysClient.get(project, region, targetVpnGateway); 1710 * } 1711 * }</pre> 1712 * 1713 * <p>======================= UrlMapsClient ======================= 1714 * 1715 * <p>Service Description: The UrlMaps API. 1716 * 1717 * <p>Sample for UrlMapsClient: 1718 * 1719 * <pre>{@code 1720 * // This snippet has been automatically generated and should be regarded as a code template only. 1721 * // It will require modifications to work: 1722 * // - It may require correct/in-range values for request initialization. 1723 * // - It may require specifying regional endpoints when creating the service client as shown in 1724 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1725 * try (UrlMapsClient urlMapsClient = UrlMapsClient.create()) { 1726 * String project = "project-309310695"; 1727 * String urlMap = "urlMap-836780691"; 1728 * UrlMap response = urlMapsClient.get(project, urlMap); 1729 * } 1730 * }</pre> 1731 * 1732 * <p>======================= VpnGatewaysClient ======================= 1733 * 1734 * <p>Service Description: The VpnGateways API. 1735 * 1736 * <p>Sample for VpnGatewaysClient: 1737 * 1738 * <pre>{@code 1739 * // This snippet has been automatically generated and should be regarded as a code template only. 1740 * // It will require modifications to work: 1741 * // - It may require correct/in-range values for request initialization. 1742 * // - It may require specifying regional endpoints when creating the service client as shown in 1743 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1744 * try (VpnGatewaysClient vpnGatewaysClient = VpnGatewaysClient.create()) { 1745 * String project = "project-309310695"; 1746 * String region = "region-934795532"; 1747 * String vpnGateway = "vpnGateway1920916144"; 1748 * VpnGateway response = vpnGatewaysClient.get(project, region, vpnGateway); 1749 * } 1750 * }</pre> 1751 * 1752 * <p>======================= VpnTunnelsClient ======================= 1753 * 1754 * <p>Service Description: The VpnTunnels API. 1755 * 1756 * <p>Sample for VpnTunnelsClient: 1757 * 1758 * <pre>{@code 1759 * // This snippet has been automatically generated and should be regarded as a code template only. 1760 * // It will require modifications to work: 1761 * // - It may require correct/in-range values for request initialization. 1762 * // - It may require specifying regional endpoints when creating the service client as shown in 1763 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1764 * try (VpnTunnelsClient vpnTunnelsClient = VpnTunnelsClient.create()) { 1765 * String project = "project-309310695"; 1766 * String region = "region-934795532"; 1767 * String vpnTunnel = "vpnTunnel452443772"; 1768 * VpnTunnel response = vpnTunnelsClient.get(project, region, vpnTunnel); 1769 * } 1770 * }</pre> 1771 * 1772 * <p>======================= ZoneOperationsClient ======================= 1773 * 1774 * <p>Service Description: The ZoneOperations API. 1775 * 1776 * <p>Sample for ZoneOperationsClient: 1777 * 1778 * <pre>{@code 1779 * // This snippet has been automatically generated and should be regarded as a code template only. 1780 * // It will require modifications to work: 1781 * // - It may require correct/in-range values for request initialization. 1782 * // - It may require specifying regional endpoints when creating the service client as shown in 1783 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1784 * try (ZoneOperationsClient zoneOperationsClient = ZoneOperationsClient.create()) { 1785 * String project = "project-309310695"; 1786 * String zone = "zone3744684"; 1787 * String operation = "operation1662702951"; 1788 * DeleteZoneOperationResponse response = zoneOperationsClient.delete(project, zone, operation); 1789 * } 1790 * }</pre> 1791 * 1792 * <p>======================= ZonesClient ======================= 1793 * 1794 * <p>Service Description: The Zones API. 1795 * 1796 * <p>Sample for ZonesClient: 1797 * 1798 * <pre>{@code 1799 * // This snippet has been automatically generated and should be regarded as a code template only. 1800 * // It will require modifications to work: 1801 * // - It may require correct/in-range values for request initialization. 1802 * // - It may require specifying regional endpoints when creating the service client as shown in 1803 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 1804 * try (ZonesClient zonesClient = ZonesClient.create()) { 1805 * String project = "project-309310695"; 1806 * String zone = "zone3744684"; 1807 * Zone response = zonesClient.get(project, zone); 1808 * } 1809 * }</pre> 1810 */ 1811 @Generated("by gapic-generator-java") 1812 package com.google.cloud.compute.v1; 1813 1814 import javax.annotation.Generated; 1815