{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -82,6 +83,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AcceleratorTypesSettings acceleratorTypesSettings = * AcceleratorTypesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -93,6 +96,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AcceleratorTypesSettings acceleratorTypesSettings = * AcceleratorTypesSettings.newBuilder().setEndpoint(myEndpoint).build(); * AcceleratorTypesClient acceleratorTypesClient = @@ -124,7 +129,6 @@ public static final AcceleratorTypesClient create(AcceleratorTypesSettings setti * Constructs an instance of AcceleratorTypesClient, using the given stub for making calls. This * is for advanced usage - prefer using create(AcceleratorTypesSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AcceleratorTypesClient create(AcceleratorTypesStub stub) { return new AcceleratorTypesClient(stub); } @@ -139,7 +143,6 @@ protected AcceleratorTypesClient(AcceleratorTypesSettings settings) throws IOExc this.stub = ((AcceleratorTypesStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AcceleratorTypesClient(AcceleratorTypesStub stub) { this.settings = null; this.stub = stub; @@ -149,7 +152,6 @@ public final AcceleratorTypesSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AcceleratorTypesStub getStub() { return stub; } @@ -161,6 +163,8 @@ public AcceleratorTypesStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * String project = "project-309310695"; * for (Map.Entryelement : @@ -186,6 +190,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * AggregatedListAcceleratorTypesRequest request = * AggregatedListAcceleratorTypesRequest.newBuilder() @@ -219,6 +225,8 @@ public final AggregatedListPagedResponse aggregatedList( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * AggregatedListAcceleratorTypesRequest request = * AggregatedListAcceleratorTypesRequest.newBuilder() @@ -251,6 +259,8 @@ public final AggregatedListPagedResponse aggregatedList( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * AggregatedListAcceleratorTypesRequest request = * AggregatedListAcceleratorTypesRequest.newBuilder() @@ -265,7 +275,7 @@ public final AggregatedListPagedResponse aggregatedList( * while (true) { * AcceleratorTypeAggregatedList response = * acceleratorTypesClient.aggregatedListCallable().call(request); - * for (Map.Entryelement : response.getResponsesList()) { + * for (Map.Entry element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -290,6 +300,8 @@ public final AggregatedListPagedResponse aggregatedList( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -320,6 +332,8 @@ public final AcceleratorType get(String project, String zone, String accelerator *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * GetAcceleratorTypeRequest request = * GetAcceleratorTypeRequest.newBuilder() @@ -345,6 +359,8 @@ public final AcceleratorType get(GetAcceleratorTypeRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * GetAcceleratorTypeRequest request = * GetAcceleratorTypeRequest.newBuilder() @@ -369,6 +385,8 @@ public final UnaryCallablegetCallab * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -395,6 +413,8 @@ public final ListPagedResponse list(String project, String zone) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * ListAcceleratorTypesRequest request = * ListAcceleratorTypesRequest.newBuilder() @@ -426,6 +446,8 @@ public final ListPagedResponse list(ListAcceleratorTypesRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * ListAcceleratorTypesRequest request = * ListAcceleratorTypesRequest.newBuilder() @@ -457,6 +479,8 @@ public final UnaryCallablelistP * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { * ListAcceleratorTypesRequest request = * ListAcceleratorTypesRequest.newBuilder() @@ -470,7 +494,7 @@ public final UnaryCallablelistP * .build(); * while (true) { * AcceleratorTypeList response = acceleratorTypesClient.listCallable().call(request); - * for (AcceleratorType element : response.getResponsesList()) { + * for (AcceleratorType element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java index b503178ad..044c93f93 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,8 @@ * For example, to set the total timeout of get to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AcceleratorTypesSettings.Builder acceleratorTypesSettingsBuilder = * AcceleratorTypesSettings.newBuilder(); * acceleratorTypesSettingsBuilder diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java index 1436bf957..1ee3405c4 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,8 @@ * calls that map to API methods. Sample code to get started: * *{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * String project = "project-309310695"; * String region = "region-934795532"; @@ -81,6 +83,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AddressesSettings addressesSettings = * AddressesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -91,6 +95,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AddressesSettings addressesSettings = * AddressesSettings.newBuilder().setEndpoint(myEndpoint).build(); * AddressesClient addressesClient = AddressesClient.create(addressesSettings); @@ -120,7 +126,6 @@ public static final AddressesClient create(AddressesSettings settings) throws IO * Constructs an instance of AddressesClient, using the given stub for making calls. This is for * advanced usage - prefer using create(AddressesSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AddressesClient create(AddressesStub stub) { return new AddressesClient(stub); } @@ -134,7 +139,6 @@ protected AddressesClient(AddressesSettings settings) throws IOException { this.stub = ((AddressesStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AddressesClient(AddressesStub stub) { this.settings = null; this.stub = stub; @@ -144,7 +148,6 @@ public final AddressesSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AddressesStub getStub() { return stub; } @@ -156,6 +159,8 @@ public AddressesStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * String project = "project-309310695"; * for (Map.Entryelement : @@ -181,6 +186,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * AggregatedListAddressesRequest request = * AggregatedListAddressesRequest.newBuilder() @@ -213,6 +220,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * AggregatedListAddressesRequest request = * AggregatedListAddressesRequest.newBuilder() @@ -245,6 +254,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * AggregatedListAddressesRequest request = * AggregatedListAddressesRequest.newBuilder() @@ -258,7 +269,7 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR * .build(); * while (true) { * AddressAggregatedList response = addressesClient.aggregatedListCallable().call(request); - * for (Map.Entryelement : response.getResponsesList()) { + * for (Map.Entry element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -283,6 +294,8 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * String project = "project-309310695"; * String region = "region-934795532"; @@ -314,6 +327,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * DeleteAddressRequest request = * DeleteAddressRequest.newBuilder() @@ -342,6 +357,8 @@ public final OperationFuturedeleteAsync(DeleteAddressRequ * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * DeleteAddressRequest request = * DeleteAddressRequest.newBuilder() @@ -369,6 +386,8 @@ public final OperationFuturedeleteAsync(DeleteAddressRequ * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * DeleteAddressRequest request = * DeleteAddressRequest.newBuilder() @@ -394,6 +413,8 @@ public final UnaryCallabledeleteCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * String project = "project-309310695"; * String region = "region-934795532"; @@ -424,6 +445,8 @@ public final Address get(String project, String region, String address) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * GetAddressRequest request = * GetAddressRequest.newBuilder() @@ -449,6 +472,8 @@ public final Address get(GetAddressRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * GetAddressRequest request = * GetAddressRequest.newBuilder() @@ -473,6 +498,8 @@ public final UnaryCallablegetCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * String project = "project-309310695"; * String region = "region-934795532"; @@ -504,6 +531,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * InsertAddressRequest request = * InsertAddressRequest.newBuilder() @@ -532,6 +561,8 @@ public final OperationFutureinsertAsync(InsertAddressRequ * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * InsertAddressRequest request = * InsertAddressRequest.newBuilder() @@ -559,6 +590,8 @@ public final OperationFutureinsertAsync(InsertAddressRequ * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * InsertAddressRequest request = * InsertAddressRequest.newBuilder() @@ -584,6 +617,8 @@ public final UnaryCallableinsertCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * String project = "project-309310695"; * String region = "region-934795532"; @@ -610,6 +645,8 @@ public final ListPagedResponse list(String project, String region) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * ListAddressesRequest request = * ListAddressesRequest.newBuilder() @@ -641,6 +678,8 @@ public final ListPagedResponse list(ListAddressesRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * ListAddressesRequest request = * ListAddressesRequest.newBuilder() @@ -671,6 +710,8 @@ public final UnaryCallablelistPagedCal * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AddressesClient addressesClient = AddressesClient.create()) { * ListAddressesRequest request = * ListAddressesRequest.newBuilder() @@ -684,7 +725,7 @@ public final UnaryCallablelistPagedCal * .build(); * while (true) { * AddressList response = addressesClient.listCallable().call(request); - * for (Address element : response.getResponsesList()) { + * for (Address element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java index 09da88216..462863490 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,6 +54,8 @@ * For example, to set the total timeout of get to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AddressesSettings.Builder addressesSettingsBuilder = AddressesSettings.newBuilder(); * addressesSettingsBuilder * .getSettings() diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java index 9a9728712..b8e6048ed 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,8 @@ * calls that map to API methods. Sample code to get started: * *{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -81,6 +83,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AutoscalersSettings autoscalersSettings = * AutoscalersSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -91,6 +95,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AutoscalersSettings autoscalersSettings = * AutoscalersSettings.newBuilder().setEndpoint(myEndpoint).build(); * AutoscalersClient autoscalersClient = AutoscalersClient.create(autoscalersSettings); @@ -120,7 +126,6 @@ public static final AutoscalersClient create(AutoscalersSettings settings) throw * Constructs an instance of AutoscalersClient, using the given stub for making calls. This is for * advanced usage - prefer using create(AutoscalersSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AutoscalersClient create(AutoscalersStub stub) { return new AutoscalersClient(stub); } @@ -135,7 +140,6 @@ protected AutoscalersClient(AutoscalersSettings settings) throws IOException { this.stub = ((AutoscalersStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AutoscalersClient(AutoscalersStub stub) { this.settings = null; this.stub = stub; @@ -145,7 +149,6 @@ public final AutoscalersSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AutoscalersStub getStub() { return stub; } @@ -157,6 +160,8 @@ public AutoscalersStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * for (Map.Entryelement : @@ -182,6 +187,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * AggregatedListAutoscalersRequest request = * AggregatedListAutoscalersRequest.newBuilder() @@ -215,6 +222,8 @@ public final AggregatedListPagedResponse aggregatedList( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * AggregatedListAutoscalersRequest request = * AggregatedListAutoscalersRequest.newBuilder() @@ -247,6 +256,8 @@ public final AggregatedListPagedResponse aggregatedList( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * AggregatedListAutoscalersRequest request = * AggregatedListAutoscalersRequest.newBuilder() @@ -261,7 +272,7 @@ public final AggregatedListPagedResponse aggregatedList( * while (true) { * AutoscalerAggregatedList response = * autoscalersClient.aggregatedListCallable().call(request); - * for (Map.Entryelement : response.getResponsesList()) { + * for (Map.Entry element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -286,6 +297,8 @@ public final AggregatedListPagedResponse aggregatedList( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -317,6 +330,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * DeleteAutoscalerRequest request = * DeleteAutoscalerRequest.newBuilder() @@ -345,6 +360,8 @@ public final OperationFuturedeleteAsync(DeleteAutoscalerR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * DeleteAutoscalerRequest request = * DeleteAutoscalerRequest.newBuilder() @@ -372,6 +389,8 @@ public final OperationFuturedeleteAsync(DeleteAutoscalerR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * DeleteAutoscalerRequest request = * DeleteAutoscalerRequest.newBuilder() @@ -398,6 +417,8 @@ public final UnaryCallabledeleteCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -429,6 +450,8 @@ public final Autoscaler get(String project, String zone, String autoscaler) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * GetAutoscalerRequest request = * GetAutoscalerRequest.newBuilder() @@ -455,6 +478,8 @@ public final Autoscaler get(GetAutoscalerRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * GetAutoscalerRequest request = * GetAutoscalerRequest.newBuilder() @@ -479,6 +504,8 @@ public final UnaryCallablegetCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -510,6 +537,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * InsertAutoscalerRequest request = * InsertAutoscalerRequest.newBuilder() @@ -538,6 +567,8 @@ public final OperationFutureinsertAsync(InsertAutoscalerR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * InsertAutoscalerRequest request = * InsertAutoscalerRequest.newBuilder() @@ -565,6 +596,8 @@ public final OperationFutureinsertAsync(InsertAutoscalerR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * InsertAutoscalerRequest request = * InsertAutoscalerRequest.newBuilder() @@ -590,6 +623,8 @@ public final UnaryCallableinsertCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -616,6 +651,8 @@ public final ListPagedResponse list(String project, String zone) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * ListAutoscalersRequest request = * ListAutoscalersRequest.newBuilder() @@ -647,6 +684,8 @@ public final ListPagedResponse list(ListAutoscalersRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * ListAutoscalersRequest request = * ListAutoscalersRequest.newBuilder() @@ -677,6 +716,8 @@ public final UnaryCallablelistPagedC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * ListAutoscalersRequest request = * ListAutoscalersRequest.newBuilder() @@ -690,7 +731,7 @@ public final UnaryCallablelistPagedC * .build(); * while (true) { * AutoscalerList response = autoscalersClient.listCallable().call(request); - * for (Autoscaler element : response.getResponsesList()) { + * for (Autoscaler element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -715,6 +756,8 @@ public final UnaryCallable listCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -747,6 +790,8 @@ public final OperationFuturepatchAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * PatchAutoscalerRequest request = * PatchAutoscalerRequest.newBuilder() @@ -777,6 +822,8 @@ public final OperationFuturepatchAsync(PatchAutoscalerReq * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * PatchAutoscalerRequest request = * PatchAutoscalerRequest.newBuilder() @@ -806,6 +853,8 @@ public final OperationFuturepatchAsync(PatchAutoscalerReq * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * PatchAutoscalerRequest request = * PatchAutoscalerRequest.newBuilder() @@ -832,6 +881,8 @@ public final UnaryCallablepatchCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * String project = "project-309310695"; * String zone = "zone3744684"; @@ -863,6 +914,8 @@ public final OperationFutureupdateAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * UpdateAutoscalerRequest request = * UpdateAutoscalerRequest.newBuilder() @@ -892,6 +945,8 @@ public final OperationFutureupdateAsync(UpdateAutoscalerR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * UpdateAutoscalerRequest request = * UpdateAutoscalerRequest.newBuilder() @@ -920,6 +975,8 @@ public final OperationFutureupdateAsync(UpdateAutoscalerR * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AutoscalersClient autoscalersClient = AutoscalersClient.create()) { * UpdateAutoscalerRequest request = * UpdateAutoscalerRequest.newBuilder() diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java index db3821079..60a046061 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,6 +54,8 @@ *For example, to set the total timeout of get to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AutoscalersSettings.Builder autoscalersSettingsBuilder = AutoscalersSettings.newBuilder(); * autoscalersSettingsBuilder * .getSettings() diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java index 8f73432ad..da3c41edc 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,6 +43,8 @@ * calls that map to API methods. Sample code to get started: * *{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -79,6 +81,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * BackendBucketsSettings backendBucketsSettings = * BackendBucketsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -89,6 +93,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * BackendBucketsSettings backendBucketsSettings = * BackendBucketsSettings.newBuilder().setEndpoint(myEndpoint).build(); * BackendBucketsClient backendBucketsClient = BackendBucketsClient.create(backendBucketsSettings); @@ -119,7 +125,6 @@ public static final BackendBucketsClient create(BackendBucketsSettings settings) * Constructs an instance of BackendBucketsClient, using the given stub for making calls. This is * for advanced usage - prefer using create(BackendBucketsSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final BackendBucketsClient create(BackendBucketsStub stub) { return new BackendBucketsClient(stub); } @@ -134,7 +139,6 @@ protected BackendBucketsClient(BackendBucketsSettings settings) throws IOExcepti this.stub = ((BackendBucketsStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected BackendBucketsClient(BackendBucketsStub stub) { this.settings = null; this.stub = stub; @@ -144,7 +148,6 @@ public final BackendBucketsSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public BackendBucketsStub getStub() { return stub; } @@ -156,6 +159,8 @@ public BackendBucketsStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -191,6 +196,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * AddSignedUrlKeyBackendBucketRequest request = * AddSignedUrlKeyBackendBucketRequest.newBuilder() @@ -220,6 +227,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * AddSignedUrlKeyBackendBucketRequest request = * AddSignedUrlKeyBackendBucketRequest.newBuilder() @@ -247,6 +256,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * AddSignedUrlKeyBackendBucketRequest request = * AddSignedUrlKeyBackendBucketRequest.newBuilder() @@ -274,6 +285,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -302,6 +315,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * DeleteBackendBucketRequest request = * DeleteBackendBucketRequest.newBuilder() @@ -330,6 +345,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * DeleteBackendBucketRequest request = * DeleteBackendBucketRequest.newBuilder() @@ -356,6 +373,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * DeleteBackendBucketRequest request = * DeleteBackendBucketRequest.newBuilder() @@ -380,6 +399,8 @@ public final UnaryCallabledeleteCallable * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -413,6 +434,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * DeleteSignedUrlKeyBackendBucketRequest request = * DeleteSignedUrlKeyBackendBucketRequest.newBuilder() @@ -442,6 +465,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * DeleteSignedUrlKeyBackendBucketRequest request = * DeleteSignedUrlKeyBackendBucketRequest.newBuilder() @@ -469,6 +494,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * DeleteSignedUrlKeyBackendBucketRequest request = * DeleteSignedUrlKeyBackendBucketRequest.newBuilder() @@ -497,6 +524,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -525,6 +554,8 @@ public final BackendBucket get(String project, String backendBucket) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * GetBackendBucketRequest request = * GetBackendBucketRequest.newBuilder() @@ -550,6 +581,8 @@ public final BackendBucket get(GetBackendBucketRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * GetBackendBucketRequest request = * GetBackendBucketRequest.newBuilder() @@ -574,6 +607,8 @@ public final UnaryCallablegetCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); @@ -603,6 +638,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * InsertBackendBucketRequest request = * InsertBackendBucketRequest.newBuilder() @@ -632,6 +669,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * InsertBackendBucketRequest request = * InsertBackendBucketRequest.newBuilder() @@ -659,6 +698,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * InsertBackendBucketRequest request = * InsertBackendBucketRequest.newBuilder() @@ -683,6 +724,8 @@ public final UnaryCallableinsertCallable * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * for (BackendBucket element : backendBucketsClient.list(project).iterateAll()) { @@ -707,6 +750,8 @@ public final ListPagedResponse list(String project) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * ListBackendBucketsRequest request = * ListBackendBucketsRequest.newBuilder() @@ -737,6 +782,8 @@ public final ListPagedResponse list(ListBackendBucketsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * ListBackendBucketsRequest request = * ListBackendBucketsRequest.newBuilder() @@ -767,6 +814,8 @@ public final UnaryCallablelistPag * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * ListBackendBucketsRequest request = * ListBackendBucketsRequest.newBuilder() @@ -779,7 +828,7 @@ public final UnaryCallablelistPag * .build(); * while (true) { * BackendBucketList response = backendBucketsClient.listCallable().call(request); - * for (BackendBucket element : response.getResponsesList()) { + * for (BackendBucket element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -804,6 +853,8 @@ public final UnaryCallable listCal * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -837,6 +888,8 @@ public final OperationFuturepatchAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * PatchBackendBucketRequest request = * PatchBackendBucketRequest.newBuilder() @@ -866,6 +919,8 @@ public final OperationFuturepatchAsync(PatchBackendBucket * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * PatchBackendBucketRequest request = * PatchBackendBucketRequest.newBuilder() @@ -894,6 +949,8 @@ public final OperationFuturepatchAsync(PatchBackendBucket * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * PatchBackendBucketRequest request = * PatchBackendBucketRequest.newBuilder() @@ -919,6 +976,8 @@ public final UnaryCallablepatchCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -957,6 +1016,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * SetEdgeSecurityPolicyBackendBucketRequest request = * SetEdgeSecurityPolicyBackendBucketRequest.newBuilder() @@ -986,6 +1047,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * SetEdgeSecurityPolicyBackendBucketRequest request = * SetEdgeSecurityPolicyBackendBucketRequest.newBuilder() @@ -1013,6 +1076,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * SetEdgeSecurityPolicyBackendBucketRequest request = * SetEdgeSecurityPolicyBackendBucketRequest.newBuilder() @@ -1040,6 +1105,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * String project = "project-309310695"; * String backendBucket = "backendBucket713751966"; @@ -1072,6 +1139,8 @@ public final OperationFutureupdateAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * UpdateBackendBucketRequest request = * UpdateBackendBucketRequest.newBuilder() @@ -1101,6 +1170,8 @@ public final OperationFutureupdateAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * UpdateBackendBucketRequest request = * UpdateBackendBucketRequest.newBuilder() @@ -1128,6 +1199,8 @@ public final OperationFutureupdateAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendBucketsClient backendBucketsClient = BackendBucketsClient.create()) { * UpdateBackendBucketRequest request = * UpdateBackendBucketRequest.newBuilder() diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java index 78a3d38d1..2ac788643 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,8 @@ *For example, to set the total timeout of get to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * BackendBucketsSettings.Builder backendBucketsSettingsBuilder = * BackendBucketsSettings.newBuilder(); * backendBucketsSettingsBuilder diff --git a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java index f9141e608..b08fba1b6 100644 --- a/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java +++ b/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,8 @@ * calls that map to API methods. Sample code to get started: * *{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -81,6 +83,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * BackendServicesSettings backendServicesSettings = * BackendServicesSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -92,6 +96,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * BackendServicesSettings backendServicesSettings = * BackendServicesSettings.newBuilder().setEndpoint(myEndpoint).build(); * BackendServicesClient backendServicesClient = @@ -123,7 +129,6 @@ public static final BackendServicesClient create(BackendServicesSettings setting * Constructs an instance of BackendServicesClient, using the given stub for making calls. This is * for advanced usage - prefer using create(BackendServicesSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final BackendServicesClient create(BackendServicesStub stub) { return new BackendServicesClient(stub); } @@ -138,7 +143,6 @@ protected BackendServicesClient(BackendServicesSettings settings) throws IOExcep this.stub = ((BackendServicesStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected BackendServicesClient(BackendServicesStub stub) { this.settings = null; this.stub = stub; @@ -148,7 +152,6 @@ public final BackendServicesSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public BackendServicesStub getStub() { return stub; } @@ -160,6 +163,8 @@ public BackendServicesStub getStub() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -195,6 +200,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * AddSignedUrlKeyBackendServiceRequest request = * AddSignedUrlKeyBackendServiceRequest.newBuilder() @@ -224,6 +231,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * AddSignedUrlKeyBackendServiceRequest request = * AddSignedUrlKeyBackendServiceRequest.newBuilder() @@ -251,6 +260,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * AddSignedUrlKeyBackendServiceRequest request = * AddSignedUrlKeyBackendServiceRequest.newBuilder() @@ -279,6 +290,8 @@ public final OperationFutureaddSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * for (Map.Entryelement : @@ -305,6 +318,8 @@ public final AggregatedListPagedResponse aggregatedList(String project) { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * AggregatedListBackendServicesRequest request = * AggregatedListBackendServicesRequest.newBuilder() @@ -339,6 +354,8 @@ public final AggregatedListPagedResponse aggregatedList( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * AggregatedListBackendServicesRequest request = * AggregatedListBackendServicesRequest.newBuilder() @@ -372,6 +389,8 @@ public final AggregatedListPagedResponse aggregatedList( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * AggregatedListBackendServicesRequest request = * AggregatedListBackendServicesRequest.newBuilder() @@ -386,7 +405,7 @@ public final AggregatedListPagedResponse aggregatedList( * while (true) { * BackendServiceAggregatedList response = * backendServicesClient.aggregatedListCallable().call(request); - * for (Map.Entryelement : response.getResponsesList()) { + * for (Map.Entry element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -411,6 +430,8 @@ public final AggregatedListPagedResponse aggregatedList( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -439,6 +460,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * DeleteBackendServiceRequest request = * DeleteBackendServiceRequest.newBuilder() @@ -467,6 +490,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * DeleteBackendServiceRequest request = * DeleteBackendServiceRequest.newBuilder() @@ -493,6 +518,8 @@ public final OperationFuturedeleteAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * DeleteBackendServiceRequest request = * DeleteBackendServiceRequest.newBuilder() @@ -517,6 +544,8 @@ public final UnaryCallabledeleteCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -550,6 +579,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * DeleteSignedUrlKeyBackendServiceRequest request = * DeleteSignedUrlKeyBackendServiceRequest.newBuilder() @@ -579,6 +610,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * DeleteSignedUrlKeyBackendServiceRequest request = * DeleteSignedUrlKeyBackendServiceRequest.newBuilder() @@ -606,6 +639,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * DeleteSignedUrlKeyBackendServiceRequest request = * DeleteSignedUrlKeyBackendServiceRequest.newBuilder() @@ -633,6 +668,8 @@ public final OperationFuturedeleteSignedUrlKeyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -660,6 +697,8 @@ public final BackendService get(String project, String backendService) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * GetBackendServiceRequest request = * GetBackendServiceRequest.newBuilder() @@ -684,6 +723,8 @@ public final BackendService get(GetBackendServiceRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * GetBackendServiceRequest request = * GetBackendServiceRequest.newBuilder() @@ -708,6 +749,8 @@ public final UnaryCallablegetCallable * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -745,6 +788,8 @@ public final BackendServiceGroupHealth getHealth( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * GetHealthBackendServiceRequest request = * GetHealthBackendServiceRequest.newBuilder() @@ -771,6 +816,8 @@ public final BackendServiceGroupHealth getHealth(GetHealthBackendServiceRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * GetHealthBackendServiceRequest request = * GetHealthBackendServiceRequest.newBuilder() @@ -798,6 +845,8 @@ public final BackendServiceGroupHealth getHealth(GetHealthBackendServiceRequest *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * BackendService backendServiceResource = BackendService.newBuilder().build(); @@ -827,6 +876,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * InsertBackendServiceRequest request = * InsertBackendServiceRequest.newBuilder() @@ -856,6 +907,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * InsertBackendServiceRequest request = * InsertBackendServiceRequest.newBuilder() @@ -883,6 +936,8 @@ public final OperationFutureinsertAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * InsertBackendServiceRequest request = * InsertBackendServiceRequest.newBuilder() @@ -907,6 +962,8 @@ public final UnaryCallableinsertCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * for (BackendService element : backendServicesClient.list(project).iterateAll()) { @@ -931,6 +988,8 @@ public final ListPagedResponse list(String project) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * ListBackendServicesRequest request = * ListBackendServicesRequest.newBuilder() @@ -961,6 +1020,8 @@ public final ListPagedResponse list(ListBackendServicesRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * ListBackendServicesRequest request = * ListBackendServicesRequest.newBuilder() @@ -991,6 +1052,8 @@ public final UnaryCallablelistPa * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * ListBackendServicesRequest request = * ListBackendServicesRequest.newBuilder() @@ -1003,7 +1066,7 @@ public final UnaryCallablelistPa * .build(); * while (true) { * BackendServiceList response = backendServicesClient.listCallable().call(request); - * for (BackendService element : response.getResponsesList()) { + * for (BackendService element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1029,6 +1092,8 @@ public final UnaryCallable listC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -1063,6 +1128,8 @@ public final OperationFuturepatchAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * PatchBackendServiceRequest request = * PatchBackendServiceRequest.newBuilder() @@ -1094,6 +1161,8 @@ public final OperationFuturepatchAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * PatchBackendServiceRequest request = * PatchBackendServiceRequest.newBuilder() @@ -1123,6 +1192,8 @@ public final OperationFuturepatchAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * PatchBackendServiceRequest request = * PatchBackendServiceRequest.newBuilder() @@ -1148,6 +1219,8 @@ public final UnaryCallablepatchCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * String project = "project-309310695"; * String backendService = "backendService-1884714623"; @@ -1186,6 +1259,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * SetEdgeSecurityPolicyBackendServiceRequest request = * SetEdgeSecurityPolicyBackendServiceRequest.newBuilder() @@ -1215,6 +1290,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * SetEdgeSecurityPolicyBackendServiceRequest request = * SetEdgeSecurityPolicyBackendServiceRequest.newBuilder() @@ -1242,6 +1319,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (BackendServicesClient backendServicesClient = BackendServicesClient.create()) { * SetEdgeSecurityPolicyBackendServiceRequest request = * SetEdgeSecurityPolicyBackendServiceRequest.newBuilder() @@ -1270,6 +1349,8 @@ public final OperationFuturesetEdgeSecurityPolicyAsync( *