This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy response =
+ * globalVmExtensionPoliciesClient.get(project, globalVmExtensionPolicy);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the GlobalVmExtensionPoliciesClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
AggregatedList |
+ * Retrieves the list of all VM Extension Policy resources available to the specified project. + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Delete |
+ * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Get |
+ * Gets details of a global VM extension policy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Insert |
+ * Creates a new project level GlobalVmExtensionPolicy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
List |
+ * Lists global VM extension policies. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Update |
+ * Updates a global VM extension policy. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * GlobalVmExtensionPoliciesSettings to create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings globalVmExtensionPoliciesSettings =
+ * GlobalVmExtensionPoliciesSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create(globalVmExtensionPoliciesSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings globalVmExtensionPoliciesSettings =
+ * GlobalVmExtensionPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create(globalVmExtensionPoliciesSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class GlobalVmExtensionPoliciesClient implements BackgroundResource { + private final GlobalVmExtensionPoliciesSettings settings; + private final GlobalVmExtensionPoliciesStub stub; + + /** Constructs an instance of GlobalVmExtensionPoliciesClient with default settings. */ + public static final GlobalVmExtensionPoliciesClient create() throws IOException { + return create(GlobalVmExtensionPoliciesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GlobalVmExtensionPoliciesClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final GlobalVmExtensionPoliciesClient create( + GlobalVmExtensionPoliciesSettings settings) throws IOException { + return new GlobalVmExtensionPoliciesClient(settings); + } + + /** + * Constructs an instance of GlobalVmExtensionPoliciesClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(GlobalVmExtensionPoliciesSettings). + */ + public static final GlobalVmExtensionPoliciesClient create(GlobalVmExtensionPoliciesStub stub) { + return new GlobalVmExtensionPoliciesClient(stub); + } + + /** + * Constructs an instance of GlobalVmExtensionPoliciesClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GlobalVmExtensionPoliciesClient(GlobalVmExtensionPoliciesSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((GlobalVmExtensionPoliciesStubSettings) settings.getStubSettings()).createStub(); + } + + protected GlobalVmExtensionPoliciesClient(GlobalVmExtensionPoliciesStub stub) { + this.settings = null; + this.stub = stub; + } + + public final GlobalVmExtensionPoliciesSettings getSettings() { + return settings; + } + + public GlobalVmExtensionPoliciesStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the list of all VM Extension Policy resources available to the specified project. + * + *
To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * for (Map.Entry element :
+ * globalVmExtensionPoliciesClient.aggregatedList(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Name of the project scoping this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AggregatedListPagedResponse aggregatedList(String project) {
+ AggregatedListGlobalVmExtensionPoliciesRequest request =
+ AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder().setProject(project).build();
+ return aggregatedList(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of all VM Extension Policy resources available to the specified project.
+ *
+ * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * AggregatedListGlobalVmExtensionPoliciesRequest request =
+ * AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * for (Map.Entry element :
+ * globalVmExtensionPoliciesClient.aggregatedList(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AggregatedListPagedResponse aggregatedList(
+ AggregatedListGlobalVmExtensionPoliciesRequest request) {
+ return aggregatedListPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of all VM Extension Policy resources available to the specified project.
+ *
+ * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * AggregatedListGlobalVmExtensionPoliciesRequest request =
+ * AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * ApiFuture> future =
+ * globalVmExtensionPoliciesClient.aggregatedListPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Map.Entry element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ AggregatedListGlobalVmExtensionPoliciesRequest, AggregatedListPagedResponse>
+ aggregatedListPagedCallable() {
+ return stub.aggregatedListPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves the list of all VM Extension Policy resources available to the specified project.
+ *
+ * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * AggregatedListGlobalVmExtensionPoliciesRequest request =
+ * AggregatedListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * while (true) {
+ * VmExtensionPolicyAggregatedListResponse response =
+ * globalVmExtensionPoliciesClient.aggregatedListCallable().call(request);
+ * for (Map.Entry element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse>
+ aggregatedListCallable() {
+ return stub.aggregatedListCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the
+ * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM
+ * extension policy deletion. The deletion of the global VM extension policy happens after the
+ * purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers
+ * in the backend.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput
+ * globalVmExtensionPolicyRolloutOperationRolloutInputResource =
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build();
+ * Operation response =
+ * globalVmExtensionPoliciesClient
+ * .deleteAsync(
+ * project,
+ * globalVmExtensionPolicy,
+ * globalVmExtensionPolicyRolloutOperationRolloutInputResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources
+ * for.
+ * @param globalVmExtensionPolicyRolloutOperationRolloutInputResource The body resource for this
+ * request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * DeleteGlobalVmExtensionPolicyRequest request =
+ * DeleteGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyRolloutOperationRolloutInputResource(
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalVmExtensionPoliciesClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * DeleteGlobalVmExtensionPolicyRequest request =
+ * DeleteGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyRolloutOperationRolloutInputResource(
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalVmExtensionPoliciesClient.deleteOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * DeleteGlobalVmExtensionPolicyRequest request =
+ * DeleteGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyRolloutOperationRolloutInputResource(
+ * GlobalVmExtensionPolicyRolloutOperationRolloutInput.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.deleteCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy response =
+ * globalVmExtensionPoliciesClient.get(project, globalVmExtensionPolicy);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GlobalVmExtensionPolicy get(String project, String globalVmExtensionPolicy) {
+ GetGlobalVmExtensionPolicyRequest request =
+ GetGlobalVmExtensionPolicyRequest.newBuilder()
+ .setProject(project)
+ .setGlobalVmExtensionPolicy(globalVmExtensionPolicy)
+ .build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a global VM extension policy.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * GetGlobalVmExtensionPolicyRequest request =
+ * GetGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setProject("project-309310695")
+ * .build();
+ * GlobalVmExtensionPolicy response = globalVmExtensionPoliciesClient.get(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GlobalVmExtensionPolicy get(GetGlobalVmExtensionPolicyRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a global VM extension policy.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * GetGlobalVmExtensionPolicyRequest request =
+ * GetGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setProject("project-309310695")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.getCallable().futureCall(request);
+ * // Do something.
+ * GlobalVmExtensionPolicy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * GlobalVmExtensionPolicy globalVmExtensionPolicyResource =
+ * GlobalVmExtensionPolicy.newBuilder().build();
+ * Operation response =
+ * globalVmExtensionPoliciesClient
+ * .insertAsync(project, globalVmExtensionPolicyResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicyResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * InsertGlobalVmExtensionPolicyRequest request =
+ * InsertGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalVmExtensionPoliciesClient.insertAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * InsertGlobalVmExtensionPolicyRequest request =
+ * InsertGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalVmExtensionPoliciesClient.insertOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * InsertGlobalVmExtensionPolicyRequest request =
+ * InsertGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.insertCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * for (GlobalVmExtensionPolicy element :
+ * globalVmExtensionPoliciesClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListGlobalVmExtensionPoliciesRequest request =
+ ListGlobalVmExtensionPoliciesRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists global VM extension policies.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * ListGlobalVmExtensionPoliciesRequest request =
+ * ListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (GlobalVmExtensionPolicy element :
+ * globalVmExtensionPoliciesClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(ListGlobalVmExtensionPoliciesRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists global VM extension policies.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * ListGlobalVmExtensionPoliciesRequest request =
+ * ListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.listPagedCallable().futureCall(request);
+ * // Do something.
+ * for (GlobalVmExtensionPolicy element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * ListGlobalVmExtensionPoliciesRequest request =
+ * ListGlobalVmExtensionPoliciesRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * GlobalVmExtensionPolicyList response =
+ * globalVmExtensionPoliciesClient.listCallable().call(request);
+ * for (GlobalVmExtensionPolicy element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy globalVmExtensionPolicyResource =
+ * GlobalVmExtensionPolicy.newBuilder().build();
+ * Operation response =
+ * globalVmExtensionPoliciesClient
+ * .updateAsync(project, globalVmExtensionPolicy, globalVmExtensionPolicyResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param globalVmExtensionPolicy Name of the global VM extension policy to update.
+ * @param globalVmExtensionPolicyResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * UpdateGlobalVmExtensionPolicyRequest request =
+ * UpdateGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = globalVmExtensionPoliciesClient.updateAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFutureSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * UpdateGlobalVmExtensionPolicyRequest request =
+ * UpdateGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * globalVmExtensionPoliciesClient.updateOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallableSample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * UpdateGlobalVmExtensionPolicyRequest request =
+ * UpdateGlobalVmExtensionPolicyRequest.newBuilder()
+ * .setGlobalVmExtensionPolicy("globalVmExtensionPolicy-869114569")
+ * .setGlobalVmExtensionPolicyResource(GlobalVmExtensionPolicy.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * globalVmExtensionPoliciesClient.updateCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of get: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesSettings.newBuilder();
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * GlobalVmExtensionPoliciesSettings globalVmExtensionPoliciesSettings =
+ * globalVmExtensionPoliciesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for delete: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class GlobalVmExtensionPoliciesSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction GetIamPolicy Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyLicenseCodeRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getIamPolicy(String project, String resource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
+ * SetIamPolicy Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyLicenseCodeRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setIamPolicy(String project, String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
+ * TestIamPermissions Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images. Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * CancelRequestRemovePeering Cancel requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the specified network. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelRequestRemovePeeringAsync(CancelRequestRemovePeeringNetworkRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. cancelRequestRemovePeeringAsync(String project, String network, NetworksCancelRequestRemovePeeringRequest networksCancelRequestRemovePeeringRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelRequestRemovePeeringOperationCallable()
+ * cancelRequestRemovePeeringCallable()
+ * Delete Deletes the specified network. Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the RolloutPlansClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * Delete Deletes a RolloutPlan. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteAsync(DeleteRolloutPlanRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteAsync(String project, String rolloutPlan)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteOperationCallable()
+ * deleteCallable()
+ * Get Gets details of a single project-scoped RolloutPlan. Request object method variants only take one parameter, a request object, which must be constructed before the call. get(GetRolloutPlanRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. get(String project, String rolloutPlan)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCallable()
+ * Insert Creates a new RolloutPlan in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. insertAsync(InsertRolloutPlanRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. insertAsync(String project, RolloutPlan rolloutPlanResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. insertOperationCallable()
+ * insertCallable()
+ * List Lists RolloutPlans in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. list(ListRolloutPlansRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. list(String project)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPagedCallable()
+ * listCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of RolloutPlansSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class RolloutPlansClient implements BackgroundResource {
+ private final RolloutPlansSettings settings;
+ private final RolloutPlansStub stub;
+
+ /** Constructs an instance of RolloutPlansClient with default settings. */
+ public static final RolloutPlansClient create() throws IOException {
+ return create(RolloutPlansSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of RolloutPlansClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final RolloutPlansClient create(RolloutPlansSettings settings) throws IOException {
+ return new RolloutPlansClient(settings);
+ }
+
+ /**
+ * Constructs an instance of RolloutPlansClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(RolloutPlansSettings).
+ */
+ public static final RolloutPlansClient create(RolloutPlansStub stub) {
+ return new RolloutPlansClient(stub);
+ }
+
+ /**
+ * Constructs an instance of RolloutPlansClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected RolloutPlansClient(RolloutPlansSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((RolloutPlansStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected RolloutPlansClient(RolloutPlansStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final RolloutPlansSettings getSettings() {
+ return settings;
+ }
+
+ public RolloutPlansStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a RolloutPlan.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for delete:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the RolloutsClient object to clean up resources such as
+ * threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * Cancel Cancels a Rollout. Request object method variants only take one parameter, a request object, which must be constructed before the call. cancelAsync(CancelRolloutRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. cancelAsync(String project, String rollout)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. cancelOperationCallable()
+ * cancelCallable()
+ * Delete Deletes a Rollout. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteAsync(DeleteRolloutRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteAsync(String project, String rollout)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteOperationCallable()
+ * deleteCallable()
+ * Get Gets details of a single project-scoped Rollout. Request object method variants only take one parameter, a request object, which must be constructed before the call. get(GetRolloutRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. get(String project, String rollout)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCallable()
+ * List Lists Rollouts in a given project and location. Request object method variants only take one parameter, a request object, which must be constructed before the call. list(ListRolloutsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. list(String project)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPagedCallable()
+ * listCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of RolloutsSettings to create().
+ * For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class RolloutsClient implements BackgroundResource {
+ private final RolloutsSettings settings;
+ private final RolloutsStub stub;
+
+ /** Constructs an instance of RolloutsClient with default settings. */
+ public static final RolloutsClient create() throws IOException {
+ return create(RolloutsSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of RolloutsClient, using the given settings. The channels are created
+ * based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final RolloutsClient create(RolloutsSettings settings) throws IOException {
+ return new RolloutsClient(settings);
+ }
+
+ /**
+ * Constructs an instance of RolloutsClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(RolloutsSettings).
+ */
+ public static final RolloutsClient create(RolloutsStub stub) {
+ return new RolloutsClient(stub);
+ }
+
+ /**
+ * Constructs an instance of RolloutsClient, using the given settings. This is protected so that
+ * it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
+ */
+ protected RolloutsClient(RolloutsSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((RolloutsStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected RolloutsClient(RolloutsStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final RolloutsSettings getSettings() {
+ return settings;
+ }
+
+ public RolloutsStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels a Rollout.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for cancel:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction Delete Deletes a specified zone VM extension policy. Deletes a specified zone VM extension policy within a project. Request object method variants only take one parameter, a request object, which must be constructed before the call. Get Retrieves details of a specific zone VM extension policy. Retrieves details of a specific zone VM extension policy within a project. Request object method variants only take one parameter, a request object, which must be constructed before the call. Update Modifies an existing zone VM extension policy. Modifies an existing zone VM extension policy within a project. Request object method variants only take one parameter, a request object, which must be constructed before the call. Sample code:
*
@@ -296,7 +296,7 @@ public final OperationFuture Sample code:
*
@@ -329,7 +329,7 @@ public final OperationFuture Sample code:
*
@@ -362,7 +362,7 @@ public final OperationFuture Sample code:
*
@@ -394,7 +394,7 @@ public final UnaryCallable Sample code:
*
@@ -431,7 +431,7 @@ public final VmExtensionPolicy get(String project, String zone, String vmExtensi
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieves details of a specific zone VM extension policy.
+ * Retrieves details of a specific zone VM extension policy within a project.
*
* Sample code:
*
@@ -462,7 +462,7 @@ public final VmExtensionPolicy get(GetZoneVmExtensionPolicyRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Retrieves details of a specific zone VM extension policy.
+ * Retrieves details of a specific zone VM extension policy within a project.
*
* Sample code:
*
@@ -781,7 +781,7 @@ public final ListPagedResponse list(ListZoneVmExtensionPoliciesRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Modifies an existing zone VM extension policy.
+ * Modifies an existing zone VM extension policy within a project.
*
* Sample code:
*
@@ -827,7 +827,7 @@ public final OperationFuture Sample code:
*
@@ -861,7 +861,7 @@ public final OperationFuture Sample code:
*
@@ -895,7 +895,7 @@ public final OperationFuture Sample code:
*
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json
index efe5bcbc21b9..93548435e9be 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/gapic_metadata.json
@@ -662,6 +662,33 @@
}
}
},
+ "GlobalVmExtensionPolicies": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "GlobalVmExtensionPoliciesClient",
+ "rpcs": {
+ "AggregatedList": {
+ "methods": ["aggregatedList", "aggregatedList", "aggregatedListPagedCallable", "aggregatedListCallable"]
+ },
+ "Delete": {
+ "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
+ },
+ "Get": {
+ "methods": ["get", "get", "getCallable"]
+ },
+ "Insert": {
+ "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"]
+ },
+ "List": {
+ "methods": ["list", "list", "listPagedCallable", "listCallable"]
+ },
+ "Update": {
+ "methods": ["updateAsync", "updateAsync", "updateOperationCallable", "updateCallable"]
+ }
+ }
+ }
+ }
+ },
"HealthChecks": {
"clients": {
"grpc": {
@@ -1345,6 +1372,12 @@
"Get": {
"methods": ["get", "get", "getCallable"]
},
+ "GetIamPolicy": {
+ "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
+ },
+ "SetIamPolicy": {
+ "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
+ },
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
}
@@ -1627,6 +1660,9 @@
"AddPeering": {
"methods": ["addPeeringAsync", "addPeeringAsync", "addPeeringOperationCallable", "addPeeringCallable"]
},
+ "CancelRequestRemovePeering": {
+ "methods": ["cancelRequestRemovePeeringAsync", "cancelRequestRemovePeeringAsync", "cancelRequestRemovePeeringOperationCallable", "cancelRequestRemovePeeringCallable"]
+ },
"Delete": {
"methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
},
@@ -3146,6 +3182,48 @@
}
}
},
+ "RolloutPlans": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "RolloutPlansClient",
+ "rpcs": {
+ "Delete": {
+ "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
+ },
+ "Get": {
+ "methods": ["get", "get", "getCallable"]
+ },
+ "Insert": {
+ "methods": ["insertAsync", "insertAsync", "insertOperationCallable", "insertCallable"]
+ },
+ "List": {
+ "methods": ["list", "list", "listPagedCallable", "listCallable"]
+ }
+ }
+ }
+ }
+ },
+ "Rollouts": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "RolloutsClient",
+ "rpcs": {
+ "Cancel": {
+ "methods": ["cancelAsync", "cancelAsync", "cancelOperationCallable", "cancelCallable"]
+ },
+ "Delete": {
+ "methods": ["deleteAsync", "deleteAsync", "deleteOperationCallable", "deleteCallable"]
+ },
+ "Get": {
+ "methods": ["get", "get", "getCallable"]
+ },
+ "List": {
+ "methods": ["list", "list", "listPagedCallable", "listCallable"]
+ }
+ }
+ }
+ }
+ },
"Routers": {
"clients": {
"grpc": {
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java
index 240f3ab681d2..59a495c9ab35 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java
@@ -416,6 +416,27 @@
* }
* }
*
+ * ======================= GlobalVmExtensionPoliciesClient =======================
+ *
+ * Service Description: The GlobalVmExtensionPolicies API.
+ *
+ * Sample for GlobalVmExtensionPoliciesClient:
+ *
+ * ======================= HealthChecksClient =======================
*
* Service Description: The HealthChecks API.
@@ -1948,6 +1969,44 @@
* }
* }
*
+ * ======================= RolloutPlansClient =======================
+ *
+ * Service Description: The RolloutPlans API.
+ *
+ * Sample for RolloutPlansClient:
+ *
+ * ======================= RolloutsClient =======================
+ *
+ * Service Description: The Rollouts API.
+ *
+ * Sample for RolloutsClient:
+ *
+ * ======================= RoutersClient =======================
*
* Service Description: The Routers API.
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStub.java
new file mode 100644
index 000000000000..0e8310b5a526
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalVmExtensionPoliciesStub.java
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.compute.v1.stub;
+
+import static com.google.cloud.compute.v1.GlobalVmExtensionPoliciesClient.AggregatedListPagedResponse;
+import static com.google.cloud.compute.v1.GlobalVmExtensionPoliciesClient.ListPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.AggregatedListGlobalVmExtensionPoliciesRequest;
+import com.google.cloud.compute.v1.DeleteGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.GetGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.GlobalVmExtensionPolicy;
+import com.google.cloud.compute.v1.GlobalVmExtensionPolicyList;
+import com.google.cloud.compute.v1.InsertGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.ListGlobalVmExtensionPoliciesRequest;
+import com.google.cloud.compute.v1.Operation;
+import com.google.cloud.compute.v1.UpdateGlobalVmExtensionPolicyRequest;
+import com.google.cloud.compute.v1.VmExtensionPolicyAggregatedListResponse;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the GlobalVmExtensionPolicies service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class GlobalVmExtensionPoliciesStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of get:
+ *
+ * To configure the RetrySettings of a Long Running Operation method, create an
+ * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
+ * configure the RetrySettings for delete:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonGlobalVmExtensionPoliciesCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonGlobalVmExtensionPoliciesStub extends GlobalVmExtensionPoliciesStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder().add(Operation.getDescriptor()).build();
+
+ private static final ApiMethodDescriptor<
+ AggregatedListGlobalVmExtensionPoliciesRequest, VmExtensionPolicyAggregatedListResponse>
+ aggregatedListMethodDescriptor =
+ ApiMethodDescriptor
+ .
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
*
@@ -272,6 +308,206 @@ public final UnaryCallable
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * Policy response = licenseCodesClient.getIamPolicy(project, resource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(String project, String resource) {
+ GetIamPolicyLicenseCodeRequest request =
+ GetIamPolicyLicenseCodeRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy or resource
+ * exists. *Caution* This resource is intended for use only by third-party partners who
+ * are creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * GetIamPolicyLicenseCodeRequest request =
+ * GetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setOptionsRequestedPolicyVersion(-574521795)
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * Policy response = licenseCodesClient.getIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(GetIamPolicyLicenseCodeRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy or resource
+ * exists. *Caution* This resource is intended for use only by third-party partners who
+ * are creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * GetIamPolicyLicenseCodeRequest request =
+ * GetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setOptionsRequestedPolicyVersion(-574521795)
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * String project = "project-309310695";
+ * String resource = "resource-341064690";
+ * GlobalSetPolicyRequest globalSetPolicyRequestResource =
+ * GlobalSetPolicyRequest.newBuilder().build();
+ * Policy response =
+ * licenseCodesClient.setIamPolicy(project, resource, globalSetPolicyRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param globalSetPolicyRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(
+ String project, String resource, GlobalSetPolicyRequest globalSetPolicyRequestResource) {
+ SetIamPolicyLicenseCodeRequest request =
+ SetIamPolicyLicenseCodeRequest.newBuilder()
+ .setProject(project)
+ .setResource(resource)
+ .setGlobalSetPolicyRequestResource(globalSetPolicyRequestResource)
+ .build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replaces any existing policy.
+ * *Caution* This resource is intended for use only by third-party partners who are
+ * creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * SetIamPolicyLicenseCodeRequest request =
+ * SetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * Policy response = licenseCodesClient.setIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(SetIamPolicyLicenseCodeRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replaces any existing policy.
+ * *Caution* This resource is intended for use only by third-party partners who are
+ * creatingCloud Marketplace images.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LicenseCodesClient licenseCodesClient = LicenseCodesClient.create()) {
+ * SetIamPolicyLicenseCodeRequest request =
+ * SetIamPolicyLicenseCodeRequest.newBuilder()
+ * .setGlobalSetPolicyRequestResource(GlobalSetPolicyRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
*
*
*
*
@@ -505,6 +524,157 @@ public final UnaryCallable {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * String project = "project-309310695";
+ * String network = "network1843485230";
+ * NetworksCancelRequestRemovePeeringRequest networksCancelRequestRemovePeeringRequestResource =
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build();
+ * Operation response =
+ * networksClient
+ * .cancelRequestRemovePeeringAsync(
+ * project, network, networksCancelRequestRemovePeeringRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param network Name of the network resource to remove peering from.
+ * @param networksCancelRequestRemovePeeringRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * CancelRequestRemovePeeringNetworkRequest request =
+ * CancelRequestRemovePeeringNetworkRequest.newBuilder()
+ * .setNetwork("network1843485230")
+ * .setNetworksCancelRequestRemovePeeringRequestResource(
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Operation response = networksClient.cancelRequestRemovePeeringAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * CancelRequestRemovePeeringNetworkRequest request =
+ * CancelRequestRemovePeeringNetworkRequest.newBuilder()
+ * .setNetwork("network1843485230")
+ * .setNetworksCancelRequestRemovePeeringRequestResource(
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (NetworksClient networksClient = NetworksClient.create()) {
+ * CancelRequestRemovePeeringNetworkRequest request =
+ * CancelRequestRemovePeeringNetworkRequest.newBuilder()
+ * .setNetwork("network1843485230")
+ * .setNetworksCancelRequestRemovePeeringRequestResource(
+ * NetworksCancelRequestRemovePeeringRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * RolloutPlan response = rolloutPlansClient.get(project, rolloutPlan);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings rolloutPlansSettings =
+ * RolloutPlansSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create(rolloutPlansSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings rolloutPlansSettings =
+ * RolloutPlansSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create(rolloutPlansSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * Operation response = rolloutPlansClient.deleteAsync(project, rolloutPlan).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rolloutPlan Name of the RolloutPlan resource to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * DeleteRolloutPlanRequest request =
+ * DeleteRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * Operation response = rolloutPlansClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * DeleteRolloutPlanRequest request =
+ * DeleteRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * DeleteRolloutPlanRequest request =
+ * DeleteRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * RolloutPlan response = rolloutPlansClient.get(project, rolloutPlan);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rolloutPlan Name of the persistent rollout plan to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RolloutPlan get(String project, String rolloutPlan) {
+ GetRolloutPlanRequest request =
+ GetRolloutPlanRequest.newBuilder().setProject(project).setRolloutPlan(rolloutPlan).build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped RolloutPlan.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * GetRolloutPlanRequest request =
+ * GetRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * RolloutPlan response = rolloutPlansClient.get(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RolloutPlan get(GetRolloutPlanRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped RolloutPlan.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * GetRolloutPlanRequest request =
+ * GetRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRolloutPlan("rolloutPlan1469104250")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * RolloutPlan rolloutPlanResource = RolloutPlan.newBuilder().build();
+ * Operation response = rolloutPlansClient.insertAsync(project, rolloutPlanResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rolloutPlanResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * InsertRolloutPlanRequest request =
+ * InsertRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlanResource(RolloutPlan.newBuilder().build())
+ * .build();
+ * Operation response = rolloutPlansClient.insertAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * InsertRolloutPlanRequest request =
+ * InsertRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlanResource(RolloutPlan.newBuilder().build())
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * InsertRolloutPlanRequest request =
+ * InsertRolloutPlanRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRolloutPlanResource(RolloutPlan.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * for (RolloutPlan element : rolloutPlansClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListRolloutPlansRequest request =
+ ListRolloutPlansRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists RolloutPlans in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * ListRolloutPlansRequest request =
+ * ListRolloutPlansRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (RolloutPlan element : rolloutPlansClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(ListRolloutPlansRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists RolloutPlans in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * ListRolloutPlansRequest request =
+ * ListRolloutPlansRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * ListRolloutPlansRequest request =
+ * ListRolloutPlansRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * RolloutPlansListResponse response = rolloutPlansClient.listCallable().call(request);
+ * for (RolloutPlan element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings.Builder rolloutPlansSettingsBuilder = RolloutPlansSettings.newBuilder();
+ * rolloutPlansSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * rolloutPlansSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * RolloutPlansSettings rolloutPlansSettings = rolloutPlansSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutPlansSettings.Builder rolloutPlansSettingsBuilder = RolloutPlansSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * rolloutPlansSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class RolloutPlansSettings extends ClientSettings{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Rollout response = rolloutsClient.get(project, rollout);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings rolloutsSettings =
+ * RolloutsSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * RolloutsClient rolloutsClient = RolloutsClient.create(rolloutsSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings rolloutsSettings =
+ * RolloutsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RolloutsClient rolloutsClient = RolloutsClient.create(rolloutsSettings);
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Operation response = rolloutsClient.cancelAsync(project, rollout).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rollout Name of the Rollout resource to cancel.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * CancelRolloutRequest request =
+ * CancelRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollback(true)
+ * .setRollout("rollout1377108401")
+ * .build();
+ * Operation response = rolloutsClient.cancelAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * CancelRolloutRequest request =
+ * CancelRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollback(true)
+ * .setRollout("rollout1377108401")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * CancelRolloutRequest request =
+ * CancelRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollback(true)
+ * .setRollout("rollout1377108401")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Operation response = rolloutsClient.deleteAsync(project, rollout).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rollout Name of the Rollout resource to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * DeleteRolloutRequest request =
+ * DeleteRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * Operation response = rolloutsClient.deleteAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * DeleteRolloutRequest request =
+ * DeleteRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * DeleteRolloutRequest request =
+ * DeleteRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Rollout response = rolloutsClient.get(project, rollout);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param rollout Name of the persistent rollout to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Rollout get(String project, String rollout) {
+ GetRolloutRequest request =
+ GetRolloutRequest.newBuilder().setProject(project).setRollout(rollout).build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped Rollout.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * GetRolloutRequest request =
+ * GetRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * Rollout response = rolloutsClient.get(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Rollout get(GetRolloutRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single project-scoped Rollout.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * GetRolloutRequest request =
+ * GetRolloutRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRollout("rollout1377108401")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * for (Rollout element : rolloutsClient.list(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project) {
+ ListRolloutsRequest request = ListRolloutsRequest.newBuilder().setProject(project).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (Rollout element : rolloutsClient.list(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(ListRolloutsRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Rollouts in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * ListRolloutsRequest request =
+ * ListRolloutsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * RolloutsListResponse response = rolloutsClient.listCallable().call(request);
+ * for (Rollout element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings.Builder rolloutsSettingsBuilder = RolloutsSettings.newBuilder();
+ * rolloutsSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * rolloutsSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * RolloutsSettings rolloutsSettings = rolloutsSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * RolloutsSettings.Builder rolloutsSettingsBuilder = RolloutsSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * rolloutsSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class RolloutsSettings extends ClientSettings
*
*
- *
+ *
*
*
@@ -89,7 +89,7 @@
*
*
*
- *
+ *
*
*
@@ -145,7 +145,7 @@
*
*
- *
+ *
*
*
@@ -258,7 +258,7 @@ public ZoneVmExtensionPoliciesStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a specified zone VM extension policy.
+ * Deletes a specified zone VM extension policy within a project.
*
*
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GlobalVmExtensionPoliciesClient globalVmExtensionPoliciesClient =
+ * GlobalVmExtensionPoliciesClient.create()) {
+ * String project = "project-309310695";
+ * String globalVmExtensionPolicy = "globalVmExtensionPolicy-869114569";
+ * GlobalVmExtensionPolicy response =
+ * globalVmExtensionPoliciesClient.get(project, globalVmExtensionPolicy);
+ * }
+ * }
+ *
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutPlansClient rolloutPlansClient = RolloutPlansClient.create()) {
+ * String project = "project-309310695";
+ * String rolloutPlan = "rolloutPlan1469104250";
+ * RolloutPlan response = rolloutPlansClient.get(project, rolloutPlan);
+ * }
+ * }
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (RolloutsClient rolloutsClient = RolloutsClient.create()) {
+ * String project = "project-309310695";
+ * String rollout = "rollout1377108401";
+ * Rollout response = rolloutsClient.get(project, rollout);
+ * }
+ * }
+ *
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesStubSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesStubSettings.newBuilder();
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * GlobalVmExtensionPoliciesStubSettings globalVmExtensionPoliciesSettings =
+ * globalVmExtensionPoliciesSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GlobalVmExtensionPoliciesStubSettings.Builder globalVmExtensionPoliciesSettingsBuilder =
+ * GlobalVmExtensionPoliciesStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ * OperationalTimedPollAlgorithm.create(
+ * RetrySettings.newBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ * .setRetryDelayMultiplier(1.5)
+ * .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ * .setTotalTimeoutDuration(Duration.ofHours(24))
+ * .build());
+ * globalVmExtensionPoliciesSettingsBuilder
+ * .createClusterOperationSettings()
+ * .setPollingAlgorithm(timedRetryAlgorithm)
+ * .build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class GlobalVmExtensionPoliciesStubSettings
+ extends StubSettings