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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName name = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + * } + * }+ * + *
Note: close() needs to be called on the TelcoAutomationClient 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 TelcoAutomationSettings 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 + * TelcoAutomationSettings telcoAutomationSettings = + * TelcoAutomationSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * TelcoAutomationClient telcoAutomationClient = + * TelcoAutomationClient.create(telcoAutomationSettings); + * }+ * + *
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 + * TelcoAutomationSettings telcoAutomationSettings = + * TelcoAutomationSettings.newBuilder().setEndpoint(myEndpoint).build(); + * TelcoAutomationClient telcoAutomationClient = + * TelcoAutomationClient.create(telcoAutomationSettings); + * }+ * + *
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@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 + * TelcoAutomationSettings telcoAutomationSettings = + * TelcoAutomationSettings.newHttpJsonBuilder().build(); + * TelcoAutomationClient telcoAutomationClient = + * TelcoAutomationClient.create(telcoAutomationSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class TelcoAutomationClient implements BackgroundResource { + private final TelcoAutomationSettings settings; + private final TelcoAutomationStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of TelcoAutomationClient with default settings. */ + public static final TelcoAutomationClient create() throws IOException { + return create(TelcoAutomationSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TelcoAutomationClient, 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 TelcoAutomationClient create(TelcoAutomationSettings settings) + throws IOException { + return new TelcoAutomationClient(settings); + } + + /** + * Constructs an instance of TelcoAutomationClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(TelcoAutomationSettings). + */ + public static final TelcoAutomationClient create(TelcoAutomationStub stub) { + return new TelcoAutomationClient(stub); + } + + /** + * Constructs an instance of TelcoAutomationClient, 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 TelcoAutomationClient(TelcoAutomationSettings settings) throws IOException { + this.settings = settings; + this.stub = ((TelcoAutomationStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected TelcoAutomationClient(TelcoAutomationStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final TelcoAutomationSettings getSettings() { + return settings; + } + + public TelcoAutomationStub 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 com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (OrchestrationCluster element : + * telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value for ListOrchestrationClustersRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrchestrationClustersPagedResponse listOrchestrationClusters( + LocationName parent) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOrchestrationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (OrchestrationCluster element : + * telcoAutomationClient.listOrchestrationClusters(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value for ListOrchestrationClustersRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrchestrationClustersPagedResponse listOrchestrationClusters(String parent) { + ListOrchestrationClustersRequest request = + ListOrchestrationClustersRequest.newBuilder().setParent(parent).build(); + return listOrchestrationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListOrchestrationClustersRequest request = + * ListOrchestrationClustersRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * for (OrchestrationCluster element : + * telcoAutomationClient.listOrchestrationClusters(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 ListOrchestrationClustersPagedResponse listOrchestrationClusters( + ListOrchestrationClustersRequest request) { + return listOrchestrationClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListOrchestrationClustersRequest request = + * ListOrchestrationClustersRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * ApiFuture+ */ + public final UnaryCallable< + ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse> + listOrchestrationClustersPagedCallable() { + return stub.listOrchestrationClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists OrchestrationClusters in a given project and location. + * + *future = + * telcoAutomationClient.listOrchestrationClustersPagedCallable().futureCall(request); + * // Do something. + * for (OrchestrationCluster element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListOrchestrationClustersRequest request = + * ListOrchestrationClustersRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * while (true) { + * ListOrchestrationClustersResponse response = + * telcoAutomationClient.listOrchestrationClustersCallable().call(request); + * for (OrchestrationCluster element : response.getOrchestrationClustersList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName name = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrchestrationCluster getOrchestrationCluster(OrchestrationClusterName name) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOrchestrationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OrchestrationCluster getOrchestrationCluster(String name) { + GetOrchestrationClusterRequest request = + GetOrchestrationClusterRequest.newBuilder().setName(name).build(); + return getOrchestrationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetOrchestrationClusterRequest request = + * GetOrchestrationClusterRequest.newBuilder() + * .setName( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .build(); + * OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(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 OrchestrationCluster getOrchestrationCluster( + GetOrchestrationClusterRequest request) { + return getOrchestrationClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single OrchestrationCluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetOrchestrationClusterRequest request = + * GetOrchestrationClusterRequest.newBuilder() + * .setName( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.getOrchestrationClusterCallable().futureCall(request); + * // Do something. + * OrchestrationCluster response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + * String orchestrationClusterId = "orchestrationClusterId75469684"; + * OrchestrationCluster response = + * telcoAutomationClient + * .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + * .get(); + * } + * }+ * + * @param parent Required. Value for parent. + * @param orchestrationCluster Required. The resource being created + * @param orchestrationClusterId Required. Id of the requesting object If auto-generating Id + * server-side, remove this field and orchestration_cluster_id from the method_signature of + * Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * OrchestrationCluster orchestrationCluster = OrchestrationCluster.newBuilder().build(); + * String orchestrationClusterId = "orchestrationClusterId75469684"; + * OrchestrationCluster response = + * telcoAutomationClient + * .createOrchestrationClusterAsync(parent, orchestrationCluster, orchestrationClusterId) + * .get(); + * } + * }+ * + * @param parent Required. Value for parent. + * @param orchestrationCluster Required. The resource being created + * @param orchestrationClusterId Required. Id of the requesting object If auto-generating Id + * server-side, remove this field and orchestration_cluster_id from the method_signature of + * Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateOrchestrationClusterRequest request = + * CreateOrchestrationClusterRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setOrchestrationClusterId("orchestrationClusterId75469684") + * .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * OrchestrationCluster response = + * telcoAutomationClient.createOrchestrationClusterAsync(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
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateOrchestrationClusterRequest request = + * CreateOrchestrationClusterRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setOrchestrationClusterId("orchestrationClusterId75469684") + * .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * OperationFuture+ */ + public final OperationCallable< + CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata> + createOrchestrationClusterOperationCallable() { + return stub.createOrchestrationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new OrchestrationCluster in a given project and location. + * + *future = + * telcoAutomationClient.createOrchestrationClusterOperationCallable().futureCall(request); + * // Do something. + * OrchestrationCluster response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateOrchestrationClusterRequest request = + * CreateOrchestrationClusterRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setOrchestrationClusterId("orchestrationClusterId75469684") + * .setOrchestrationCluster(OrchestrationCluster.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.createOrchestrationClusterCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName name = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * telcoAutomationClient.deleteOrchestrationClusterAsync(name).get(); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * telcoAutomationClient.deleteOrchestrationClusterAsync(name).get(); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteOrchestrationClusterRequest request = + * DeleteOrchestrationClusterRequest.newBuilder() + * .setName( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setRequestId("requestId693933066") + * .build(); + * telcoAutomationClient.deleteOrchestrationClusterAsync(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
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteOrchestrationClusterRequest request = + * DeleteOrchestrationClusterRequest.newBuilder() + * .setName( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setRequestId("requestId693933066") + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * telcoAutomationClient.deleteOrchestrationClusterOperationCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteOrchestrationClusterRequest request = + * DeleteOrchestrationClusterRequest.newBuilder() + * .setName( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.deleteOrchestrationClusterCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value for ListEdgeSlmsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEdgeSlmsPagedResponse listEdgeSlms(LocationName parent) { + ListEdgeSlmsRequest request = + ListEdgeSlmsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEdgeSlms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value for ListEdgeSlmsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEdgeSlmsPagedResponse listEdgeSlms(String parent) { + ListEdgeSlmsRequest request = ListEdgeSlmsRequest.newBuilder().setParent(parent).build(); + return listEdgeSlms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListEdgeSlmsRequest request = + * ListEdgeSlmsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * for (EdgeSlm element : telcoAutomationClient.listEdgeSlms(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 ListEdgeSlmsPagedResponse listEdgeSlms(ListEdgeSlmsRequest request) { + return listEdgeSlmsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists EdgeSlms in a given project and location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListEdgeSlmsRequest request = + * ListEdgeSlmsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listEdgeSlmsPagedCallable().futureCall(request); + * // Do something. + * for (EdgeSlm element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListEdgeSlmsRequest request = + * ListEdgeSlmsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setFilter("filter-1274492040") + * .setOrderBy("orderBy-1207110587") + * .build(); + * while (true) { + * ListEdgeSlmsResponse response = telcoAutomationClient.listEdgeSlmsCallable().call(request); + * for (EdgeSlm element : response.getEdgeSlmsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + * EdgeSlm response = telcoAutomationClient.getEdgeSlm(name); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EdgeSlm getEdgeSlm(EdgeSlmName name) { + GetEdgeSlmRequest request = + GetEdgeSlmRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEdgeSlm(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString(); + * EdgeSlm response = telcoAutomationClient.getEdgeSlm(name); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EdgeSlm getEdgeSlm(String name) { + GetEdgeSlmRequest request = GetEdgeSlmRequest.newBuilder().setName(name).build(); + return getEdgeSlm(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetEdgeSlmRequest request = + * GetEdgeSlmRequest.newBuilder() + * .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + * .build(); + * EdgeSlm response = telcoAutomationClient.getEdgeSlm(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 EdgeSlm getEdgeSlm(GetEdgeSlmRequest request) { + return getEdgeSlmCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single EdgeSlm. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetEdgeSlmRequest request = + * GetEdgeSlmRequest.newBuilder() + * .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = telcoAutomationClient.getEdgeSlmCallable().futureCall(request); + * // Do something. + * EdgeSlm response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + * String edgeSlmId = "edgeSlmId213186994"; + * EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + * } + * }+ * + * @param parent Required. Value for parent. + * @param edgeSlm Required. The resource being created + * @param edgeSlmId Required. Id of the requesting object If auto-generating Id server-side, + * remove this field and edge_slm_id from the method_signature of Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * EdgeSlm edgeSlm = EdgeSlm.newBuilder().build(); + * String edgeSlmId = "edgeSlmId213186994"; + * EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(parent, edgeSlm, edgeSlmId).get(); + * } + * }+ * + * @param parent Required. Value for parent. + * @param edgeSlm Required. The resource being created + * @param edgeSlmId Required. Id of the requesting object If auto-generating Id server-side, + * remove this field and edge_slm_id from the method_signature of Create RPC + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateEdgeSlmRequest request = + * CreateEdgeSlmRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setEdgeSlmId("edgeSlmId213186994") + * .setEdgeSlm(EdgeSlm.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * EdgeSlm response = telcoAutomationClient.createEdgeSlmAsync(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
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateEdgeSlmRequest request = + * CreateEdgeSlmRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setEdgeSlmId("edgeSlmId213186994") + * .setEdgeSlm(EdgeSlm.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * telcoAutomationClient.createEdgeSlmOperationCallable().futureCall(request); + * // Do something. + * EdgeSlm response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateEdgeSlmRequest request = + * CreateEdgeSlmRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setEdgeSlmId("edgeSlmId213186994") + * .setEdgeSlm(EdgeSlm.newBuilder().build()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.createEdgeSlmCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * EdgeSlmName name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]"); + * telcoAutomationClient.deleteEdgeSlmAsync(name).get(); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString(); + * telcoAutomationClient.deleteEdgeSlmAsync(name).get(); + * } + * }+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteEdgeSlmRequest request = + * DeleteEdgeSlmRequest.newBuilder() + * .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + * .setRequestId("requestId693933066") + * .build(); + * telcoAutomationClient.deleteEdgeSlmAsync(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
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteEdgeSlmRequest request = + * DeleteEdgeSlmRequest.newBuilder() + * .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + * .setRequestId("requestId693933066") + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * telcoAutomationClient.deleteEdgeSlmOperationCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteEdgeSlmRequest request = + * DeleteEdgeSlmRequest.newBuilder() + * .setName(EdgeSlmName.of("[PROJECT]", "[LOCATION]", "[EDGE_SLM]").toString()) + * .setRequestId("requestId693933066") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.deleteEdgeSlmCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * Blueprint blueprint = Blueprint.newBuilder().build(); + * String blueprintId = "blueprintId-1159505138"; + * Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId); + * } + * }+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param blueprint Required. The `Blueprint` to create. + * @param blueprintId Optional. The name of the blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint createBlueprint( + OrchestrationClusterName parent, Blueprint blueprint, String blueprintId) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBlueprint(blueprint) + .setBlueprintId(blueprintId) + .build(); + return createBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * Blueprint blueprint = Blueprint.newBuilder().build(); + * String blueprintId = "blueprintId-1159505138"; + * Blueprint response = telcoAutomationClient.createBlueprint(parent, blueprint, blueprintId); + * } + * }+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param blueprint Required. The `Blueprint` to create. + * @param blueprintId Optional. The name of the blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint createBlueprint(String parent, Blueprint blueprint, String blueprintId) { + CreateBlueprintRequest request = + CreateBlueprintRequest.newBuilder() + .setParent(parent) + .setBlueprint(blueprint) + .setBlueprintId(blueprintId) + .build(); + return createBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateBlueprintRequest request = + * CreateBlueprintRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setBlueprintId("blueprintId-1159505138") + * .setBlueprint(Blueprint.newBuilder().build()) + * .build(); + * Blueprint response = telcoAutomationClient.createBlueprint(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 Blueprint createBlueprint(CreateBlueprintRequest request) { + return createBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateBlueprintRequest request = + * CreateBlueprintRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setBlueprintId("blueprintId-1159505138") + * .setBlueprint(Blueprint.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.createBlueprintCallable().futureCall(request); + * // Do something. + * Blueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * Blueprint blueprint = Blueprint.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Blueprint response = telcoAutomationClient.updateBlueprint(blueprint, updateMask); + * } + * }+ * + * @param blueprint Required. The `blueprint` to update. + * @param updateMask Required. Update mask is used to specify the fields to be overwritten in the + * `blueprint` resource by the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint updateBlueprint(Blueprint blueprint, FieldMask updateMask) { + UpdateBlueprintRequest request = + UpdateBlueprintRequest.newBuilder() + .setBlueprint(blueprint) + .setUpdateMask(updateMask) + .build(); + return updateBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * UpdateBlueprintRequest request = + * UpdateBlueprintRequest.newBuilder() + * .setBlueprint(Blueprint.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * Blueprint response = telcoAutomationClient.updateBlueprint(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 Blueprint updateBlueprint(UpdateBlueprintRequest request) { + return updateBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * UpdateBlueprintRequest request = + * UpdateBlueprintRequest.newBuilder() + * .setBlueprint(Blueprint.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.updateBlueprintCallable().futureCall(request); + * // Do something. + * Blueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * Blueprint response = telcoAutomationClient.getBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint. Case 1: If the name provided in the request is + * {blueprint_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {blueprint}, then the current + * state of the blueprint is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint getBlueprint(BlueprintName name) { + GetBlueprintRequest request = + GetBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * Blueprint response = telcoAutomationClient.getBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint. Case 1: If the name provided in the request is + * {blueprint_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {blueprint}, then the current + * state of the blueprint is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint getBlueprint(String name) { + GetBlueprintRequest request = GetBlueprintRequest.newBuilder().setName(name).build(); + return getBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetBlueprintRequest request = + * GetBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .setView(BlueprintView.forNumber(0)) + * .build(); + * Blueprint response = telcoAutomationClient.getBlueprint(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 Blueprint getBlueprint(GetBlueprintRequest request) { + return getBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetBlueprintRequest request = + * GetBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .setView(BlueprintView.forNumber(0)) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.getBlueprintCallable().futureCall(request); + * // Do something. + * Blueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * telcoAutomationClient.deleteBlueprint(name); + * } + * }+ * + * @param name Required. The name of blueprint to delete. Blueprint name should be in the format + * {blueprint_id}, if {blueprint_id}{@literal @}{revision_id} is passed then the API throws + * invalid argument. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBlueprint(BlueprintName name) { + DeleteBlueprintRequest request = + DeleteBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * telcoAutomationClient.deleteBlueprint(name); + * } + * }+ * + * @param name Required. The name of blueprint to delete. Blueprint name should be in the format + * {blueprint_id}, if {blueprint_id}{@literal @}{revision_id} is passed then the API throws + * invalid argument. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBlueprint(String name) { + DeleteBlueprintRequest request = DeleteBlueprintRequest.newBuilder().setName(name).build(); + deleteBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteBlueprintRequest request = + * DeleteBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * telcoAutomationClient.deleteBlueprint(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 void deleteBlueprint(DeleteBlueprintRequest request) { + deleteBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a blueprint and all its revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeleteBlueprintRequest request = + * DeleteBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = telcoAutomationClient.deleteBlueprintCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintsPagedResponse listBlueprints(OrchestrationClusterName parent) { + ListBlueprintsRequest request = + ListBlueprintsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * for (Blueprint element : telcoAutomationClient.listBlueprints(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintsPagedResponse listBlueprints(String parent) { + ListBlueprintsRequest request = ListBlueprintsRequest.newBuilder().setParent(parent).build(); + return listBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListBlueprintsRequest request = + * ListBlueprintsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Blueprint element : telcoAutomationClient.listBlueprints(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 ListBlueprintsPagedResponse listBlueprints(ListBlueprintsRequest request) { + return listBlueprintsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all blueprints. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListBlueprintsRequest request = + * ListBlueprintsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listBlueprintsPagedCallable().futureCall(request); + * // Do something. + * for (Blueprint element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListBlueprintsRequest request = + * ListBlueprintsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListBlueprintsResponse response = + * telcoAutomationClient.listBlueprintsCallable().call(request); + * for (Blueprint element : response.getBlueprintsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * Blueprint response = telcoAutomationClient.approveBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint to approve. The blueprint must be in Proposed + * state. A new revision is committed on approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint approveBlueprint(BlueprintName name) { + ApproveBlueprintRequest request = + ApproveBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return approveBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * Blueprint response = telcoAutomationClient.approveBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint to approve. The blueprint must be in Proposed + * state. A new revision is committed on approval. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint approveBlueprint(String name) { + ApproveBlueprintRequest request = ApproveBlueprintRequest.newBuilder().setName(name).build(); + return approveBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ApproveBlueprintRequest request = + * ApproveBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * Blueprint response = telcoAutomationClient.approveBlueprint(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 Blueprint approveBlueprint(ApproveBlueprintRequest request) { + return approveBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a blueprint and commits a new revision. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ApproveBlueprintRequest request = + * ApproveBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.approveBlueprintCallable().futureCall(request); + * // Do something. + * Blueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * Blueprint response = telcoAutomationClient.proposeBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint being proposed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint proposeBlueprint(BlueprintName name) { + ProposeBlueprintRequest request = + ProposeBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return proposeBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * Blueprint response = telcoAutomationClient.proposeBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint being proposed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint proposeBlueprint(String name) { + ProposeBlueprintRequest request = ProposeBlueprintRequest.newBuilder().setName(name).build(); + return proposeBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ProposeBlueprintRequest request = + * ProposeBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * Blueprint response = telcoAutomationClient.proposeBlueprint(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 Blueprint proposeBlueprint(ProposeBlueprintRequest request) { + return proposeBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Proposes a blueprint for approval of changes. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ProposeBlueprintRequest request = + * ProposeBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.proposeBlueprintCallable().futureCall(request); + * // Do something. + * Blueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * Blueprint response = telcoAutomationClient.rejectBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint being rejected. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint rejectBlueprint(BlueprintName name) { + RejectBlueprintRequest request = + RejectBlueprintRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return rejectBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * Blueprint response = telcoAutomationClient.rejectBlueprint(name); + * } + * }+ * + * @param name Required. The name of the blueprint being rejected. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Blueprint rejectBlueprint(String name) { + RejectBlueprintRequest request = RejectBlueprintRequest.newBuilder().setName(name).build(); + return rejectBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * RejectBlueprintRequest request = + * RejectBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * Blueprint response = telcoAutomationClient.rejectBlueprint(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 Blueprint rejectBlueprint(RejectBlueprintRequest request) { + return rejectBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rejects a blueprint revision proposal and flips it back to Draft state. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * RejectBlueprintRequest request = + * RejectBlueprintRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.rejectBlueprintCallable().futureCall(request); + * // Do something. + * Blueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the blueprint to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(BlueprintName name) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the blueprint to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBlueprintRevisionsPagedResponse listBlueprintRevisions(String name) { + ListBlueprintRevisionsRequest request = + ListBlueprintRevisionsRequest.newBuilder().setName(name).build(); + return listBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListBlueprintRevisionsRequest request = + * ListBlueprintRevisionsRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Blueprint element : telcoAutomationClient.listBlueprintRevisions(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 ListBlueprintRevisionsPagedResponse listBlueprintRevisions( + ListBlueprintRevisionsRequest request) { + return listBlueprintRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List blueprint revisions of a given blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListBlueprintRevisionsRequest request = + * ListBlueprintRevisionsRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listBlueprintRevisionsPagedCallable().futureCall(request); + * // Do something. + * for (Blueprint element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListBlueprintRevisionsRequest request = + * ListBlueprintRevisionsRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListBlueprintRevisionsResponse response = + * telcoAutomationClient.listBlueprintRevisionsCallable().call(request); + * for (Blueprint element : response.getBlueprintsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * String query = "query107944136"; + * for (Blueprint element : + * telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all blueprints. 2. + * "latest=true" : Lists latest revisions across all blueprints. 3. "name={name}" : Lists all + * revisions of blueprint with name {name}. 4. "name={name} latest=true": Lists latest + * revision of blueprint with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + OrchestrationClusterName parent, String query) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * String query = "query107944136"; + * for (Blueprint element : + * telcoAutomationClient.searchBlueprintRevisions(parent, query).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all blueprints. 2. + * "latest=true" : Lists latest revisions across all blueprints. 3. "name={name}" : Lists all + * revisions of blueprint with name {name}. 4. "name={name} latest=true": Lists latest + * revision of blueprint with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + String parent, String query) { + SearchBlueprintRevisionsRequest request = + SearchBlueprintRevisionsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchBlueprintRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * SearchBlueprintRevisionsRequest request = + * SearchBlueprintRevisionsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setQuery("query107944136") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Blueprint element : + * telcoAutomationClient.searchBlueprintRevisions(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 SearchBlueprintRevisionsPagedResponse searchBlueprintRevisions( + SearchBlueprintRevisionsRequest request) { + return searchBlueprintRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across blueprint revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * SearchBlueprintRevisionsRequest request = + * SearchBlueprintRevisionsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setQuery("query107944136") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.searchBlueprintRevisionsPagedCallable().futureCall(request); + * // Do something. + * for (Blueprint element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * SearchBlueprintRevisionsRequest request = + * SearchBlueprintRevisionsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setQuery("query107944136") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * SearchBlueprintRevisionsResponse response = + * telcoAutomationClient.searchBlueprintRevisionsCallable().call(request); + * for (Blueprint element : response.getBlueprintsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * String query = "query107944136"; + * for (Deployment element : + * telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all deployments. + * 2. "latest=true" : Lists latest revisions across all deployments. 3. "name={name}" : Lists + * all revisions of deployment with name {name}. 4. "name={name} latest=true": Lists latest + * revision of deployment with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + OrchestrationClusterName parent, String query) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setQuery(query) + .build(); + return searchDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * String query = "query107944136"; + * for (Deployment element : + * telcoAutomationClient.searchDeploymentRevisions(parent, query).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param query Required. Supported queries: 1. "" : Lists all revisions across all deployments. + * 2. "latest=true" : Lists latest revisions across all deployments. 3. "name={name}" : Lists + * all revisions of deployment with name {name}. 4. "name={name} latest=true": Lists latest + * revision of deployment with name {name} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + String parent, String query) { + SearchDeploymentRevisionsRequest request = + SearchDeploymentRevisionsRequest.newBuilder().setParent(parent).setQuery(query).build(); + return searchDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * SearchDeploymentRevisionsRequest request = + * SearchDeploymentRevisionsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setQuery("query107944136") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Deployment element : + * telcoAutomationClient.searchDeploymentRevisions(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 SearchDeploymentRevisionsPagedResponse searchDeploymentRevisions( + SearchDeploymentRevisionsRequest request) { + return searchDeploymentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * SearchDeploymentRevisionsRequest request = + * SearchDeploymentRevisionsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setQuery("query107944136") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallable< + SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse> + searchDeploymentRevisionsPagedCallable() { + return stub.searchDeploymentRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches across deployment revisions. + * + *future = + * telcoAutomationClient.searchDeploymentRevisionsPagedCallable().futureCall(request); + * // Do something. + * for (Deployment element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * SearchDeploymentRevisionsRequest request = + * SearchDeploymentRevisionsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setQuery("query107944136") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * SearchDeploymentRevisionsResponse response = + * telcoAutomationClient.searchDeploymentRevisionsCallable().call(request); + * for (Deployment element : response.getDeploymentsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * BlueprintName name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]"); + * DiscardBlueprintChangesResponse response = + * telcoAutomationClient.discardBlueprintChanges(name); + * } + * }+ * + * @param name Required. The name of the blueprint of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardBlueprintChangesResponse discardBlueprintChanges(BlueprintName name) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return discardBlueprintChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * BlueprintName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString(); + * DiscardBlueprintChangesResponse response = + * telcoAutomationClient.discardBlueprintChanges(name); + * } + * }+ * + * @param name Required. The name of the blueprint of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardBlueprintChangesResponse discardBlueprintChanges(String name) { + DiscardBlueprintChangesRequest request = + DiscardBlueprintChangesRequest.newBuilder().setName(name).build(); + return discardBlueprintChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DiscardBlueprintChangesRequest request = + * DiscardBlueprintChangesRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * DiscardBlueprintChangesResponse response = + * telcoAutomationClient.discardBlueprintChanges(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 DiscardBlueprintChangesResponse discardBlueprintChanges( + DiscardBlueprintChangesRequest request) { + return discardBlueprintChangesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint + * revision. No changes take place if a blueprint does not have revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DiscardBlueprintChangesRequest request = + * DiscardBlueprintChangesRequest.newBuilder() + * .setName( + * BlueprintName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[BLUEPRINT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.discardBlueprintChangesCallable().futureCall(request); + * // Do something. + * DiscardBlueprintChangesResponse response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (PublicBlueprint element : + * telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value of public blueprint. Format should be - + * "projects/{project_id}/locations/{location_name}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublicBlueprintsPagedResponse listPublicBlueprints(LocationName parent) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPublicBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (PublicBlueprint element : + * telcoAutomationClient.listPublicBlueprints(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. Parent value of public blueprint. Format should be - + * "projects/{project_id}/locations/{location_name}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublicBlueprintsPagedResponse listPublicBlueprints(String parent) { + ListPublicBlueprintsRequest request = + ListPublicBlueprintsRequest.newBuilder().setParent(parent).build(); + return listPublicBlueprints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListPublicBlueprintsRequest request = + * ListPublicBlueprintsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (PublicBlueprint element : + * telcoAutomationClient.listPublicBlueprints(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 ListPublicBlueprintsPagedResponse listPublicBlueprints( + ListPublicBlueprintsRequest request) { + return listPublicBlueprintsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListPublicBlueprintsRequest request = + * ListPublicBlueprintsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listPublicBlueprintsPagedCallable().futureCall(request); + * // Do something. + * for (PublicBlueprint element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListPublicBlueprintsRequest request = + * ListPublicBlueprintsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListPublicBlueprintsResponse response = + * telcoAutomationClient.listPublicBlueprintsCallable().call(request); + * for (PublicBlueprint element : response.getPublicBlueprintsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * PublicBlueprintName name = + * PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]"); + * PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name); + * } + * }+ * + * @param name Required. The name of the public blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicBlueprint getPublicBlueprint(PublicBlueprintName name) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPublicBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString(); + * PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(name); + * } + * }+ * + * @param name Required. The name of the public blueprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PublicBlueprint getPublicBlueprint(String name) { + GetPublicBlueprintRequest request = + GetPublicBlueprintRequest.newBuilder().setName(name).build(); + return getPublicBlueprint(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetPublicBlueprintRequest request = + * GetPublicBlueprintRequest.newBuilder() + * .setName( + * PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + * .build(); + * PublicBlueprint response = telcoAutomationClient.getPublicBlueprint(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 PublicBlueprint getPublicBlueprint(GetPublicBlueprintRequest request) { + return getPublicBlueprintCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested public blueprint. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetPublicBlueprintRequest request = + * GetPublicBlueprintRequest.newBuilder() + * .setName( + * PublicBlueprintName.of("[PROJECT]", "[LOCATION]", "[PUBLIC_LUEPRINT]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.getPublicBlueprintCallable().futureCall(request); + * // Do something. + * PublicBlueprint response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * Deployment deployment = Deployment.newBuilder().build(); + * String deploymentId = "deploymentId-136894784"; + * Deployment response = + * telcoAutomationClient.createDeployment(parent, deployment, deploymentId); + * } + * }+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param deployment Required. The `Deployment` to create. + * @param deploymentId Optional. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + OrchestrationClusterName parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * Deployment deployment = Deployment.newBuilder().build(); + * String deploymentId = "deploymentId-136894784"; + * Deployment response = + * telcoAutomationClient.createDeployment(parent, deployment, deploymentId); + * } + * }+ * + * @param parent Required. The name of parent resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @param deployment Required. The `Deployment` to create. + * @param deploymentId Optional. The name of the deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment createDeployment( + String parent, Deployment deployment, String deploymentId) { + CreateDeploymentRequest request = + CreateDeploymentRequest.newBuilder() + .setParent(parent) + .setDeployment(deployment) + .setDeploymentId(deploymentId) + .build(); + return createDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateDeploymentRequest request = + * CreateDeploymentRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setDeploymentId("deploymentId-136894784") + * .setDeployment(Deployment.newBuilder().build()) + * .build(); + * Deployment response = telcoAutomationClient.createDeployment(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 Deployment createDeployment(CreateDeploymentRequest request) { + return createDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * CreateDeploymentRequest request = + * CreateDeploymentRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setDeploymentId("deploymentId-136894784") + * .setDeployment(Deployment.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.createDeploymentCallable().futureCall(request); + * // Do something. + * Deployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * Deployment deployment = Deployment.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Deployment response = telcoAutomationClient.updateDeployment(deployment, updateMask); + * } + * }+ * + * @param deployment Required. The `deployment` to update. + * @param updateMask Required. Update mask is used to specify the fields to be overwritten in the + * `deployment` resource by the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment updateDeployment(Deployment deployment, FieldMask updateMask) { + UpdateDeploymentRequest request = + UpdateDeploymentRequest.newBuilder() + .setDeployment(deployment) + .setUpdateMask(updateMask) + .build(); + return updateDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * UpdateDeploymentRequest request = + * UpdateDeploymentRequest.newBuilder() + * .setDeployment(Deployment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * Deployment response = telcoAutomationClient.updateDeployment(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 Deployment updateDeployment(UpdateDeploymentRequest request) { + return updateDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * UpdateDeploymentRequest request = + * UpdateDeploymentRequest.newBuilder() + * .setDeployment(Deployment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.updateDeploymentCallable().futureCall(request); + * // Do something. + * Deployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * Deployment response = telcoAutomationClient.getDeployment(name); + * } + * }+ * + * @param name Required. The name of the deployment. Case 1: If the name provided in the request + * is {deployment_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {deployment}, then the current + * state of the deployment is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(DeploymentName name) { + GetDeploymentRequest request = + GetDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * Deployment response = telcoAutomationClient.getDeployment(name); + * } + * }+ * + * @param name Required. The name of the deployment. Case 1: If the name provided in the request + * is {deployment_id}{@literal @}{revision_id}, then the revision with revision_id will be + * returned. Case 2: If the name provided in the request is {deployment}, then the current + * state of the deployment is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment getDeployment(String name) { + GetDeploymentRequest request = GetDeploymentRequest.newBuilder().setName(name).build(); + return getDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetDeploymentRequest request = + * GetDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setView(DeploymentView.forNumber(0)) + * .build(); + * Deployment response = telcoAutomationClient.getDeployment(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 Deployment getDeployment(GetDeploymentRequest request) { + return getDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetDeploymentRequest request = + * GetDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setView(DeploymentView.forNumber(0)) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.getDeploymentCallable().futureCall(request); + * // Do something. + * Deployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * telcoAutomationClient.removeDeployment(name); + * } + * }+ * + * @param name Required. The name of deployment to initiate delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDeployment(DeploymentName name) { + RemoveDeploymentRequest request = + RemoveDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + removeDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * telcoAutomationClient.removeDeployment(name); + * } + * }+ * + * @param name Required. The name of deployment to initiate delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void removeDeployment(String name) { + RemoveDeploymentRequest request = RemoveDeploymentRequest.newBuilder().setName(name).build(); + removeDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * RemoveDeploymentRequest request = + * RemoveDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * telcoAutomationClient.removeDeployment(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 void removeDeployment(RemoveDeploymentRequest request) { + removeDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets + * deleted. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * RemoveDeploymentRequest request = + * RemoveDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.removeDeploymentCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * OrchestrationClusterName parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]"); + * for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(OrchestrationClusterName parent) { + ListDeploymentsRequest request = + ListDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString(); + * for (Deployment element : telcoAutomationClient.listDeployments(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The name of parent orchestration cluster resource. Format should be - + * "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentsPagedResponse listDeployments(String parent) { + ListDeploymentsRequest request = ListDeploymentsRequest.newBuilder().setParent(parent).build(); + return listDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListDeploymentsRequest request = + * ListDeploymentsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Deployment element : telcoAutomationClient.listDeployments(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 ListDeploymentsPagedResponse listDeployments(ListDeploymentsRequest request) { + return listDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all deployments. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListDeploymentsRequest request = + * ListDeploymentsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listDeploymentsPagedCallable().futureCall(request); + * // Do something. + * for (Deployment element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListDeploymentsRequest request = + * ListDeploymentsRequest.newBuilder() + * .setParent( + * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]") + * .toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDeploymentsResponse response = + * telcoAutomationClient.listDeploymentsCallable().call(request); + * for (Deployment element : response.getDeploymentsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the deployment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(DeploymentName name) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * for (Deployment element : telcoAutomationClient.listDeploymentRevisions(name).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param name Required. The name of the deployment to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentRevisionsPagedResponse listDeploymentRevisions(String name) { + ListDeploymentRevisionsRequest request = + ListDeploymentRevisionsRequest.newBuilder().setName(name).build(); + return listDeploymentRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListDeploymentRevisionsRequest request = + * ListDeploymentRevisionsRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Deployment element : + * telcoAutomationClient.listDeploymentRevisions(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 ListDeploymentRevisionsPagedResponse listDeploymentRevisions( + ListDeploymentRevisionsRequest request) { + return listDeploymentRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List deployment revisions of a given deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListDeploymentRevisionsRequest request = + * ListDeploymentRevisionsRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listDeploymentRevisionsPagedCallable().futureCall(request); + * // Do something. + * for (Deployment element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListDeploymentRevisionsRequest request = + * ListDeploymentRevisionsRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDeploymentRevisionsResponse response = + * telcoAutomationClient.listDeploymentRevisionsCallable().call(request); + * for (Deployment element : response.getDeploymentsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * DiscardDeploymentChangesResponse response = + * telcoAutomationClient.discardDeploymentChanges(name); + * } + * }+ * + * @param name Required. The name of the deployment of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardDeploymentChangesResponse discardDeploymentChanges(DeploymentName name) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return discardDeploymentChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * DiscardDeploymentChangesResponse response = + * telcoAutomationClient.discardDeploymentChanges(name); + * } + * }+ * + * @param name Required. The name of the deployment of which changes are being discarded. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscardDeploymentChangesResponse discardDeploymentChanges(String name) { + DiscardDeploymentChangesRequest request = + DiscardDeploymentChangesRequest.newBuilder().setName(name).build(); + return discardDeploymentChanges(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DiscardDeploymentChangesRequest request = + * DiscardDeploymentChangesRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * DiscardDeploymentChangesResponse response = + * telcoAutomationClient.discardDeploymentChanges(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 DiscardDeploymentChangesResponse discardDeploymentChanges( + DiscardDeploymentChangesRequest request) { + return discardDeploymentChangesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Discards the changes in a deployment and reverts the deployment to the last approved deployment + * revision. No changes take place if a deployment does not have revisions. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DiscardDeploymentChangesRequest request = + * DiscardDeploymentChangesRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.discardDeploymentChangesCallable().futureCall(request); + * // Do something. + * DiscardDeploymentChangesResponse response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * Deployment response = telcoAutomationClient.applyDeployment(name); + * } + * }+ * + * @param name Required. The name of the deployment to apply to orchestration cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment applyDeployment(DeploymentName name) { + ApplyDeploymentRequest request = + ApplyDeploymentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return applyDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * Deployment response = telcoAutomationClient.applyDeployment(name); + * } + * }+ * + * @param name Required. The name of the deployment to apply to orchestration cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment applyDeployment(String name) { + ApplyDeploymentRequest request = ApplyDeploymentRequest.newBuilder().setName(name).build(); + return applyDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ApplyDeploymentRequest request = + * ApplyDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * Deployment response = telcoAutomationClient.applyDeployment(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 Deployment applyDeployment(ApplyDeploymentRequest request) { + return applyDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies the deployment's YAML files to the parent orchestration cluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ApplyDeploymentRequest request = + * ApplyDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.applyDeploymentCallable().futureCall(request); + * // Do something. + * Deployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * ComputeDeploymentStatusResponse response = + * telcoAutomationClient.computeDeploymentStatus(name); + * } + * }+ * + * @param name Required. The name of the deployment without revisionID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeDeploymentStatusResponse computeDeploymentStatus(DeploymentName name) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return computeDeploymentStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * ComputeDeploymentStatusResponse response = + * telcoAutomationClient.computeDeploymentStatus(name); + * } + * }+ * + * @param name Required. The name of the deployment without revisionID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ComputeDeploymentStatusResponse computeDeploymentStatus(String name) { + ComputeDeploymentStatusRequest request = + ComputeDeploymentStatusRequest.newBuilder().setName(name).build(); + return computeDeploymentStatus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ComputeDeploymentStatusRequest request = + * ComputeDeploymentStatusRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * ComputeDeploymentStatusResponse response = + * telcoAutomationClient.computeDeploymentStatus(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 ComputeDeploymentStatusResponse computeDeploymentStatus( + ComputeDeploymentStatusRequest request) { + return computeDeploymentStatusCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested deployment status. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ComputeDeploymentStatusRequest request = + * ComputeDeploymentStatusRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.computeDeploymentStatusCallable().futureCall(request); + * // Do something. + * ComputeDeploymentStatusResponse response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * String revisionId = "revisionId-1507445162"; + * Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId); + * } + * }+ * + * @param name Required. Name of the deployment. + * @param revisionId Required. The revision id of deployment to roll back to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment rollbackDeployment(DeploymentName name, String revisionId) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRevisionId(revisionId) + .build(); + return rollbackDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * String revisionId = "revisionId-1507445162"; + * Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId); + * } + * }+ * + * @param name Required. Name of the deployment. + * @param revisionId Required. The revision id of deployment to roll back to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Deployment rollbackDeployment(String name, String revisionId) { + RollbackDeploymentRequest request = + RollbackDeploymentRequest.newBuilder().setName(name).setRevisionId(revisionId).build(); + return rollbackDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * RollbackDeploymentRequest request = + * RollbackDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setRevisionId("revisionId-1507445162") + * .build(); + * Deployment response = telcoAutomationClient.rollbackDeployment(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 Deployment rollbackDeployment(RollbackDeploymentRequest request) { + return rollbackDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rollback the active deployment to the given past approved deployment revision. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * RollbackDeploymentRequest request = + * RollbackDeploymentRequest.newBuilder() + * .setName( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setRevisionId("revisionId-1507445162") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.rollbackDeploymentCallable().futureCall(request); + * // Do something. + * Deployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * HydratedDeploymentName name = + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]"); + * HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name); + * } + * }+ * + * @param name Required. Name of the hydrated deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment getHydratedDeployment(HydratedDeploymentName name) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]") + * .toString(); + * HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(name); + * } + * }+ * + * @param name Required. Name of the hydrated deployment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment getHydratedDeployment(String name) { + GetHydratedDeploymentRequest request = + GetHydratedDeploymentRequest.newBuilder().setName(name).build(); + return getHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetHydratedDeploymentRequest request = + * GetHydratedDeploymentRequest.newBuilder() + * .setName( + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]") + * .toString()) + * .build(); + * HydratedDeployment response = telcoAutomationClient.getHydratedDeployment(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 HydratedDeployment getHydratedDeployment(GetHydratedDeploymentRequest request) { + return getHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested hydrated deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetHydratedDeploymentRequest request = + * GetHydratedDeploymentRequest.newBuilder() + * .setName( + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.getHydratedDeploymentCallable().futureCall(request); + * // Do something. + * HydratedDeployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * DeploymentName parent = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]"); + * for (HydratedDeployment element : + * telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The deployment managing the hydrated deployments. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(DeploymentName parent) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listHydratedDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String parent = + * DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString(); + * for (HydratedDeployment element : + * telcoAutomationClient.listHydratedDeployments(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The deployment managing the hydrated deployments. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHydratedDeploymentsPagedResponse listHydratedDeployments(String parent) { + ListHydratedDeploymentsRequest request = + ListHydratedDeploymentsRequest.newBuilder().setParent(parent).build(); + return listHydratedDeployments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListHydratedDeploymentsRequest request = + * ListHydratedDeploymentsRequest.newBuilder() + * .setParent( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (HydratedDeployment element : + * telcoAutomationClient.listHydratedDeployments(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 ListHydratedDeploymentsPagedResponse listHydratedDeployments( + ListHydratedDeploymentsRequest request) { + return listHydratedDeploymentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all hydrated deployments present under a deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListHydratedDeploymentsRequest request = + * ListHydratedDeploymentsRequest.newBuilder() + * .setParent( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listHydratedDeploymentsPagedCallable().futureCall(request); + * // Do something. + * for (HydratedDeployment element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListHydratedDeploymentsRequest request = + * ListHydratedDeploymentsRequest.newBuilder() + * .setParent( + * DeploymentName.of( + * "[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]") + * .toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListHydratedDeploymentsResponse response = + * telcoAutomationClient.listHydratedDeploymentsCallable().call(request); + * for (HydratedDeployment element : response.getHydratedDeploymentsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * HydratedDeployment hydratedDeployment = HydratedDeployment.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * HydratedDeployment response = + * telcoAutomationClient.updateHydratedDeployment(hydratedDeployment, updateMask); + * } + * }+ * + * @param hydratedDeployment Required. The hydrated deployment to update. + * @param updateMask Required. The list of fields to update. Update mask supports a special value + * `*` which fully replaces (equivalent to PUT) the resource provided. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment updateHydratedDeployment( + HydratedDeployment hydratedDeployment, FieldMask updateMask) { + UpdateHydratedDeploymentRequest request = + UpdateHydratedDeploymentRequest.newBuilder() + .setHydratedDeployment(hydratedDeployment) + .setUpdateMask(updateMask) + .build(); + return updateHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * UpdateHydratedDeploymentRequest request = + * UpdateHydratedDeploymentRequest.newBuilder() + * .setHydratedDeployment(HydratedDeployment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * HydratedDeployment response = telcoAutomationClient.updateHydratedDeployment(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 HydratedDeployment updateHydratedDeployment( + UpdateHydratedDeploymentRequest request) { + return updateHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a hydrated deployment. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * UpdateHydratedDeploymentRequest request = + * UpdateHydratedDeploymentRequest.newBuilder() + * .setHydratedDeployment(HydratedDeployment.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.updateHydratedDeploymentCallable().futureCall(request); + * // Do something. + * HydratedDeployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * HydratedDeploymentName name = + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]"); + * HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name); + * } + * }+ * + * @param name Required. The name of the hydrated deployment to apply. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment applyHydratedDeployment(HydratedDeploymentName name) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return applyHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * String name = + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]") + * .toString(); + * HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(name); + * } + * }+ * + * @param name Required. The name of the hydrated deployment to apply. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HydratedDeployment applyHydratedDeployment(String name) { + ApplyHydratedDeploymentRequest request = + ApplyHydratedDeploymentRequest.newBuilder().setName(name).build(); + return applyHydratedDeployment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ApplyHydratedDeploymentRequest request = + * ApplyHydratedDeploymentRequest.newBuilder() + * .setName( + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]") + * .toString()) + * .build(); + * HydratedDeployment response = telcoAutomationClient.applyHydratedDeployment(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 HydratedDeployment applyHydratedDeployment(ApplyHydratedDeploymentRequest request) { + return applyHydratedDeploymentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Applies a hydrated deployment to a workload cluster. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ApplyHydratedDeploymentRequest request = + * ApplyHydratedDeploymentRequest.newBuilder() + * .setName( + * HydratedDeploymentName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[ORCHESTRATION_CLUSTER]", + * "[DEPLOYMENT]", + * "[HYDRATED_DEPLOYMENT]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.applyHydratedDeploymentCallable().futureCall(request); + * // Do something. + * HydratedDeployment response = future.get(); + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Location element : telcoAutomationClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * telcoAutomationClient.listLocationsPagedCallable().futureCall(request); + * // Do something. + * for (Location element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListLocationsResponse response = + * telcoAutomationClient.listLocationsCallable().call(request); + * for (Location element : response.getLocationsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * Location response = telcoAutomationClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *
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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) { + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * ApiFuture+ */ + public final UnaryCallablefuture = telcoAutomationClient.getLocationCallable().futureCall(request); + * // Do something. + * Location response = future.get(); + * } + * }
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 getOrchestrationCluster to 30 seconds: + * + *
{@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 + * TelcoAutomationSettings.Builder telcoAutomationSettingsBuilder = + * TelcoAutomationSettings.newBuilder(); + * telcoAutomationSettingsBuilder + * .getOrchestrationClusterSettings() + * .setRetrySettings( + * telcoAutomationSettingsBuilder + * .getOrchestrationClusterSettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * TelcoAutomationSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build(); + * }+ */ +@Generated("by gapic-generator-java") +public class TelcoAutomationSettings extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= TelcoAutomationClient =======================
+ *
+ * Service Description: TelcoAutomation Service manages the control plane cluster a.k.a.
+ * Orchestration Cluster (GKE cluster with config controller) of TNA. It also exposes blueprint APIs
+ * which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE
+ * clusters) and deployment of network functions.
+ *
+ * Sample for TelcoAutomationClient:
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcTelcoAutomationCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public {@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 (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
+ * OrchestrationClusterName name =
+ * OrchestrationClusterName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]");
+ * OrchestrationCluster response = telcoAutomationClient.getOrchestrationCluster(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.telcoautomation.v1;
+
+import javax.annotation.Generated;
diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java
new file mode 100644
index 000000000000..b8422c2fd0bb
--- /dev/null
+++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/GrpcTelcoAutomationCallableFactory.java
@@ -0,0 +1,113 @@
+/*
+ * Copyright 2023 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.telcoautomation.v1.stub;
+
+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 TelcoAutomation service API.
+ *
+ *