GitHub Repository | Product Reference | RPC Documentation |
Service Description: Manages the deployment of SaaS services.
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:
// 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
Saas response = saasDeploymentsClient.getSaas(name);
}
Note: close() needs to be called on the SaasDeploymentsClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
Method | Description | Method Variants |
---|---|---|
ListSaas |
Retrieve a collection of saas. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetSaas |
Retrieve a single saas. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateSaas |
Create a new saas. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateSaas |
Update a single saas. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteSaas |
Delete a single saas. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListTenants |
Retrieve a collection of tenants. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetTenant |
Retrieve a single tenant. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateTenant |
Create a new tenant. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateTenant |
Update a single tenant. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteTenant |
Delete a single tenant. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListUnitKinds |
Retrieve a collection of unit kinds. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetUnitKind |
Retrieve a single unit kind. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateUnitKind |
Create a new unit kind. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateUnitKind |
Update a single unit kind. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteUnitKind |
Delete a single unit kind. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListUnits |
Retrieve a collection of units. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetUnit |
Retrieve a single unit. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateUnit |
Create a new unit. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateUnit |
Update a single unit. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteUnit |
Delete a single unit. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListUnitOperations |
Retrieve a collection of unit operations. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetUnitOperation |
Retrieve a single unit operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateUnitOperation |
Create a new unit operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateUnitOperation |
Update a single unit operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteUnitOperation |
Delete a single unit operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListReleases |
Retrieve a collection of releases. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetRelease |
Retrieve a single release. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateRelease |
Create a new release. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateRelease |
Update a single release. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteRelease |
Delete a single release. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a ___location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of SaasDeploymentsSettings to create(). For example:
To customize credentials:
// 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
SaasDeploymentsSettings saasDeploymentsSettings =
SaasDeploymentsSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
SaasDeploymentsClient saasDeploymentsClient =
SaasDeploymentsClient.create(saasDeploymentsSettings);
To customize the endpoint:
// 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
SaasDeploymentsSettings saasDeploymentsSettings =
SaasDeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build();
SaasDeploymentsClient saasDeploymentsClient =
SaasDeploymentsClient.create(saasDeploymentsSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// 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
SaasDeploymentsSettings saasDeploymentsSettings =
SaasDeploymentsSettings.newHttpJsonBuilder().build();
SaasDeploymentsClient saasDeploymentsClient =
SaasDeploymentsClient.create(saasDeploymentsSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final SaasDeploymentsClient create()
Constructs an instance of SaasDeploymentsClient with default settings.
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(SaasDeploymentsSettings settings)
public static final SaasDeploymentsClient create(SaasDeploymentsSettings settings)
Constructs an instance of SaasDeploymentsClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings |
SaasDeploymentsSettings |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(SaasDeploymentsStub stub)
public static final SaasDeploymentsClient create(SaasDeploymentsStub stub)
Constructs an instance of SaasDeploymentsClient, using the given stub for making calls. This is for advanced usage - prefer using create(SaasDeploymentsSettings).
Parameter | |
---|---|
Name | Description |
stub |
SaasDeploymentsStub |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient |
Constructors
SaasDeploymentsClient(SaasDeploymentsSettings settings)
protected SaasDeploymentsClient(SaasDeploymentsSettings settings)
Constructs an instance of SaasDeploymentsClient, 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.
Parameter | |
---|---|
Name | Description |
settings |
SaasDeploymentsSettings |
SaasDeploymentsClient(SaasDeploymentsStub stub)
protected SaasDeploymentsClient(SaasDeploymentsStub stub)
Parameter | |
---|---|
Name | Description |
stub |
SaasDeploymentsStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration |
long |
unit |
TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createRelease(CreateReleaseRequest request)
public final Release createRelease(CreateReleaseRequest request)
Create a new release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateReleaseRequest request =
CreateReleaseRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setReleaseId("releaseId89607042")
.setRelease(Release.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
Release response = saasDeploymentsClient.createRelease(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateReleaseRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Release |
createRelease(LocationName parent, Release release, String releaseId)
public final Release createRelease(LocationName parent, Release release, String releaseId)
Create a new release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Release release = Release.newBuilder().build();
String releaseId = "releaseId89607042";
Release response = saasDeploymentsClient.createRelease(parent, release, releaseId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the release. |
release |
Release Required. The desired state for the release. |
releaseId |
String Required. The ID value for the new release. |
Returns | |
---|---|
Type | Description |
Release |
createRelease(String parent, Release release, String releaseId)
public final Release createRelease(String parent, Release release, String releaseId)
Create a new release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Release release = Release.newBuilder().build();
String releaseId = "releaseId89607042";
Release response = saasDeploymentsClient.createRelease(parent, release, releaseId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent of the release. |
release |
Release Required. The desired state for the release. |
releaseId |
String Required. The ID value for the new release. |
Returns | |
---|---|
Type | Description |
Release |
createReleaseCallable()
public final UnaryCallable<CreateReleaseRequest,Release> createReleaseCallable()
Create a new release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateReleaseRequest request =
CreateReleaseRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setReleaseId("releaseId89607042")
.setRelease(Release.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Release> future = saasDeploymentsClient.createReleaseCallable().futureCall(request);
// Do something.
Release response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateReleaseRequest,Release> |
createSaas(CreateSaasRequest request)
public final Saas createSaas(CreateSaasRequest request)
Create a new saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateSaasRequest request =
CreateSaasRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSaasId("saasId-910030789")
.setSaas(Saas.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
Saas response = saasDeploymentsClient.createSaas(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateSaasRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Saas |
createSaas(LocationName parent, Saas saas, String saasId)
public final Saas createSaas(LocationName parent, Saas saas, String saasId)
Create a new saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Saas saas = Saas.newBuilder().build();
String saasId = "saasId-910030789";
Saas response = saasDeploymentsClient.createSaas(parent, saas, saasId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the saas. |
saas |
Saas Required. The desired state for the saas. |
saasId |
String Required. The ID value for the new saas. |
Returns | |
---|---|
Type | Description |
Saas |
createSaas(String parent, Saas saas, String saasId)
public final Saas createSaas(String parent, Saas saas, String saasId)
Create a new saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Saas saas = Saas.newBuilder().build();
String saasId = "saasId-910030789";
Saas response = saasDeploymentsClient.createSaas(parent, saas, saasId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent of the saas. |
saas |
Saas Required. The desired state for the saas. |
saasId |
String Required. The ID value for the new saas. |
Returns | |
---|---|
Type | Description |
Saas |
createSaasCallable()
public final UnaryCallable<CreateSaasRequest,Saas> createSaasCallable()
Create a new saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateSaasRequest request =
CreateSaasRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSaasId("saasId-910030789")
.setSaas(Saas.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Saas> future = saasDeploymentsClient.createSaasCallable().futureCall(request);
// Do something.
Saas response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSaasRequest,Saas> |
createTenant(CreateTenantRequest request)
public final Tenant createTenant(CreateTenantRequest request)
Create a new tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateTenantRequest request =
CreateTenantRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setTenantId("tenantId-1306693787")
.setTenant(Tenant.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
Tenant response = saasDeploymentsClient.createTenant(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateTenantRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Tenant |
createTenant(LocationName parent, Tenant tenant, String tenantId)
public final Tenant createTenant(LocationName parent, Tenant tenant, String tenantId)
Create a new tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Tenant tenant = Tenant.newBuilder().build();
String tenantId = "tenantId-1306693787";
Tenant response = saasDeploymentsClient.createTenant(parent, tenant, tenantId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the tenant. |
tenant |
Tenant Required. The desired state for the tenant. |
tenantId |
String Required. The ID value for the new tenant. |
Returns | |
---|---|
Type | Description |
Tenant |
createTenant(String parent, Tenant tenant, String tenantId)
public final Tenant createTenant(String parent, Tenant tenant, String tenantId)
Create a new tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Tenant tenant = Tenant.newBuilder().build();
String tenantId = "tenantId-1306693787";
Tenant response = saasDeploymentsClient.createTenant(parent, tenant, tenantId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent of the tenant. |
tenant |
Tenant Required. The desired state for the tenant. |
tenantId |
String Required. The ID value for the new tenant. |
Returns | |
---|---|
Type | Description |
Tenant |
createTenantCallable()
public final UnaryCallable<CreateTenantRequest,Tenant> createTenantCallable()
Create a new tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateTenantRequest request =
CreateTenantRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setTenantId("tenantId-1306693787")
.setTenant(Tenant.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Tenant> future = saasDeploymentsClient.createTenantCallable().futureCall(request);
// Do something.
Tenant response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTenantRequest,Tenant> |
createUnit(CreateUnitRequest request)
public final Unit createUnit(CreateUnitRequest request)
Create a new unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateUnitRequest request =
CreateUnitRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setUnitId("unitId-840527425")
.setUnit(Unit.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
Unit response = saasDeploymentsClient.createUnit(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateUnitRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Unit |
createUnit(LocationName parent, Unit unit, String unitId)
public final Unit createUnit(LocationName parent, Unit unit, String unitId)
Create a new unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Unit unit = Unit.newBuilder().build();
String unitId = "unitId-840527425";
Unit response = saasDeploymentsClient.createUnit(parent, unit, unitId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the unit. |
unit |
Unit Required. The desired state for the unit. |
unitId |
String Required. The ID value for the new unit. |
Returns | |
---|---|
Type | Description |
Unit |
createUnit(String parent, Unit unit, String unitId)
public final Unit createUnit(String parent, Unit unit, String unitId)
Create a new unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Unit unit = Unit.newBuilder().build();
String unitId = "unitId-840527425";
Unit response = saasDeploymentsClient.createUnit(parent, unit, unitId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent of the unit. |
unit |
Unit Required. The desired state for the unit. |
unitId |
String Required. The ID value for the new unit. |
Returns | |
---|---|
Type | Description |
Unit |
createUnitCallable()
public final UnaryCallable<CreateUnitRequest,Unit> createUnitCallable()
Create a new unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateUnitRequest request =
CreateUnitRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setUnitId("unitId-840527425")
.setUnit(Unit.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Unit> future = saasDeploymentsClient.createUnitCallable().futureCall(request);
// Do something.
Unit response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateUnitRequest,Unit> |
createUnitKind(CreateUnitKindRequest request)
public final UnitKind createUnitKind(CreateUnitKindRequest request)
Create a new unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateUnitKindRequest request =
CreateUnitKindRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setUnitKindId("unitKindId1956463219")
.setUnitKind(UnitKind.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
UnitKind response = saasDeploymentsClient.createUnitKind(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateUnitKindRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
UnitKind |
createUnitKind(LocationName parent, UnitKind unitKind, String unitKindId)
public final UnitKind createUnitKind(LocationName parent, UnitKind unitKind, String unitKindId)
Create a new unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
UnitKind unitKind = UnitKind.newBuilder().build();
String unitKindId = "unitKindId1956463219";
UnitKind response = saasDeploymentsClient.createUnitKind(parent, unitKind, unitKindId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the unit kind. |
unitKind |
UnitKind Required. The desired state for the unit kind. |
unitKindId |
String Required. The ID value for the new unit kind. |
Returns | |
---|---|
Type | Description |
UnitKind |
createUnitKind(String parent, UnitKind unitKind, String unitKindId)
public final UnitKind createUnitKind(String parent, UnitKind unitKind, String unitKindId)
Create a new unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
UnitKind unitKind = UnitKind.newBuilder().build();
String unitKindId = "unitKindId1956463219";
UnitKind response = saasDeploymentsClient.createUnitKind(parent, unitKind, unitKindId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent of the unit kind. |
unitKind |
UnitKind Required. The desired state for the unit kind. |
unitKindId |
String Required. The ID value for the new unit kind. |
Returns | |
---|---|
Type | Description |
UnitKind |
createUnitKindCallable()
public final UnaryCallable<CreateUnitKindRequest,UnitKind> createUnitKindCallable()
Create a new unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateUnitKindRequest request =
CreateUnitKindRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setUnitKindId("unitKindId1956463219")
.setUnitKind(UnitKind.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<UnitKind> future =
saasDeploymentsClient.createUnitKindCallable().futureCall(request);
// Do something.
UnitKind response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateUnitKindRequest,UnitKind> |
createUnitOperation(CreateUnitOperationRequest request)
public final UnitOperation createUnitOperation(CreateUnitOperationRequest request)
Create a new unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateUnitOperationRequest request =
CreateUnitOperationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setUnitOperationId("unitOperationId-638217026")
.setUnitOperation(UnitOperation.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
UnitOperation response = saasDeploymentsClient.createUnitOperation(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateUnitOperationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
UnitOperation |
createUnitOperation(LocationName parent, UnitOperation unitOperation, String unitOperationId)
public final UnitOperation createUnitOperation(LocationName parent, UnitOperation unitOperation, String unitOperationId)
Create a new unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
UnitOperation unitOperation = UnitOperation.newBuilder().build();
String unitOperationId = "unitOperationId-638217026";
UnitOperation response =
saasDeploymentsClient.createUnitOperation(parent, unitOperation, unitOperationId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the unit operation. |
unitOperation |
UnitOperation Required. The desired state for the unit operation. |
unitOperationId |
String Required. The ID value for the new unit operation. |
Returns | |
---|---|
Type | Description |
UnitOperation |
createUnitOperation(String parent, UnitOperation unitOperation, String unitOperationId)
public final UnitOperation createUnitOperation(String parent, UnitOperation unitOperation, String unitOperationId)
Create a new unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
UnitOperation unitOperation = UnitOperation.newBuilder().build();
String unitOperationId = "unitOperationId-638217026";
UnitOperation response =
saasDeploymentsClient.createUnitOperation(parent, unitOperation, unitOperationId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent of the unit operation. |
unitOperation |
UnitOperation Required. The desired state for the unit operation. |
unitOperationId |
String Required. The ID value for the new unit operation. |
Returns | |
---|---|
Type | Description |
UnitOperation |
createUnitOperationCallable()
public final UnaryCallable<CreateUnitOperationRequest,UnitOperation> createUnitOperationCallable()
Create a new unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
CreateUnitOperationRequest request =
CreateUnitOperationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setUnitOperationId("unitOperationId-638217026")
.setUnitOperation(UnitOperation.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<UnitOperation> future =
saasDeploymentsClient.createUnitOperationCallable().futureCall(request);
// Do something.
UnitOperation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateUnitOperationRequest,UnitOperation> |
deleteRelease(DeleteReleaseRequest request)
public final void deleteRelease(DeleteReleaseRequest request)
Delete a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteReleaseRequest request =
DeleteReleaseRequest.newBuilder()
.setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
saasDeploymentsClient.deleteRelease(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteReleaseRequest The request object containing all of the parameters for the API call. |
deleteRelease(ReleaseName name)
public final void deleteRelease(ReleaseName name)
Delete a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]");
saasDeploymentsClient.deleteRelease(name);
}
Parameter | |
---|---|
Name | Description |
name |
ReleaseName Required. The resource name of the resource within a service. |
deleteRelease(String name)
public final void deleteRelease(String name)
Delete a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString();
saasDeploymentsClient.deleteRelease(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
deleteReleaseCallable()
public final UnaryCallable<DeleteReleaseRequest,Empty> deleteReleaseCallable()
Delete a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteReleaseRequest request =
DeleteReleaseRequest.newBuilder()
.setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future = saasDeploymentsClient.deleteReleaseCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteReleaseRequest,Empty> |
deleteSaas(DeleteSaasRequest request)
public final void deleteSaas(DeleteSaasRequest request)
Delete a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteSaasRequest request =
DeleteSaasRequest.newBuilder()
.setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
saasDeploymentsClient.deleteSaas(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteSaasRequest The request object containing all of the parameters for the API call. |
deleteSaas(SaasName name)
public final void deleteSaas(SaasName name)
Delete a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
saasDeploymentsClient.deleteSaas(name);
}
Parameter | |
---|---|
Name | Description |
name |
SaasName Required. The resource name of the resource within a service. |
deleteSaas(String name)
public final void deleteSaas(String name)
Delete a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString();
saasDeploymentsClient.deleteSaas(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
deleteSaasCallable()
public final UnaryCallable<DeleteSaasRequest,Empty> deleteSaasCallable()
Delete a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteSaasRequest request =
DeleteSaasRequest.newBuilder()
.setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future = saasDeploymentsClient.deleteSaasCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSaasRequest,Empty> |
deleteTenant(DeleteTenantRequest request)
public final void deleteTenant(DeleteTenantRequest request)
Delete a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteTenantRequest request =
DeleteTenantRequest.newBuilder()
.setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
saasDeploymentsClient.deleteTenant(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteTenantRequest The request object containing all of the parameters for the API call. |
deleteTenant(TenantName name)
public final void deleteTenant(TenantName name)
Delete a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]");
saasDeploymentsClient.deleteTenant(name);
}
Parameter | |
---|---|
Name | Description |
name |
TenantName Required. The resource name of the resource within a service. |
deleteTenant(String name)
public final void deleteTenant(String name)
Delete a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString();
saasDeploymentsClient.deleteTenant(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
deleteTenantCallable()
public final UnaryCallable<DeleteTenantRequest,Empty> deleteTenantCallable()
Delete a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteTenantRequest request =
DeleteTenantRequest.newBuilder()
.setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future = saasDeploymentsClient.deleteTenantCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTenantRequest,Empty> |
deleteUnit(DeleteUnitRequest request)
public final void deleteUnit(DeleteUnitRequest request)
Delete a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteUnitRequest request =
DeleteUnitRequest.newBuilder()
.setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
saasDeploymentsClient.deleteUnit(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteUnitRequest The request object containing all of the parameters for the API call. |
deleteUnit(UnitName name)
public final void deleteUnit(UnitName name)
Delete a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]");
saasDeploymentsClient.deleteUnit(name);
}
Parameter | |
---|---|
Name | Description |
name |
UnitName Required. The resource name of the resource within a service. |
deleteUnit(String name)
public final void deleteUnit(String name)
Delete a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString();
saasDeploymentsClient.deleteUnit(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
deleteUnitCallable()
public final UnaryCallable<DeleteUnitRequest,Empty> deleteUnitCallable()
Delete a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteUnitRequest request =
DeleteUnitRequest.newBuilder()
.setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future = saasDeploymentsClient.deleteUnitCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteUnitRequest,Empty> |
deleteUnitKind(DeleteUnitKindRequest request)
public final void deleteUnitKind(DeleteUnitKindRequest request)
Delete a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteUnitKindRequest request =
DeleteUnitKindRequest.newBuilder()
.setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
saasDeploymentsClient.deleteUnitKind(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteUnitKindRequest The request object containing all of the parameters for the API call. |
deleteUnitKind(UnitKindName name)
public final void deleteUnitKind(UnitKindName name)
Delete a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]");
saasDeploymentsClient.deleteUnitKind(name);
}
Parameter | |
---|---|
Name | Description |
name |
UnitKindName Required. The resource name of the resource within a service. |
deleteUnitKind(String name)
public final void deleteUnitKind(String name)
Delete a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString();
saasDeploymentsClient.deleteUnitKind(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
deleteUnitKindCallable()
public final UnaryCallable<DeleteUnitKindRequest,Empty> deleteUnitKindCallable()
Delete a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteUnitKindRequest request =
DeleteUnitKindRequest.newBuilder()
.setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future = saasDeploymentsClient.deleteUnitKindCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteUnitKindRequest,Empty> |
deleteUnitOperation(DeleteUnitOperationRequest request)
public final void deleteUnitOperation(DeleteUnitOperationRequest request)
Delete a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteUnitOperationRequest request =
DeleteUnitOperationRequest.newBuilder()
.setName(
UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
saasDeploymentsClient.deleteUnitOperation(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteUnitOperationRequest The request object containing all of the parameters for the API call. |
deleteUnitOperation(UnitOperationName name)
public final void deleteUnitOperation(UnitOperationName name)
Delete a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]");
saasDeploymentsClient.deleteUnitOperation(name);
}
Parameter | |
---|---|
Name | Description |
name |
UnitOperationName Required. The resource name of the resource within a service. |
deleteUnitOperation(String name)
public final void deleteUnitOperation(String name)
Delete a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString();
saasDeploymentsClient.deleteUnitOperation(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
deleteUnitOperationCallable()
public final UnaryCallable<DeleteUnitOperationRequest,Empty> deleteUnitOperationCallable()
Delete a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
DeleteUnitOperationRequest request =
DeleteUnitOperationRequest.newBuilder()
.setName(
UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
.setEtag("etag3123477")
.setValidateOnly(true)
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future =
saasDeploymentsClient.deleteUnitOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteUnitOperationRequest,Empty> |
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)
Gets information about a ___location.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = saasDeploymentsClient.getLocation(request);
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.___location.GetLocationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
com.google.cloud.___location.Location |
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Gets information about a ___location.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future = saasDeploymentsClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.___location.GetLocationRequest,com.google.cloud.___location.Location> |
getRelease(GetReleaseRequest request)
public final Release getRelease(GetReleaseRequest request)
Retrieve a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetReleaseRequest request =
GetReleaseRequest.newBuilder()
.setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
.build();
Release response = saasDeploymentsClient.getRelease(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetReleaseRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Release |
getRelease(ReleaseName name)
public final Release getRelease(ReleaseName name)
Retrieve a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]");
Release response = saasDeploymentsClient.getRelease(name);
}
Parameter | |
---|---|
Name | Description |
name |
ReleaseName Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Release |
getRelease(String name)
public final Release getRelease(String name)
Retrieve a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString();
Release response = saasDeploymentsClient.getRelease(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Release |
getReleaseCallable()
public final UnaryCallable<GetReleaseRequest,Release> getReleaseCallable()
Retrieve a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetReleaseRequest request =
GetReleaseRequest.newBuilder()
.setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
.build();
ApiFuture<Release> future = saasDeploymentsClient.getReleaseCallable().futureCall(request);
// Do something.
Release response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetReleaseRequest,Release> |
getSaas(GetSaasRequest request)
public final Saas getSaas(GetSaasRequest request)
Retrieve a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetSaasRequest request =
GetSaasRequest.newBuilder()
.setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
.build();
Saas response = saasDeploymentsClient.getSaas(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetSaasRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Saas |
getSaas(SaasName name)
public final Saas getSaas(SaasName name)
Retrieve a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
Saas response = saasDeploymentsClient.getSaas(name);
}
Parameter | |
---|---|
Name | Description |
name |
SaasName Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Saas |
getSaas(String name)
public final Saas getSaas(String name)
Retrieve a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString();
Saas response = saasDeploymentsClient.getSaas(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Saas |
getSaasCallable()
public final UnaryCallable<GetSaasRequest,Saas> getSaasCallable()
Retrieve a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetSaasRequest request =
GetSaasRequest.newBuilder()
.setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
.build();
ApiFuture<Saas> future = saasDeploymentsClient.getSaasCallable().futureCall(request);
// Do something.
Saas response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSaasRequest,Saas> |
getSettings()
public final SaasDeploymentsSettings getSettings()
Returns | |
---|---|
Type | Description |
SaasDeploymentsSettings |
getStub()
public SaasDeploymentsStub getStub()
Returns | |
---|---|
Type | Description |
SaasDeploymentsStub |
getTenant(GetTenantRequest request)
public final Tenant getTenant(GetTenantRequest request)
Retrieve a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetTenantRequest request =
GetTenantRequest.newBuilder()
.setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
.build();
Tenant response = saasDeploymentsClient.getTenant(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetTenantRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Tenant |
getTenant(TenantName name)
public final Tenant getTenant(TenantName name)
Retrieve a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]");
Tenant response = saasDeploymentsClient.getTenant(name);
}
Parameter | |
---|---|
Name | Description |
name |
TenantName Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Tenant |
getTenant(String name)
public final Tenant getTenant(String name)
Retrieve a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString();
Tenant response = saasDeploymentsClient.getTenant(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Tenant |
getTenantCallable()
public final UnaryCallable<GetTenantRequest,Tenant> getTenantCallable()
Retrieve a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetTenantRequest request =
GetTenantRequest.newBuilder()
.setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
.build();
ApiFuture<Tenant> future = saasDeploymentsClient.getTenantCallable().futureCall(request);
// Do something.
Tenant response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetTenantRequest,Tenant> |
getUnit(GetUnitRequest request)
public final Unit getUnit(GetUnitRequest request)
Retrieve a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetUnitRequest request =
GetUnitRequest.newBuilder()
.setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
.build();
Unit response = saasDeploymentsClient.getUnit(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetUnitRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Unit |
getUnit(UnitName name)
public final Unit getUnit(UnitName name)
Retrieve a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]");
Unit response = saasDeploymentsClient.getUnit(name);
}
Parameter | |
---|---|
Name | Description |
name |
UnitName Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Unit |
getUnit(String name)
public final Unit getUnit(String name)
Retrieve a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString();
Unit response = saasDeploymentsClient.getUnit(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
Unit |
getUnitCallable()
public final UnaryCallable<GetUnitRequest,Unit> getUnitCallable()
Retrieve a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetUnitRequest request =
GetUnitRequest.newBuilder()
.setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
.build();
ApiFuture<Unit> future = saasDeploymentsClient.getUnitCallable().futureCall(request);
// Do something.
Unit response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetUnitRequest,Unit> |
getUnitKind(GetUnitKindRequest request)
public final UnitKind getUnitKind(GetUnitKindRequest request)
Retrieve a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetUnitKindRequest request =
GetUnitKindRequest.newBuilder()
.setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
.build();
UnitKind response = saasDeploymentsClient.getUnitKind(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetUnitKindRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
UnitKind |
getUnitKind(UnitKindName name)
public final UnitKind getUnitKind(UnitKindName name)
Retrieve a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]");
UnitKind response = saasDeploymentsClient.getUnitKind(name);
}
Parameter | |
---|---|
Name | Description |
name |
UnitKindName Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
UnitKind |
getUnitKind(String name)
public final UnitKind getUnitKind(String name)
Retrieve a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString();
UnitKind response = saasDeploymentsClient.getUnitKind(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
UnitKind |
getUnitKindCallable()
public final UnaryCallable<GetUnitKindRequest,UnitKind> getUnitKindCallable()
Retrieve a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetUnitKindRequest request =
GetUnitKindRequest.newBuilder()
.setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
.build();
ApiFuture<UnitKind> future = saasDeploymentsClient.getUnitKindCallable().futureCall(request);
// Do something.
UnitKind response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetUnitKindRequest,UnitKind> |
getUnitOperation(GetUnitOperationRequest request)
public final UnitOperation getUnitOperation(GetUnitOperationRequest request)
Retrieve a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetUnitOperationRequest request =
GetUnitOperationRequest.newBuilder()
.setName(
UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
.build();
UnitOperation response = saasDeploymentsClient.getUnitOperation(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetUnitOperationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
UnitOperation |
getUnitOperation(UnitOperationName name)
public final UnitOperation getUnitOperation(UnitOperationName name)
Retrieve a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]");
UnitOperation response = saasDeploymentsClient.getUnitOperation(name);
}
Parameter | |
---|---|
Name | Description |
name |
UnitOperationName Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
UnitOperation |
getUnitOperation(String name)
public final UnitOperation getUnitOperation(String name)
Retrieve a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString();
UnitOperation response = saasDeploymentsClient.getUnitOperation(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The resource name of the resource within a service. |
Returns | |
---|---|
Type | Description |
UnitOperation |
getUnitOperationCallable()
public final UnaryCallable<GetUnitOperationRequest,UnitOperation> getUnitOperationCallable()
Retrieve a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
GetUnitOperationRequest request =
GetUnitOperationRequest.newBuilder()
.setName(
UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
.build();
ApiFuture<UnitOperation> future =
saasDeploymentsClient.getUnitOperationCallable().futureCall(request);
// Do something.
UnitOperation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetUnitOperationRequest,UnitOperation> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listLocations(ListLocationsRequest request)
public final SaasDeploymentsClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)
Lists information about the supported locations for this service.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : saasDeploymentsClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.___location.ListLocationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListLocationsPagedResponse |
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Lists information about the supported locations for this service.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response =
saasDeploymentsClient.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;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.___location.ListLocationsRequest,com.google.cloud.___location.ListLocationsResponse> |
listLocationsPagedCallable()
public final UnaryCallable<ListLocationsRequest,SaasDeploymentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Lists information about the supported locations for this service.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
saasDeploymentsClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.___location.ListLocationsRequest,ListLocationsPagedResponse> |
listReleases(ListReleasesRequest request)
public final SaasDeploymentsClient.ListReleasesPagedResponse listReleases(ListReleasesRequest request)
Retrieve a collection of releases.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListReleasesRequest request =
ListReleasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Release element : saasDeploymentsClient.listReleases(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListReleasesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListReleasesPagedResponse |
listReleases(LocationName parent)
public final SaasDeploymentsClient.ListReleasesPagedResponse listReleases(LocationName parent)
Retrieve a collection of releases.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Release element : saasDeploymentsClient.listReleases(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the release. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListReleasesPagedResponse |
listReleases(String parent)
public final SaasDeploymentsClient.ListReleasesPagedResponse listReleases(String parent)
Retrieve a collection of releases.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Release element : saasDeploymentsClient.listReleases(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent of the release. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListReleasesPagedResponse |
listReleasesCallable()
public final UnaryCallable<ListReleasesRequest,ListReleasesResponse> listReleasesCallable()
Retrieve a collection of releases.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListReleasesRequest request =
ListReleasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListReleasesResponse response = saasDeploymentsClient.listReleasesCallable().call(request);
for (Release element : response.getReleasesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReleasesRequest,ListReleasesResponse> |
listReleasesPagedCallable()
public final UnaryCallable<ListReleasesRequest,SaasDeploymentsClient.ListReleasesPagedResponse> listReleasesPagedCallable()
Retrieve a collection of releases.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListReleasesRequest request =
ListReleasesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Release> future =
saasDeploymentsClient.listReleasesPagedCallable().futureCall(request);
// Do something.
for (Release element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReleasesRequest,ListReleasesPagedResponse> |
listSaas(ListSaasRequest request)
public final SaasDeploymentsClient.ListSaasPagedResponse listSaas(ListSaasRequest request)
Retrieve a collection of saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListSaasRequest request =
ListSaasRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Saas element : saasDeploymentsClient.listSaas(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListSaasRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListSaasPagedResponse |
listSaas(LocationName parent)
public final SaasDeploymentsClient.ListSaasPagedResponse listSaas(LocationName parent)
Retrieve a collection of saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Saas element : saasDeploymentsClient.listSaas(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the saas. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListSaasPagedResponse |
listSaas(String parent)
public final SaasDeploymentsClient.ListSaasPagedResponse listSaas(String parent)
Retrieve a collection of saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Saas element : saasDeploymentsClient.listSaas(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent of the saas. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListSaasPagedResponse |
listSaasCallable()
public final UnaryCallable<ListSaasRequest,ListSaasResponse> listSaasCallable()
Retrieve a collection of saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListSaasRequest request =
ListSaasRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListSaasResponse response = saasDeploymentsClient.listSaasCallable().call(request);
for (Saas element : response.getSaasList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSaasRequest,ListSaasResponse> |
listSaasPagedCallable()
public final UnaryCallable<ListSaasRequest,SaasDeploymentsClient.ListSaasPagedResponse> listSaasPagedCallable()
Retrieve a collection of saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListSaasRequest request =
ListSaasRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Saas> future = saasDeploymentsClient.listSaasPagedCallable().futureCall(request);
// Do something.
for (Saas element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSaasRequest,ListSaasPagedResponse> |
listTenants(ListTenantsRequest request)
public final SaasDeploymentsClient.ListTenantsPagedResponse listTenants(ListTenantsRequest request)
Retrieve a collection of tenants.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListTenantsRequest request =
ListTenantsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Tenant element : saasDeploymentsClient.listTenants(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListTenantsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListTenantsPagedResponse |
listTenants(LocationName parent)
public final SaasDeploymentsClient.ListTenantsPagedResponse listTenants(LocationName parent)
Retrieve a collection of tenants.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Tenant element : saasDeploymentsClient.listTenants(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the tenant. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListTenantsPagedResponse |
listTenants(String parent)
public final SaasDeploymentsClient.ListTenantsPagedResponse listTenants(String parent)
Retrieve a collection of tenants.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Tenant element : saasDeploymentsClient.listTenants(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent of the tenant. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListTenantsPagedResponse |
listTenantsCallable()
public final UnaryCallable<ListTenantsRequest,ListTenantsResponse> listTenantsCallable()
Retrieve a collection of tenants.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListTenantsRequest request =
ListTenantsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListTenantsResponse response = saasDeploymentsClient.listTenantsCallable().call(request);
for (Tenant element : response.getTenantsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTenantsRequest,ListTenantsResponse> |
listTenantsPagedCallable()
public final UnaryCallable<ListTenantsRequest,SaasDeploymentsClient.ListTenantsPagedResponse> listTenantsPagedCallable()
Retrieve a collection of tenants.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListTenantsRequest request =
ListTenantsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Tenant> future =
saasDeploymentsClient.listTenantsPagedCallable().futureCall(request);
// Do something.
for (Tenant element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTenantsRequest,ListTenantsPagedResponse> |
listUnitKinds(ListUnitKindsRequest request)
public final SaasDeploymentsClient.ListUnitKindsPagedResponse listUnitKinds(ListUnitKindsRequest request)
Retrieve a collection of unit kinds.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitKindsRequest request =
ListUnitKindsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (UnitKind element : saasDeploymentsClient.listUnitKinds(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListUnitKindsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitKindsPagedResponse |
listUnitKinds(LocationName parent)
public final SaasDeploymentsClient.ListUnitKindsPagedResponse listUnitKinds(LocationName parent)
Retrieve a collection of unit kinds.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (UnitKind element : saasDeploymentsClient.listUnitKinds(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the unit kind. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitKindsPagedResponse |
listUnitKinds(String parent)
public final SaasDeploymentsClient.ListUnitKindsPagedResponse listUnitKinds(String parent)
Retrieve a collection of unit kinds.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (UnitKind element : saasDeploymentsClient.listUnitKinds(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent of the unit kind. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitKindsPagedResponse |
listUnitKindsCallable()
public final UnaryCallable<ListUnitKindsRequest,ListUnitKindsResponse> listUnitKindsCallable()
Retrieve a collection of unit kinds.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitKindsRequest request =
ListUnitKindsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListUnitKindsResponse response =
saasDeploymentsClient.listUnitKindsCallable().call(request);
for (UnitKind element : response.getUnitKindsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUnitKindsRequest,ListUnitKindsResponse> |
listUnitKindsPagedCallable()
public final UnaryCallable<ListUnitKindsRequest,SaasDeploymentsClient.ListUnitKindsPagedResponse> listUnitKindsPagedCallable()
Retrieve a collection of unit kinds.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitKindsRequest request =
ListUnitKindsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<UnitKind> future =
saasDeploymentsClient.listUnitKindsPagedCallable().futureCall(request);
// Do something.
for (UnitKind element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUnitKindsRequest,ListUnitKindsPagedResponse> |
listUnitOperations(ListUnitOperationsRequest request)
public final SaasDeploymentsClient.ListUnitOperationsPagedResponse listUnitOperations(ListUnitOperationsRequest request)
Retrieve a collection of unit operations.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitOperationsRequest request =
ListUnitOperationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (UnitOperation element : saasDeploymentsClient.listUnitOperations(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListUnitOperationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitOperationsPagedResponse |
listUnitOperations(LocationName parent)
public final SaasDeploymentsClient.ListUnitOperationsPagedResponse listUnitOperations(LocationName parent)
Retrieve a collection of unit operations.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (UnitOperation element : saasDeploymentsClient.listUnitOperations(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the unit operation. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitOperationsPagedResponse |
listUnitOperations(String parent)
public final SaasDeploymentsClient.ListUnitOperationsPagedResponse listUnitOperations(String parent)
Retrieve a collection of unit operations.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (UnitOperation element : saasDeploymentsClient.listUnitOperations(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent of the unit operation. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitOperationsPagedResponse |
listUnitOperationsCallable()
public final UnaryCallable<ListUnitOperationsRequest,ListUnitOperationsResponse> listUnitOperationsCallable()
Retrieve a collection of unit operations.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitOperationsRequest request =
ListUnitOperationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListUnitOperationsResponse response =
saasDeploymentsClient.listUnitOperationsCallable().call(request);
for (UnitOperation element : response.getUnitOperationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUnitOperationsRequest,ListUnitOperationsResponse> |
listUnitOperationsPagedCallable()
public final UnaryCallable<ListUnitOperationsRequest,SaasDeploymentsClient.ListUnitOperationsPagedResponse> listUnitOperationsPagedCallable()
Retrieve a collection of unit operations.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitOperationsRequest request =
ListUnitOperationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<UnitOperation> future =
saasDeploymentsClient.listUnitOperationsPagedCallable().futureCall(request);
// Do something.
for (UnitOperation element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUnitOperationsRequest,ListUnitOperationsPagedResponse> |
listUnits(ListUnitsRequest request)
public final SaasDeploymentsClient.ListUnitsPagedResponse listUnits(ListUnitsRequest request)
Retrieve a collection of units.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitsRequest request =
ListUnitsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Unit element : saasDeploymentsClient.listUnits(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListUnitsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitsPagedResponse |
listUnits(LocationName parent)
public final SaasDeploymentsClient.ListUnitsPagedResponse listUnits(LocationName parent)
Retrieve a collection of units.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Unit element : saasDeploymentsClient.listUnits(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the unit. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitsPagedResponse |
listUnits(String parent)
public final SaasDeploymentsClient.ListUnitsPagedResponse listUnits(String parent)
Retrieve a collection of units.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Unit element : saasDeploymentsClient.listUnits(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent of the unit. |
Returns | |
---|---|
Type | Description |
SaasDeploymentsClient.ListUnitsPagedResponse |
listUnitsCallable()
public final UnaryCallable<ListUnitsRequest,ListUnitsResponse> listUnitsCallable()
Retrieve a collection of units.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitsRequest request =
ListUnitsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListUnitsResponse response = saasDeploymentsClient.listUnitsCallable().call(request);
for (Unit element : response.getUnitsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUnitsRequest,ListUnitsResponse> |
listUnitsPagedCallable()
public final UnaryCallable<ListUnitsRequest,SaasDeploymentsClient.ListUnitsPagedResponse> listUnitsPagedCallable()
Retrieve a collection of units.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
ListUnitsRequest request =
ListUnitsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Unit> future = saasDeploymentsClient.listUnitsPagedCallable().futureCall(request);
// Do something.
for (Unit element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListUnitsRequest,ListUnitsPagedResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateRelease(Release release, FieldMask updateMask)
public final Release updateRelease(Release release, FieldMask updateMask)
Update a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
Release release = Release.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Release response = saasDeploymentsClient.updateRelease(release, updateMask);
}
Parameters | |
---|---|
Name | Description |
release |
Release Required. The desired state for the release. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Release resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields in the Release will be overwritten. |
Returns | |
---|---|
Type | Description |
Release |
updateRelease(UpdateReleaseRequest request)
public final Release updateRelease(UpdateReleaseRequest request)
Update a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateReleaseRequest request =
UpdateReleaseRequest.newBuilder()
.setRelease(Release.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Release response = saasDeploymentsClient.updateRelease(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateReleaseRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Release |
updateReleaseCallable()
public final UnaryCallable<UpdateReleaseRequest,Release> updateReleaseCallable()
Update a single release.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateReleaseRequest request =
UpdateReleaseRequest.newBuilder()
.setRelease(Release.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Release> future = saasDeploymentsClient.updateReleaseCallable().futureCall(request);
// Do something.
Release response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateReleaseRequest,Release> |
updateSaas(Saas saas, FieldMask updateMask)
public final Saas updateSaas(Saas saas, FieldMask updateMask)
Update a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
Saas saas = Saas.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Saas response = saasDeploymentsClient.updateSaas(saas, updateMask);
}
Parameters | |
---|---|
Name | Description |
saas |
Saas Required. The desired state for the saas. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Saas resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields in the Saas will be overwritten. |
Returns | |
---|---|
Type | Description |
Saas |
updateSaas(UpdateSaasRequest request)
public final Saas updateSaas(UpdateSaasRequest request)
Update a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateSaasRequest request =
UpdateSaasRequest.newBuilder()
.setSaas(Saas.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Saas response = saasDeploymentsClient.updateSaas(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateSaasRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Saas |
updateSaasCallable()
public final UnaryCallable<UpdateSaasRequest,Saas> updateSaasCallable()
Update a single saas.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateSaasRequest request =
UpdateSaasRequest.newBuilder()
.setSaas(Saas.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Saas> future = saasDeploymentsClient.updateSaasCallable().futureCall(request);
// Do something.
Saas response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSaasRequest,Saas> |
updateTenant(Tenant tenant, FieldMask updateMask)
public final Tenant updateTenant(Tenant tenant, FieldMask updateMask)
Update a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
Tenant tenant = Tenant.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Tenant response = saasDeploymentsClient.updateTenant(tenant, updateMask);
}
Parameters | |
---|---|
Name | Description |
tenant |
Tenant Required. The desired state for the tenant. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Tenant resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields in the Tenant will be overwritten. |
Returns | |
---|---|
Type | Description |
Tenant |
updateTenant(UpdateTenantRequest request)
public final Tenant updateTenant(UpdateTenantRequest request)
Update a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateTenantRequest request =
UpdateTenantRequest.newBuilder()
.setTenant(Tenant.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Tenant response = saasDeploymentsClient.updateTenant(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateTenantRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Tenant |
updateTenantCallable()
public final UnaryCallable<UpdateTenantRequest,Tenant> updateTenantCallable()
Update a single tenant.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateTenantRequest request =
UpdateTenantRequest.newBuilder()
.setTenant(Tenant.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Tenant> future = saasDeploymentsClient.updateTenantCallable().futureCall(request);
// Do something.
Tenant response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateTenantRequest,Tenant> |
updateUnit(Unit unit, FieldMask updateMask)
public final Unit updateUnit(Unit unit, FieldMask updateMask)
Update a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
Unit unit = Unit.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Unit response = saasDeploymentsClient.updateUnit(unit, updateMask);
}
Parameters | |
---|---|
Name | Description |
unit |
Unit Required. The desired state for the unit. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Unit resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields in the Unit will be overwritten. |
Returns | |
---|---|
Type | Description |
Unit |
updateUnit(UpdateUnitRequest request)
public final Unit updateUnit(UpdateUnitRequest request)
Update a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateUnitRequest request =
UpdateUnitRequest.newBuilder()
.setUnit(Unit.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Unit response = saasDeploymentsClient.updateUnit(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateUnitRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Unit |
updateUnitCallable()
public final UnaryCallable<UpdateUnitRequest,Unit> updateUnitCallable()
Update a single unit.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateUnitRequest request =
UpdateUnitRequest.newBuilder()
.setUnit(Unit.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Unit> future = saasDeploymentsClient.updateUnitCallable().futureCall(request);
// Do something.
Unit response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateUnitRequest,Unit> |
updateUnitKind(UnitKind unitKind, FieldMask updateMask)
public final UnitKind updateUnitKind(UnitKind unitKind, FieldMask updateMask)
Update a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitKind unitKind = UnitKind.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
UnitKind response = saasDeploymentsClient.updateUnitKind(unitKind, updateMask);
}
Parameters | |
---|---|
Name | Description |
unitKind |
UnitKind Required. The desired state for the unit kind. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the UnitKind resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields in the UnitKind will be overwritten. |
Returns | |
---|---|
Type | Description |
UnitKind |
updateUnitKind(UpdateUnitKindRequest request)
public final UnitKind updateUnitKind(UpdateUnitKindRequest request)
Update a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateUnitKindRequest request =
UpdateUnitKindRequest.newBuilder()
.setUnitKind(UnitKind.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
UnitKind response = saasDeploymentsClient.updateUnitKind(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateUnitKindRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
UnitKind |
updateUnitKindCallable()
public final UnaryCallable<UpdateUnitKindRequest,UnitKind> updateUnitKindCallable()
Update a single unit kind.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateUnitKindRequest request =
UpdateUnitKindRequest.newBuilder()
.setUnitKind(UnitKind.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<UnitKind> future =
saasDeploymentsClient.updateUnitKindCallable().futureCall(request);
// Do something.
UnitKind response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateUnitKindRequest,UnitKind> |
updateUnitOperation(UnitOperation unitOperation, FieldMask updateMask)
public final UnitOperation updateUnitOperation(UnitOperation unitOperation, FieldMask updateMask)
Update a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UnitOperation unitOperation = UnitOperation.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
UnitOperation response = saasDeploymentsClient.updateUnitOperation(unitOperation, updateMask);
}
Parameters | |
---|---|
Name | Description |
unitOperation |
UnitOperation Required. The desired state for the unit operation. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the UnitOperation resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields in the UnitOperation will be overwritten. |
Returns | |
---|---|
Type | Description |
UnitOperation |
updateUnitOperation(UpdateUnitOperationRequest request)
public final UnitOperation updateUnitOperation(UpdateUnitOperationRequest request)
Update a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateUnitOperationRequest request =
UpdateUnitOperationRequest.newBuilder()
.setUnitOperation(UnitOperation.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
UnitOperation response = saasDeploymentsClient.updateUnitOperation(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateUnitOperationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
UnitOperation |
updateUnitOperationCallable()
public final UnaryCallable<UpdateUnitOperationRequest,UnitOperation> updateUnitOperationCallable()
Update a single unit operation.
Sample 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 (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
UpdateUnitOperationRequest request =
UpdateUnitOperationRequest.newBuilder()
.setUnitOperation(UnitOperation.newBuilder().build())
.setValidateOnly(true)
.setRequestId("requestId693933066")
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<UnitOperation> future =
saasDeploymentsClient.updateUnitOperationCallable().futureCall(request);
// Do something.
UnitOperation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateUnitOperationRequest,UnitOperation> |