diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
new file mode 100644
index 00000000..37e64472
--- /dev/null
+++ b/.github/.OwlBot.lock.yaml
@@ -0,0 +1,3 @@
+docker:
+ digest: sha256:ee698481139bf3df35cd83d2f17f9670ee914d6184f8909a81d672a6abaf0e72
+ image: gcr.io/repo-automation-bots/owlbot-java:latest
diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml
new file mode 100644
index 00000000..a6f82b69
--- /dev/null
+++ b/.github/.OwlBot.yaml
@@ -0,0 +1,29 @@
+# Copyright 2021 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
+#
+# http://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.
+
+docker:
+ image: "gcr.io/repo-automation-bots/owlbot-java:latest"
+
+deep-remove-regex:
+- "/grpc-google-.*/src"
+- "/proto-google-.*/src"
+- "/google-.*/src"
+
+deep-copy-regex:
+- source: "/google/cloud/osconfig/(v.*)/.*-java/proto-google-.*/src"
+ dest: "/owl-bot-staging/$1/proto-google-cloud-os-config-$1/src"
+- source: "/google/cloud/osconfig/(v.*)/.*-java/grpc-google-.*/src"
+ dest: "/owl-bot-staging/$1/grpc-google-cloud-os-config-$1/src"
+- source: "/google/cloud/osconfig/(v.*)/.*-java/gapic-google-.*/src"
+ dest: "/owl-bot-staging/$1/google-cloud-os-config/src"
diff --git a/google-cloud-os-config-bom/pom.xml b/google-cloud-os-config-bom/pom.xml
index 4a18f36e..6a997c03 100644
--- a/google-cloud-os-config-bom/pom.xml
+++ b/google-cloud-os-config-bom/pom.xml
@@ -1,4 +1,4 @@
-
+
The OS Config service is the server-side component that allows users to manage package + * installations and patch jobs for Compute Engine VM instances. + * + *
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 + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * OSPolicyAssignmentName name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]"); + * OSPolicyAssignment response = osConfigZonalServiceClient.getOSPolicyAssignment(name); + * } + * }+ * + *
Note: close() needs to be called on the OsConfigZonalServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
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 OsConfigZonalServiceSettings + * to create(). For example: + * + *
To customize credentials: + * + *
{@code + * OsConfigZonalServiceSettings osConfigZonalServiceSettings = + * OsConfigZonalServiceSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create(osConfigZonalServiceSettings); + * }+ * + *
To customize the endpoint: + * + *
{@code + * OsConfigZonalServiceSettings osConfigZonalServiceSettings = + * OsConfigZonalServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + * OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create(osConfigZonalServiceSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class OsConfigZonalServiceClient implements BackgroundResource { + private final OsConfigZonalServiceSettings settings; + private final OsConfigZonalServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of OsConfigZonalServiceClient with default settings. */ + public static final OsConfigZonalServiceClient create() throws IOException { + return create(OsConfigZonalServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OsConfigZonalServiceClient, 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 OsConfigZonalServiceClient create(OsConfigZonalServiceSettings settings) + throws IOException { + return new OsConfigZonalServiceClient(settings); + } + + /** + * Constructs an instance of OsConfigZonalServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(OsConfigZonalServiceSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final OsConfigZonalServiceClient create(OsConfigZonalServiceStub stub) { + return new OsConfigZonalServiceClient(stub); + } + + /** + * Constructs an instance of OsConfigZonalServiceClient, 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 OsConfigZonalServiceClient(OsConfigZonalServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((OsConfigZonalServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected OsConfigZonalServiceClient(OsConfigZonalServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final OsConfigZonalServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public OsConfigZonalServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create an OS policy assignment. + * + *
This method also creates the first revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * OSPolicyAssignment osPolicyAssignment = OSPolicyAssignment.newBuilder().build(); + * String osPolicyAssignmentId = "osPolicyAssignmentId-44079074"; + * OSPolicyAssignment response = + * osConfigZonalServiceClient + * .createOSPolicyAssignmentAsync(parent, osPolicyAssignment, osPolicyAssignmentId) + * .get(); + * } + * }+ * + * @param parent Required. The parent resource name in the form: + * projects/{project}/locations/{location} + * @param osPolicyAssignment Required. The OS policy assignment to be created. + * @param osPolicyAssignmentId Required. The logical name of the OS policy assignment in the + * project with the following restrictions: + *
This method also creates the first revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * OSPolicyAssignment osPolicyAssignment = OSPolicyAssignment.newBuilder().build(); + * String osPolicyAssignmentId = "osPolicyAssignmentId-44079074"; + * OSPolicyAssignment response = + * osConfigZonalServiceClient + * .createOSPolicyAssignmentAsync(parent, osPolicyAssignment, osPolicyAssignmentId) + * .get(); + * } + * }+ * + * @param parent Required. The parent resource name in the form: + * projects/{project}/locations/{location} + * @param osPolicyAssignment Required. The OS policy assignment to be created. + * @param osPolicyAssignmentId Required. The logical name of the OS policy assignment in the + * project with the following restrictions: + *
This method also creates the first revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * CreateOSPolicyAssignmentRequest request = + * CreateOSPolicyAssignmentRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setOsPolicyAssignment(OSPolicyAssignment.newBuilder().build()) + * .setOsPolicyAssignmentId("osPolicyAssignmentId-44079074") + * .build(); + * OSPolicyAssignment response = + * osConfigZonalServiceClient.createOSPolicyAssignmentAsync(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
This method also creates the first revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * CreateOSPolicyAssignmentRequest request = + * CreateOSPolicyAssignmentRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setOsPolicyAssignment(OSPolicyAssignment.newBuilder().build()) + * .setOsPolicyAssignmentId("osPolicyAssignmentId-44079074") + * .build(); + * OperationFuture+ */ + public final OperationCallable< + CreateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> + createOSPolicyAssignmentOperationCallable() { + return stub.createOSPolicyAssignmentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create an OS policy assignment. + * + *future = + * osConfigZonalServiceClient + * .createOSPolicyAssignmentOperationCallable() + * .futureCall(request); + * // Do something. + * OSPolicyAssignment response = future.get(); + * } + * }
This method also creates the first revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * CreateOSPolicyAssignmentRequest request = + * CreateOSPolicyAssignmentRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setOsPolicyAssignment(OSPolicyAssignment.newBuilder().build()) + * .setOsPolicyAssignmentId("osPolicyAssignmentId-44079074") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.createOSPolicyAssignmentCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * OSPolicyAssignment osPolicyAssignment = OSPolicyAssignment.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * OSPolicyAssignment response = + * osConfigZonalServiceClient + * .updateOSPolicyAssignmentAsync(osPolicyAssignment, updateMask) + * .get(); + * } + * }+ * + * @param osPolicyAssignment Required. The updated OS policy assignment. + * @param updateMask Optional. Field mask that controls which fields of the assignment should be + * updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * UpdateOSPolicyAssignmentRequest request = + * UpdateOSPolicyAssignmentRequest.newBuilder() + * .setOsPolicyAssignment(OSPolicyAssignment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * OSPolicyAssignment response = + * osConfigZonalServiceClient.updateOSPolicyAssignmentAsync(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
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * UpdateOSPolicyAssignmentRequest request = + * UpdateOSPolicyAssignmentRequest.newBuilder() + * .setOsPolicyAssignment(OSPolicyAssignment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * OperationFuture+ */ + public final OperationCallable< + UpdateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> + updateOSPolicyAssignmentOperationCallable() { + return stub.updateOSPolicyAssignmentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update an existing OS policy assignment. + * + *future = + * osConfigZonalServiceClient + * .updateOSPolicyAssignmentOperationCallable() + * .futureCall(request); + * // Do something. + * OSPolicyAssignment response = future.get(); + * } + * }
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * UpdateOSPolicyAssignmentRequest request = + * UpdateOSPolicyAssignmentRequest.newBuilder() + * .setOsPolicyAssignment(OSPolicyAssignment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.updateOSPolicyAssignmentCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
This method always returns the latest revision. In order to retrieve a previous revision of + * the assignment, also provide the revision ID in the `name` parameter. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * OSPolicyAssignmentName name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]"); + * OSPolicyAssignment response = osConfigZonalServiceClient.getOSPolicyAssignment(name); + * } + * }+ * + * @param name Required. The resource name of OS policy assignment. + *
Format: + * `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}{@literal @}{revisionId}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OSPolicyAssignment getOSPolicyAssignment(OSPolicyAssignmentName name) { + GetOSPolicyAssignmentRequest request = + GetOSPolicyAssignmentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOSPolicyAssignment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve an existing OS policy assignment. + * + *
This method always returns the latest revision. In order to retrieve a previous revision of + * the assignment, also provide the revision ID in the `name` parameter. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]").toString(); + * OSPolicyAssignment response = osConfigZonalServiceClient.getOSPolicyAssignment(name); + * } + * }+ * + * @param name Required. The resource name of OS policy assignment. + *
Format: + * `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}{@literal @}{revisionId}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OSPolicyAssignment getOSPolicyAssignment(String name) { + GetOSPolicyAssignmentRequest request = + GetOSPolicyAssignmentRequest.newBuilder().setName(name).build(); + return getOSPolicyAssignment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve an existing OS policy assignment. + * + *
This method always returns the latest revision. In order to retrieve a previous revision of + * the assignment, also provide the revision ID in the `name` parameter. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetOSPolicyAssignmentRequest request = + * GetOSPolicyAssignmentRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .build(); + * OSPolicyAssignment response = osConfigZonalServiceClient.getOSPolicyAssignment(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 OSPolicyAssignment getOSPolicyAssignment(GetOSPolicyAssignmentRequest request) { + return getOSPolicyAssignmentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve an existing OS policy assignment. + * + *
This method always returns the latest revision. In order to retrieve a previous revision of + * the assignment, also provide the revision ID in the `name` parameter. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetOSPolicyAssignmentRequest request = + * GetOSPolicyAssignmentRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.getOSPolicyAssignmentCallable().futureCall(request); + * // Do something. + * OSPolicyAssignment response = future.get(); + * } + * }
For each OS policy assignment, the latest revision is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (OSPolicyAssignment element : + * osConfigZonalServiceClient.listOSPolicyAssignments(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments(LocationName parent) { + ListOSPolicyAssignmentsRequest request = + ListOSPolicyAssignmentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOSPolicyAssignments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignments under the parent resource. + * + *
For each OS policy assignment, the latest revision is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (OSPolicyAssignment element : + * osConfigZonalServiceClient.listOSPolicyAssignments(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments(String parent) { + ListOSPolicyAssignmentsRequest request = + ListOSPolicyAssignmentsRequest.newBuilder().setParent(parent).build(); + return listOSPolicyAssignments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignments under the parent resource. + * + *
For each OS policy assignment, the latest revision is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListOSPolicyAssignmentsRequest request = + * ListOSPolicyAssignmentsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (OSPolicyAssignment element : + * osConfigZonalServiceClient.listOSPolicyAssignments(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 ListOSPolicyAssignmentsPagedResponse listOSPolicyAssignments( + ListOSPolicyAssignmentsRequest request) { + return listOSPolicyAssignmentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignments under the parent resource. + * + *
For each OS policy assignment, the latest revision is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListOSPolicyAssignmentsRequest request = + * ListOSPolicyAssignmentsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.listOSPolicyAssignmentsPagedCallable().futureCall(request); + * // Do something. + * for (OSPolicyAssignment element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
For each OS policy assignment, the latest revision is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListOSPolicyAssignmentsRequest request = + * ListOSPolicyAssignmentsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListOSPolicyAssignmentsResponse response = + * osConfigZonalServiceClient.listOSPolicyAssignmentsCallable().call(request); + * for (OSPolicyAssignment element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * OSPolicyAssignmentName name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]"); + * for (OSPolicyAssignment element : + * osConfigZonalServiceClient.listOSPolicyAssignmentRevisions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the OS policy assignment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignmentRevisions( + OSPolicyAssignmentName name) { + ListOSPolicyAssignmentRevisionsRequest request = + ListOSPolicyAssignmentRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listOSPolicyAssignmentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignment revisions for a given OS policy assignment. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]").toString(); + * for (OSPolicyAssignment element : + * osConfigZonalServiceClient.listOSPolicyAssignmentRevisions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the OS policy assignment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignmentRevisions( + String name) { + ListOSPolicyAssignmentRevisionsRequest request = + ListOSPolicyAssignmentRevisionsRequest.newBuilder().setName(name).build(); + return listOSPolicyAssignmentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignment revisions for a given OS policy assignment. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListOSPolicyAssignmentRevisionsRequest request = + * ListOSPolicyAssignmentRevisionsRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (OSPolicyAssignment element : + * osConfigZonalServiceClient.listOSPolicyAssignmentRevisions(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 ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignmentRevisions( + ListOSPolicyAssignmentRevisionsRequest request) { + return listOSPolicyAssignmentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignment revisions for a given OS policy assignment. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListOSPolicyAssignmentRevisionsRequest request = + * ListOSPolicyAssignmentRevisionsRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallable< + ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsPagedResponse> + listOSPolicyAssignmentRevisionsPagedCallable() { + return stub.listOSPolicyAssignmentRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List the OS policy assignment revisions for a given OS policy assignment. + * + *future = + * osConfigZonalServiceClient + * .listOSPolicyAssignmentRevisionsPagedCallable() + * .futureCall(request); + * // Do something. + * for (OSPolicyAssignment element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListOSPolicyAssignmentRevisionsRequest request = + * ListOSPolicyAssignmentRevisionsRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListOSPolicyAssignmentRevisionsResponse response = + * osConfigZonalServiceClient.listOSPolicyAssignmentRevisionsCallable().call(request); + * for (OSPolicyAssignment element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable< + ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse> + listOSPolicyAssignmentRevisionsCallable() { + return stub.listOSPolicyAssignmentRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the OS policy assignment. + * + *
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
If the LRO completes and is not cancelled, all revisions associated with the OS policy + * assignment are deleted. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * OSPolicyAssignmentName name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]"); + * osConfigZonalServiceClient.deleteOSPolicyAssignmentAsync(name).get(); + * } + * }+ * + * @param name Required. The name of the OS policy assignment to be deleted + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
If the LRO completes and is not cancelled, all revisions associated with the OS policy + * assignment are deleted. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String name = + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]").toString(); + * osConfigZonalServiceClient.deleteOSPolicyAssignmentAsync(name).get(); + * } + * }+ * + * @param name Required. The name of the OS policy assignment to be deleted + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
If the LRO completes and is not cancelled, all revisions associated with the OS policy + * assignment are deleted. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * DeleteOSPolicyAssignmentRequest request = + * DeleteOSPolicyAssignmentRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .build(); + * osConfigZonalServiceClient.deleteOSPolicyAssignmentAsync(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
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
If the LRO completes and is not cancelled, all revisions associated with the OS policy + * assignment are deleted. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * DeleteOSPolicyAssignmentRequest request = + * DeleteOSPolicyAssignmentRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .build(); + * OperationFuture+ */ + public final OperationCallable< + DeleteOSPolicyAssignmentRequest, Empty, OSPolicyAssignmentOperationMetadata> + deleteOSPolicyAssignmentOperationCallable() { + return stub.deleteOSPolicyAssignmentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the OS policy assignment. + * + *future = + * osConfigZonalServiceClient + * .deleteOSPolicyAssignmentOperationCallable() + * .futureCall(request); + * // Do something. + * future.get(); + * } + * }
This method creates a new revision of the OS policy assignment. + * + *
This method returns a long running operation (LRO) that contains the rollout details. The + * rollout can be cancelled by cancelling the LRO. + * + *
If the LRO completes and is not cancelled, all revisions associated with the OS policy + * assignment are deleted. + * + *
For more information, see [Method: + * projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * DeleteOSPolicyAssignmentRequest request = + * DeleteOSPolicyAssignmentRequest.newBuilder() + * .setName( + * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.deleteOSPolicyAssignmentCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * InstanceOSPoliciesComplianceName name = + * InstanceOSPoliciesComplianceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * InstanceOSPoliciesCompliance response = + * osConfigZonalServiceClient.getInstanceOSPoliciesCompliance(name); + * } + * }+ * + * @param name Required. API resource name for instance OS policies compliance resource. + *
Format: + * `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}` + *
For `{project}`, either Compute Engine project-number or project-id can be provided. For + * `{instance}`, either Compute Engine VM instance-id or instance-name can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( + InstanceOSPoliciesComplianceName name) { + GetInstanceOSPoliciesComplianceRequest request = + GetInstanceOSPoliciesComplianceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInstanceOSPoliciesCompliance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get OS policies compliance data for the specified Compute Engine VM instance. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String name = + * InstanceOSPoliciesComplianceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * InstanceOSPoliciesCompliance response = + * osConfigZonalServiceClient.getInstanceOSPoliciesCompliance(name); + * } + * }+ * + * @param name Required. API resource name for instance OS policies compliance resource. + *
Format: + * `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}` + *
For `{project}`, either Compute Engine project-number or project-id can be provided. For + * `{instance}`, either Compute Engine VM instance-id or instance-name can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance(String name) { + GetInstanceOSPoliciesComplianceRequest request = + GetInstanceOSPoliciesComplianceRequest.newBuilder().setName(name).build(); + return getInstanceOSPoliciesCompliance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get OS policies compliance data for the specified Compute Engine VM instance. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetInstanceOSPoliciesComplianceRequest request = + * GetInstanceOSPoliciesComplianceRequest.newBuilder() + * .setName( + * InstanceOSPoliciesComplianceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]") + * .toString()) + * .build(); + * InstanceOSPoliciesCompliance response = + * osConfigZonalServiceClient.getInstanceOSPoliciesCompliance(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 InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( + GetInstanceOSPoliciesComplianceRequest request) { + return getInstanceOSPoliciesComplianceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get OS policies compliance data for the specified Compute Engine VM instance. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetInstanceOSPoliciesComplianceRequest request = + * GetInstanceOSPoliciesComplianceRequest.newBuilder() + * .setName( + * InstanceOSPoliciesComplianceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.getInstanceOSPoliciesComplianceCallable().futureCall(request); + * // Do something. + * InstanceOSPoliciesCompliance response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (InstanceOSPoliciesCompliance element : + * osConfigZonalServiceClient.listInstanceOSPoliciesCompliances(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + *
Format: `projects/{project}/locations/{location}` + *
For `{project}`, either Compute Engine project-number or project-id can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances( + LocationName parent) { + ListInstanceOSPoliciesCompliancesRequest request = + ListInstanceOSPoliciesCompliancesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInstanceOSPoliciesCompliances(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List OS policies compliance data for all Compute Engine VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (InstanceOSPoliciesCompliance element : + * osConfigZonalServiceClient.listInstanceOSPoliciesCompliances(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + *
Format: `projects/{project}/locations/{location}` + *
For `{project}`, either Compute Engine project-number or project-id can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances( + String parent) { + ListInstanceOSPoliciesCompliancesRequest request = + ListInstanceOSPoliciesCompliancesRequest.newBuilder().setParent(parent).build(); + return listInstanceOSPoliciesCompliances(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List OS policies compliance data for all Compute Engine VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListInstanceOSPoliciesCompliancesRequest request = + * ListInstanceOSPoliciesCompliancesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (InstanceOSPoliciesCompliance element : + * osConfigZonalServiceClient.listInstanceOSPoliciesCompliances(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 ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances( + ListInstanceOSPoliciesCompliancesRequest request) { + return listInstanceOSPoliciesCompliancesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List OS policies compliance data for all Compute Engine VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListInstanceOSPoliciesCompliancesRequest request = + * ListInstanceOSPoliciesCompliancesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallable< + ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesPagedResponse> + listInstanceOSPoliciesCompliancesPagedCallable() { + return stub.listInstanceOSPoliciesCompliancesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List OS policies compliance data for all Compute Engine VM instances in the specified zone. + * + *future = + * osConfigZonalServiceClient + * .listInstanceOSPoliciesCompliancesPagedCallable() + * .futureCall(request); + * // Do something. + * for (InstanceOSPoliciesCompliance element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListInstanceOSPoliciesCompliancesRequest request = + * ListInstanceOSPoliciesCompliancesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListInstanceOSPoliciesCompliancesResponse response = + * osConfigZonalServiceClient.listInstanceOSPoliciesCompliancesCallable().call(request); + * for (InstanceOSPoliciesCompliance element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable< + ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse> + listInstanceOSPoliciesCompliancesCallable() { + return stub.listInstanceOSPoliciesCompliancesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get inventory data for the specified VM instance. If the VM has no associated inventory, the + * message `NOT_FOUND` is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * InventoryName name = InventoryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * Inventory response = osConfigZonalServiceClient.getInventory(name); + * } + * }+ * + * @param name Required. API resource name for inventory resource. + *
Format: `projects/{project}/locations/{location}/instances/{instance}/inventory` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Inventory getInventory(InventoryName name) { + GetInventoryRequest request = + GetInventoryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getInventory(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get inventory data for the specified VM instance. If the VM has no associated inventory, the + * message `NOT_FOUND` is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String name = InventoryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * Inventory response = osConfigZonalServiceClient.getInventory(name); + * } + * }+ * + * @param name Required. API resource name for inventory resource. + *
Format: `projects/{project}/locations/{location}/instances/{instance}/inventory` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Inventory getInventory(String name) { + GetInventoryRequest request = GetInventoryRequest.newBuilder().setName(name).build(); + return getInventory(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get inventory data for the specified VM instance. If the VM has no associated inventory, the + * message `NOT_FOUND` is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetInventoryRequest request = + * GetInventoryRequest.newBuilder() + * .setName(InventoryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setView(InventoryView.forNumber(0)) + * .build(); + * Inventory response = osConfigZonalServiceClient.getInventory(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 Inventory getInventory(GetInventoryRequest request) { + return getInventoryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get inventory data for the specified VM instance. If the VM has no associated inventory, the + * message `NOT_FOUND` is returned. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetInventoryRequest request = + * GetInventoryRequest.newBuilder() + * .setName(InventoryName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setView(InventoryView.forNumber(0)) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.getInventoryCallable().futureCall(request); + * // Do something. + * Inventory response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * for (Inventory element : osConfigZonalServiceClient.listInventories(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + *
Format: `projects/{project}/locations/{location}/instances/{instance}` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, only hyphen or dash character is supported to list inventories across VMs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInventoriesPagedResponse listInventories(InstanceName parent) { + ListInventoriesRequest request = + ListInventoriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInventories(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List inventory data for all VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * for (Inventory element : osConfigZonalServiceClient.listInventories(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + *
Format: `projects/{project}/locations/{location}/instances/{instance}` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, only hyphen or dash character is supported to list inventories across VMs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInventoriesPagedResponse listInventories(String parent) { + ListInventoriesRequest request = ListInventoriesRequest.newBuilder().setParent(parent).build(); + return listInventories(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List inventory data for all VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListInventoriesRequest request = + * ListInventoriesRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setView(InventoryView.forNumber(0)) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (Inventory element : osConfigZonalServiceClient.listInventories(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 ListInventoriesPagedResponse listInventories(ListInventoriesRequest request) { + return listInventoriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List inventory data for all VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListInventoriesRequest request = + * ListInventoriesRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setView(InventoryView.forNumber(0)) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.listInventoriesPagedCallable().futureCall(request); + * // Do something. + * for (Inventory element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListInventoriesRequest request = + * ListInventoriesRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setView(InventoryView.forNumber(0)) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListInventoriesResponse response = + * osConfigZonalServiceClient.listInventoriesCallable().call(request); + * for (Inventory element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * VulnerabilityReportName name = + * VulnerabilityReportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * VulnerabilityReport response = osConfigZonalServiceClient.getVulnerabilityReport(name); + * } + * }+ * + * @param name Required. API resource name for vulnerability resource. + *
Format: + * `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VulnerabilityReport getVulnerabilityReport(VulnerabilityReportName name) { + GetVulnerabilityReportRequest request = + GetVulnerabilityReportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getVulnerabilityReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have + * vulnerability reports associated with them. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String name = VulnerabilityReportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * VulnerabilityReport response = osConfigZonalServiceClient.getVulnerabilityReport(name); + * } + * }+ * + * @param name Required. API resource name for vulnerability resource. + *
Format: + * `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VulnerabilityReport getVulnerabilityReport(String name) { + GetVulnerabilityReportRequest request = + GetVulnerabilityReportRequest.newBuilder().setName(name).build(); + return getVulnerabilityReport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have + * vulnerability reports associated with them. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetVulnerabilityReportRequest request = + * GetVulnerabilityReportRequest.newBuilder() + * .setName( + * VulnerabilityReportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .build(); + * VulnerabilityReport response = osConfigZonalServiceClient.getVulnerabilityReport(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 VulnerabilityReport getVulnerabilityReport(GetVulnerabilityReportRequest request) { + return getVulnerabilityReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have + * vulnerability reports associated with them. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * GetVulnerabilityReportRequest request = + * GetVulnerabilityReportRequest.newBuilder() + * .setName( + * VulnerabilityReportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.getVulnerabilityReportCallable().futureCall(request); + * // Do something. + * VulnerabilityReport response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * for (VulnerabilityReport element : + * osConfigZonalServiceClient.listVulnerabilityReports(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + *
Format: `projects/{project}/locations/{location}/instances/{instance}` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, only `-` character is supported to list vulnerability reports across VMs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(InstanceName parent) { + ListVulnerabilityReportsRequest request = + ListVulnerabilityReportsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVulnerabilityReports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List vulnerability reports for all VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * for (VulnerabilityReport element : + * osConfigZonalServiceClient.listVulnerabilityReports(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The parent resource name. + *
Format: `projects/{project}/locations/{location}/instances/{instance}` + *
For `{project}`, either `project-number` or `project-id` can be provided. For + * `{instance}`, only `-` character is supported to list vulnerability reports across VMs. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(String parent) { + ListVulnerabilityReportsRequest request = + ListVulnerabilityReportsRequest.newBuilder().setParent(parent).build(); + return listVulnerabilityReports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List vulnerability reports for all VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListVulnerabilityReportsRequest request = + * ListVulnerabilityReportsRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * for (VulnerabilityReport element : + * osConfigZonalServiceClient.listVulnerabilityReports(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 ListVulnerabilityReportsPagedResponse listVulnerabilityReports( + ListVulnerabilityReportsRequest request) { + return listVulnerabilityReportsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List vulnerability reports for all VM instances in the specified zone. + * + *
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListVulnerabilityReportsRequest request = + * ListVulnerabilityReportsRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * osConfigZonalServiceClient.listVulnerabilityReportsPagedCallable().futureCall(request); + * // Do something. + * for (VulnerabilityReport element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (OsConfigZonalServiceClient osConfigZonalServiceClient = + * OsConfigZonalServiceClient.create()) { + * ListVulnerabilityReportsRequest request = + * ListVulnerabilityReportsRequest.newBuilder() + * .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .build(); + * while (true) { + * ListVulnerabilityReportsResponse response = + * osConfigZonalServiceClient.listVulnerabilityReportsCallable().call(request); + * for (VulnerabilityReport element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final 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 total timeout of getOSPolicyAssignment to 30 seconds: + * + *
{@code + * OsConfigZonalServiceSettings.Builder osConfigZonalServiceSettingsBuilder = + * OsConfigZonalServiceSettings.newBuilder(); + * osConfigZonalServiceSettingsBuilder + * .getOSPolicyAssignmentSettings() + * .setRetrySettings( + * osConfigZonalServiceSettingsBuilder + * .getOSPolicyAssignmentSettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * OsConfigZonalServiceSettings osConfigZonalServiceSettings = + * osConfigZonalServiceSettingsBuilder.build(); + * }+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class OsConfigZonalServiceSettings extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction ======================= OsConfigZonalServiceClient =======================
+ *
+ * Service Description: Zonal OS Config API
+ *
+ * The OS Config service is the server-side component that allows users to manage package
+ * installations and patch jobs for Compute Engine VM instances.
+ *
+ * Sample for OsConfigZonalServiceClient:
+ *
+ * This class is for advanced usage.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcOsConfigZonalServiceCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub {
+ private static final MethodDescriptor This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class OsConfigZonalServiceStub implements BackgroundResource {
+
+ public OperationsStub getOperationsStub() {
+ throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+ }
+
+ public OperationCallable<
+ CreateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata>
+ createOSPolicyAssignmentOperationCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createOSPolicyAssignmentOperationCallable()");
+ }
+
+ 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 total timeout of getOSPolicyAssignment to 30 seconds:
+ *
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * OSPolicyAssignmentName name =
+ * OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]");
+ * OSPolicyAssignment response = osConfigZonalServiceClient.getOSPolicyAssignment(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.osconfig.v1alpha;
+
+import javax.annotation.Generated;
diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceCallableFactory.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceCallableFactory.java
new file mode 100644
index 00000000..52195918
--- /dev/null
+++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceCallableFactory.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2021 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.osconfig.v1alpha.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the OsConfigZonalService service API.
+ *
+ *
+ *
+ *
+ * {@code
+ * OsConfigZonalServiceStubSettings.Builder osConfigZonalServiceSettingsBuilder =
+ * OsConfigZonalServiceStubSettings.newBuilder();
+ * osConfigZonalServiceSettingsBuilder
+ * .getOSPolicyAssignmentSettings()
+ * .setRetrySettings(
+ * osConfigZonalServiceSettingsBuilder
+ * .getOSPolicyAssignmentSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * OsConfigZonalServiceStubSettings osConfigZonalServiceSettings =
+ * osConfigZonalServiceSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class OsConfigZonalServiceStubSettings
+ extends StubSettings