Class AzureClustersClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) {
AzureClientName name = AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]");
AzureClient response = azureClustersClient.getAzureClient(name);
}
Note: close() needs to be called on the AzureClustersClient 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 |
|---|---|---|
CreateAzureClient |
Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region. `AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAzureClient |
Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. |
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.
|
ListAzureClients |
Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region. |
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.
|
DeleteAzureClient |
Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAzureCluster |
Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateAzureCluster |
Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAzureCluster |
Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. |
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.
|
ListAzureClusters |
Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region. |
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.
|
DeleteAzureCluster |
Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GenerateAzureClusterAgentToken |
Generates an access token for a cluster agent. |
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.
|
GenerateAzureAccessToken |
Generates a short-lived access token to authenticate to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. |
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.
|
CreateAzureNodePool |
Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateAzureNodePool |
Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAzureNodePool |
Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. |
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.
|
ListAzureNodePools |
Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. |
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.
|
DeleteAzureNodePool |
Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAzureOpenIdConfig |
Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details. |
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.
|
GetAzureJsonWebKeys |
Gets the public component of the cluster signing keys in JSON Web Key format. |
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.
|
GetAzureServerConfig |
Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud location. |
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.
|
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 AzureClustersSettings 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
AzureClustersSettings azureClustersSettings =
AzureClustersSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AzureClustersClient azureClustersClient = AzureClustersClient.create(azureClustersSettings);
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
AzureClustersSettings azureClustersSettings =
AzureClustersSettings.newBuilder().setEndpoint(myEndpoint).build();
AzureClustersClient azureClustersClient = AzureClustersClient.create(azureClustersSettings);
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
AzureClustersSettings azureClustersSettings =
AzureClustersSettings.newHttpJsonBuilder().build();
AzureClustersClient azureClustersClient = AzureClustersClient.create(azureClustersSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAzureClustersClient(AzureClustersSettings settings) Deprecated.Constructs an instance of AzureClustersClient, using the given settings.protectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) Deprecated.final voidclose()Deprecated.static final AzureClustersClientcreate()Deprecated.Constructs an instance of AzureClustersClient with default settings.static final AzureClustersClientcreate(AzureClustersSettings settings) Deprecated.Constructs an instance of AzureClustersClient, using the given settings.static final AzureClustersClientcreate(AzureClustersStub stub) Deprecated.Constructs an instance of AzureClustersClient, using the given stub for making calls.Deprecated.This method is deprecated and will be removed in the next major version update.createAzureClientAsync(LocationName parent, AzureClient azureClient, String azureClientId) Deprecated.This method is deprecated and will be removed in the next major version update.createAzureClientAsync(String parent, AzureClient azureClient, String azureClientId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.createAzureClusterAsync(LocationName parent, AzureCluster azureCluster, String azureClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.createAzureClusterAsync(String parent, AzureCluster azureCluster, String azureClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.createAzureNodePoolAsync(AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.createAzureNodePoolAsync(String parent, AzureNodePool azureNodePool, String azureNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClientAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationCallable<DeleteAzureClientRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationCallable<DeleteAzureClusterRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationCallable<DeleteAzureNodePoolRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AzureClientDeprecated.This method is deprecated and will be removed in the next major version update.final AzureClientgetAzureClient(GetAzureClientRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.final AzureClientgetAzureClient(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AzureClusterDeprecated.This method is deprecated and will be removed in the next major version update.final AzureClustergetAzureCluster(GetAzureClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.final AzureClustergetAzureCluster(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AzureJsonWebKeysgetAzureJsonWebKeys(AzureClusterName azureCluster) Deprecated.This method is deprecated and will be removed in the next major version update.final AzureJsonWebKeysDeprecated.This method is deprecated and will be removed in the next major version update.final AzureJsonWebKeysgetAzureJsonWebKeys(String azureCluster) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AzureNodePoolDeprecated.This method is deprecated and will be removed in the next major version update.final AzureNodePoolgetAzureNodePool(GetAzureNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.final AzureNodePoolgetAzureNodePool(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AzureOpenIdConfiggetAzureOpenIdConfig(AzureClusterName azureCluster) Deprecated.This method is deprecated and will be removed in the next major version update.final AzureOpenIdConfigDeprecated.This method is deprecated and will be removed in the next major version update.final AzureOpenIdConfiggetAzureOpenIdConfig(String azureCluster) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AzureServerConfigDeprecated.This method is deprecated and will be removed in the next major version update.final AzureServerConfigDeprecated.This method is deprecated and will be removed in the next major version update.final AzureServerConfiggetAzureServerConfig(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationsClientDeprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final OperationsClientDeprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final AzureClustersSettingsDeprecated.getStub()Deprecated.booleanDeprecated.booleanDeprecated.listAzureClients(ListAzureClientsRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.listAzureClients(LocationName parent) Deprecated.This method is deprecated and will be removed in the next major version update.listAzureClients(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.listAzureClusters(LocationName parent) Deprecated.This method is deprecated and will be removed in the next major version update.listAzureClusters(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.listAzureNodePools(AzureClusterName parent) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.listAzureNodePools(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.voidshutdown()Deprecated.voidDeprecated.updateAzureClusterAsync(AzureCluster azureCluster, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.updateAzureNodePoolAsync(AzureNodePool azureNodePool, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.
-
Constructor Details
-
AzureClustersClient
Deprecated.Constructs an instance of AzureClustersClient, 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.- Throws:
IOException
-
AzureClustersClient
Deprecated.
-
-
Method Details
-
create
Deprecated.Constructs an instance of AzureClustersClient with default settings.- Throws:
IOException
-
create
Deprecated.Constructs an instance of AzureClustersClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.- Throws:
IOException
-
create
Deprecated.Constructs an instance of AzureClustersClient, using the given stub for making calls. This is for advanced usage - prefer using create(AzureClustersSettings). -
getSettings
Deprecated. -
getStub
Deprecated. -
getOperationsClient
Deprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
getHttpJsonOperationsClient
Deprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
createAzureClientAsync
@Deprecated public final OperationFuture<AzureClient,OperationMetadata> createAzureClientAsync(LocationName parent, AzureClient azureClient, String azureClientId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region.`AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AzureClient azureClient = AzureClient.newBuilder().build(); String azureClientId = "azureClientId-1735934475"; AzureClient response = azureClustersClient.createAzureClientAsync(parent, azureClient, azureClientId).get(); }- Parameters:
parent- Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be created.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
azureClient- Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.azureClientId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name formatted as `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAzureClientAsync
@Deprecated public final OperationFuture<AzureClient,OperationMetadata> createAzureClientAsync(String parent, AzureClient azureClient, String azureClientId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region.`AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); AzureClient azureClient = AzureClient.newBuilder().build(); String azureClientId = "azureClientId-1735934475"; AzureClient response = azureClustersClient.createAzureClientAsync(parent, azureClient, azureClientId).get(); }- Parameters:
parent- Required. The parent location where this [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource will be created.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
azureClient- Required. The specification of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to create.azureClientId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource name formatted as `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAzureClientAsync
@Deprecated public final OperationFuture<AzureClient,OperationMetadata> createAzureClientAsync(CreateAzureClientRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region.`AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureClientRequest request = CreateAzureClientRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAzureClient(AzureClient.newBuilder().build()) .setAzureClientId("azureClientId-1735934475") .setValidateOnly(true) .build(); AzureClient response = azureClustersClient.createAzureClientAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAzureClientOperationCallable
@Deprecated public final OperationCallable<CreateAzureClientRequest,AzureClient, createAzureClientOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region.`AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureClientRequest request = CreateAzureClientRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAzureClient(AzureClient.newBuilder().build()) .setAzureClientId("azureClientId-1735934475") .setValidateOnly(true) .build(); OperationFuture<AzureClient, OperationMetadata> future = azureClustersClient.createAzureClientOperationCallable().futureCall(request); // Do something. AzureClient response = future.get(); } -
createAzureClientCallable
@Deprecated public final UnaryCallable<CreateAzureClientRequest,Operation> createAzureClientCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region.`AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureClientRequest request = CreateAzureClientRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAzureClient(AzureClient.newBuilder().build()) .setAzureClientId("azureClientId-1735934475") .setValidateOnly(true) .build(); ApiFuture<Operation> future = azureClustersClient.createAzureClientCallable().futureCall(request); // Do something. Operation response = future.get(); } -
getAzureClient
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClientName name = AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]"); AzureClient response = azureClustersClient.getAzureClient(name); }- Parameters:
name- Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.[AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureClient
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString(); AzureClient response = azureClustersClient.getAzureClient(name); }- Parameters:
name- Required. The name of the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource to describe.[AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureClient
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureClientRequest request = GetAzureClientRequest.newBuilder() .setName(AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString()) .build(); AzureClient response = azureClustersClient.getAzureClient(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAzureClientCallable
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureClientRequest request = GetAzureClientRequest.newBuilder() .setName(AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString()) .build(); ApiFuture<AzureClient> future = azureClustersClient.getAzureClientCallable().futureCall(request); // Do something. AzureClient response = future.get(); } -
listAzureClients
@Deprecated public final AzureClustersClient.ListAzureClientsPagedResponse listAzureClients(LocationName parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (AzureClient element : azureClustersClient.listAzureClients(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent location which owns this collection of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
listAzureClients
@Deprecated public final AzureClustersClient.ListAzureClientsPagedResponse listAzureClients(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (AzureClient element : azureClustersClient.listAzureClients(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent location which owns this collection of [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
listAzureClients
@Deprecated public final AzureClustersClient.ListAzureClientsPagedResponse listAzureClients(ListAzureClientsRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureClientsRequest request = ListAzureClientsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AzureClient element : azureClustersClient.listAzureClients(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAzureClientsPagedCallable
@Deprecated public final UnaryCallable<ListAzureClientsRequest,AzureClustersClient.ListAzureClientsPagedResponse> listAzureClientsPagedCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureClientsRequest request = ListAzureClientsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AzureClient> future = azureClustersClient.listAzureClientsPagedCallable().futureCall(request); // Do something. for (AzureClient element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAzureClientsCallable
@Deprecated public final UnaryCallable<ListAzureClientsRequest,ListAzureClientsResponse> listAzureClientsCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureClientsRequest request = ListAzureClientsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListAzureClientsResponse response = azureClustersClient.listAzureClientsCallable().call(request); for (AzureClient element : response.getAzureClientsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
deleteAzureClientAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClientAsync(AzureClientName name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClientName name = AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]"); azureClustersClient.deleteAzureClientAsync(name).get(); }- Parameters:
name- Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.[AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAzureClientAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClientAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString(); azureClustersClient.deleteAzureClientAsync(name).get(); }- Parameters:
name- Required. The resource name the [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] to delete.[AzureClient][google.cloud.gkemulticloud.v1.AzureClient] names are formatted as `projects/<project-id>/locations/<region>/azureClients/<client-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAzureClientAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClientAsync(DeleteAzureClientRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureClientRequest request = DeleteAzureClientRequest.newBuilder() .setName(AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString()) .setAllowMissing(true) .setValidateOnly(true) .build(); azureClustersClient.deleteAzureClientAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAzureClientOperationCallable
@Deprecated public final OperationCallable<DeleteAzureClientRequest,com.google.protobuf.Empty, deleteAzureClientOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureClientRequest request = DeleteAzureClientRequest.newBuilder() .setName(AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString()) .setAllowMissing(true) .setValidateOnly(true) .build(); OperationFuture<Empty, OperationMetadata> future = azureClustersClient.deleteAzureClientOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteAzureClientCallable
@Deprecated public final UnaryCallable<DeleteAzureClientRequest,Operation> deleteAzureClientCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureClientRequest request = DeleteAzureClientRequest.newBuilder() .setName(AzureClientName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLIENT]").toString()) .setAllowMissing(true) .setValidateOnly(true) .build(); ApiFuture<Operation> future = azureClustersClient.deleteAzureClientCallable().futureCall(request); // Do something. future.get(); } -
createAzureClusterAsync
@Deprecated public final OperationFuture<AzureCluster,OperationMetadata> createAzureClusterAsync(LocationName parent, AzureCluster azureCluster, String azureClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AzureCluster azureCluster = AzureCluster.newBuilder().build(); String azureClusterId = "azureClusterId191689446"; AzureCluster response = azureClustersClient.createAzureClusterAsync(parent, azureCluster, azureClusterId).get(); }- Parameters:
parent- Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be created.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
azureCluster- Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.azureClusterId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAzureClusterAsync
@Deprecated public final OperationFuture<AzureCluster,OperationMetadata> createAzureClusterAsync(String parent, AzureCluster azureCluster, String azureClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); AzureCluster azureCluster = AzureCluster.newBuilder().build(); String azureClusterId = "azureClusterId191689446"; AzureCluster response = azureClustersClient.createAzureClusterAsync(parent, azureCluster, azureClusterId).get(); }- Parameters:
parent- Required. The parent location where this [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will be created.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
azureCluster- Required. The specification of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to create.azureClusterId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource name formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAzureClusterAsync
@Deprecated public final OperationFuture<AzureCluster,OperationMetadata> createAzureClusterAsync(CreateAzureClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureClusterRequest request = CreateAzureClusterRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAzureCluster(AzureCluster.newBuilder().build()) .setAzureClusterId("azureClusterId191689446") .setValidateOnly(true) .build(); AzureCluster response = azureClustersClient.createAzureClusterAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAzureClusterOperationCallable
@Deprecated public final OperationCallable<CreateAzureClusterRequest,AzureCluster, createAzureClusterOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureClusterRequest request = CreateAzureClusterRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAzureCluster(AzureCluster.newBuilder().build()) .setAzureClusterId("azureClusterId191689446") .setValidateOnly(true) .build(); OperationFuture<AzureCluster, OperationMetadata> future = azureClustersClient.createAzureClusterOperationCallable().futureCall(request); // Do something. AzureCluster response = future.get(); } -
createAzureClusterCallable
@Deprecated public final UnaryCallable<CreateAzureClusterRequest,Operation> createAzureClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureClusterRequest request = CreateAzureClusterRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAzureCluster(AzureCluster.newBuilder().build()) .setAzureClusterId("azureClusterId191689446") .setValidateOnly(true) .build(); ApiFuture<Operation> future = azureClustersClient.createAzureClusterCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateAzureClusterAsync
@Deprecated public final OperationFuture<AzureCluster,OperationMetadata> updateAzureClusterAsync(AzureCluster azureCluster, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureCluster azureCluster = AzureCluster.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); AzureCluster response = azureClustersClient.updateAzureClusterAsync(azureCluster, updateMask).get(); }- Parameters:
azureCluster- Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to update.updateMask- Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]:* `description`. * `azureClient`. * `control_plane.version`. * `control_plane.vm_size`. * `annotations`. * `authorization.admin_users`. * `authorization.admin_groups`. * `control_plane.root_volume.size_gib`. * `azure_services_authentication`. * `azure_services_authentication.tenant_id`. * `azure_services_authentication.application_id`. * `control_plane.proxy_config`. * `control_plane.proxy_config.resource_group_id`. * `control_plane.proxy_config.secret_id`. * `control_plane.ssh_config.authorized_key`. * `logging_config.component_config.enable_components` * `monitoring_config.managed_prometheus_config.enabled`.
- Throws:
ApiException- if the remote call fails
-
updateAzureClusterAsync
@Deprecated public final OperationFuture<AzureCluster,OperationMetadata> updateAzureClusterAsync(UpdateAzureClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { UpdateAzureClusterRequest request = UpdateAzureClusterRequest.newBuilder() .setAzureCluster(AzureCluster.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); AzureCluster response = azureClustersClient.updateAzureClusterAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateAzureClusterOperationCallable
@Deprecated public final OperationCallable<UpdateAzureClusterRequest,AzureCluster, updateAzureClusterOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { UpdateAzureClusterRequest request = UpdateAzureClusterRequest.newBuilder() .setAzureCluster(AzureCluster.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<AzureCluster, OperationMetadata> future = azureClustersClient.updateAzureClusterOperationCallable().futureCall(request); // Do something. AzureCluster response = future.get(); } -
updateAzureClusterCallable
@Deprecated public final UnaryCallable<UpdateAzureClusterRequest,Operation> updateAzureClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { UpdateAzureClusterRequest request = UpdateAzureClusterRequest.newBuilder() .setAzureCluster(AzureCluster.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = azureClustersClient.updateAzureClusterCallable().futureCall(request); // Do something. Operation response = future.get(); } -
getAzureCluster
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClusterName name = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]"); AzureCluster response = azureClustersClient.getAzureCluster(name); }- Parameters:
name- Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureCluster
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString(); AzureCluster response = azureClustersClient.getAzureCluster(name); }- Parameters:
name- Required. The name of the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource to describe.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureCluster
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureClusterRequest request = GetAzureClusterRequest.newBuilder() .setName(AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); AzureCluster response = azureClustersClient.getAzureCluster(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAzureClusterCallable
@Deprecated public final UnaryCallable<GetAzureClusterRequest,AzureCluster> getAzureClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureClusterRequest request = GetAzureClusterRequest.newBuilder() .setName(AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); ApiFuture<AzureCluster> future = azureClustersClient.getAzureClusterCallable().futureCall(request); // Do something. AzureCluster response = future.get(); } -
listAzureClusters
@Deprecated public final AzureClustersClient.ListAzureClustersPagedResponse listAzureClusters(LocationName parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (AzureCluster element : azureClustersClient.listAzureClusters(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent location which owns this collection of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
listAzureClusters
@Deprecated public final AzureClustersClient.ListAzureClustersPagedResponse listAzureClusters(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (AzureCluster element : azureClustersClient.listAzureClusters(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent location which owns this collection of [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
listAzureClusters
@Deprecated public final AzureClustersClient.ListAzureClustersPagedResponse listAzureClusters(ListAzureClustersRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureClustersRequest request = ListAzureClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AzureCluster element : azureClustersClient.listAzureClusters(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAzureClustersPagedCallable
@Deprecated public final UnaryCallable<ListAzureClustersRequest,AzureClustersClient.ListAzureClustersPagedResponse> listAzureClustersPagedCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureClustersRequest request = ListAzureClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AzureCluster> future = azureClustersClient.listAzureClustersPagedCallable().futureCall(request); // Do something. for (AzureCluster element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAzureClustersCallable
@Deprecated public final UnaryCallable<ListAzureClustersRequest,ListAzureClustersResponse> listAzureClustersCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureClustersRequest request = ListAzureClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListAzureClustersResponse response = azureClustersClient.listAzureClustersCallable().call(request); for (AzureCluster element : response.getAzureClustersList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
deleteAzureClusterAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClusterAsync(AzureClusterName name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClusterName name = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]"); azureClustersClient.deleteAzureClusterAsync(name).get(); }- Parameters:
name- Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAzureClusterAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClusterAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString(); azureClustersClient.deleteAzureClusterAsync(name).get(); }- Parameters:
name- Required. The resource name the [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] to delete.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAzureClusterAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureClusterAsync(DeleteAzureClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureClusterRequest request = DeleteAzureClusterRequest.newBuilder() .setName(AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .setIgnoreErrors(true) .build(); azureClustersClient.deleteAzureClusterAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAzureClusterOperationCallable
@Deprecated public final OperationCallable<DeleteAzureClusterRequest,com.google.protobuf.Empty, deleteAzureClusterOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureClusterRequest request = DeleteAzureClusterRequest.newBuilder() .setName(AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .setIgnoreErrors(true) .build(); OperationFuture<Empty, OperationMetadata> future = azureClustersClient.deleteAzureClusterOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteAzureClusterCallable
@Deprecated public final UnaryCallable<DeleteAzureClusterRequest,Operation> deleteAzureClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureClusterRequest request = DeleteAzureClusterRequest.newBuilder() .setName(AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .setIgnoreErrors(true) .build(); ApiFuture<Operation> future = azureClustersClient.deleteAzureClusterCallable().futureCall(request); // Do something. future.get(); } -
generateAzureClusterAgentToken
@Deprecated public final GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentToken(GenerateAzureClusterAgentTokenRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Generates an access token for a cluster agent.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GenerateAzureClusterAgentTokenRequest request = GenerateAzureClusterAgentTokenRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setSubjectToken("subjectToken-1519661011") .setSubjectTokenType("subjectTokenType1839592711") .setVersion("version351608024") .setNodePoolId("nodePoolId1121557241") .setGrantType("grantType-1219832202") .setAudience("audience975628804") .setScope("scope109264468") .setRequestedTokenType("requestedTokenType1733106949") .setOptions("options-1249474914") .build(); GenerateAzureClusterAgentTokenResponse response = azureClustersClient.generateAzureClusterAgentToken(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
generateAzureClusterAgentTokenCallable
@Deprecated public final UnaryCallable<GenerateAzureClusterAgentTokenRequest,GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Generates an access token for a cluster agent.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GenerateAzureClusterAgentTokenRequest request = GenerateAzureClusterAgentTokenRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setSubjectToken("subjectToken-1519661011") .setSubjectTokenType("subjectTokenType1839592711") .setVersion("version351608024") .setNodePoolId("nodePoolId1121557241") .setGrantType("grantType-1219832202") .setAudience("audience975628804") .setScope("scope109264468") .setRequestedTokenType("requestedTokenType1733106949") .setOptions("options-1249474914") .build(); ApiFuture<GenerateAzureClusterAgentTokenResponse> future = azureClustersClient.generateAzureClusterAgentTokenCallable().futureCall(request); // Do something. GenerateAzureClusterAgentTokenResponse response = future.get(); } -
generateAzureAccessToken
@Deprecated public final GenerateAzureAccessTokenResponse generateAzureAccessToken(GenerateAzureAccessTokenRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Generates a short-lived access token to authenticate to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GenerateAzureAccessTokenRequest request = GenerateAzureAccessTokenRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); GenerateAzureAccessTokenResponse response = azureClustersClient.generateAzureAccessToken(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
generateAzureAccessTokenCallable
@Deprecated public final UnaryCallable<GenerateAzureAccessTokenRequest,GenerateAzureAccessTokenResponse> generateAzureAccessTokenCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Generates a short-lived access token to authenticate to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GenerateAzureAccessTokenRequest request = GenerateAzureAccessTokenRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); ApiFuture<GenerateAzureAccessTokenResponse> future = azureClustersClient.generateAzureAccessTokenCallable().futureCall(request); // Do something. GenerateAzureAccessTokenResponse response = future.get(); } -
createAzureNodePoolAsync
@Deprecated public final OperationFuture<AzureNodePool,OperationMetadata> createAzureNodePoolAsync(AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClusterName parent = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]"); AzureNodePool azureNodePool = AzureNodePool.newBuilder().build(); String azureNodePoolId = "azureNodePoolId-1766264088"; AzureNodePool response = azureClustersClient .createAzureNodePoolAsync(parent, azureNodePool, azureNodePoolId) .get(); }- Parameters:
parent- Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
azureNodePool- Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.azureNodePoolId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAzureNodePoolAsync
@Deprecated public final OperationFuture<AzureNodePool,OperationMetadata> createAzureNodePoolAsync(String parent, AzureNodePool azureNodePool, String azureNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String parent = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString(); AzureNodePool azureNodePool = AzureNodePool.newBuilder().build(); String azureNodePoolId = "azureNodePoolId-1766264088"; AzureNodePool response = azureClustersClient .createAzureNodePoolAsync(parent, azureNodePool, azureNodePoolId) .get(); }- Parameters:
parent- Required. The [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource where this node pool will be created.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
azureNodePool- Required. The specification of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to create.azureNodePoolId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource name formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAzureNodePoolAsync
@Deprecated public final OperationFuture<AzureNodePool,OperationMetadata> createAzureNodePoolAsync(CreateAzureNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureNodePoolRequest request = CreateAzureNodePoolRequest.newBuilder() .setParent( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setAzureNodePool(AzureNodePool.newBuilder().build()) .setAzureNodePoolId("azureNodePoolId-1766264088") .setValidateOnly(true) .build(); AzureNodePool response = azureClustersClient.createAzureNodePoolAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAzureNodePoolOperationCallable
@Deprecated public final OperationCallable<CreateAzureNodePoolRequest,AzureNodePool, createAzureNodePoolOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureNodePoolRequest request = CreateAzureNodePoolRequest.newBuilder() .setParent( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setAzureNodePool(AzureNodePool.newBuilder().build()) .setAzureNodePoolId("azureNodePoolId-1766264088") .setValidateOnly(true) .build(); OperationFuture<AzureNodePool, OperationMetadata> future = azureClustersClient.createAzureNodePoolOperationCallable().futureCall(request); // Do something. AzureNodePool response = future.get(); } -
createAzureNodePoolCallable
@Deprecated public final UnaryCallable<CreateAzureNodePoolRequest,Operation> createAzureNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { CreateAzureNodePoolRequest request = CreateAzureNodePoolRequest.newBuilder() .setParent( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setAzureNodePool(AzureNodePool.newBuilder().build()) .setAzureNodePoolId("azureNodePoolId-1766264088") .setValidateOnly(true) .build(); ApiFuture<Operation> future = azureClustersClient.createAzureNodePoolCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateAzureNodePoolAsync
@Deprecated public final OperationFuture<AzureNodePool,OperationMetadata> updateAzureNodePoolAsync(AzureNodePool azureNodePool, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureNodePool azureNodePool = AzureNodePool.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); AzureNodePool response = azureClustersClient.updateAzureNodePoolAsync(azureNodePool, updateMask).get(); }- Parameters:
azureNodePool- Required. The [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to update.updateMask- Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]:*. `annotations`. * `version`. * `autoscaling.min_node_count`. * `autoscaling.max_node_count`. * `config.ssh_config.authorized_key`. * `management.auto_repair`. * `management`.
- Throws:
ApiException- if the remote call fails
-
updateAzureNodePoolAsync
@Deprecated public final OperationFuture<AzureNodePool,OperationMetadata> updateAzureNodePoolAsync(UpdateAzureNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { UpdateAzureNodePoolRequest request = UpdateAzureNodePoolRequest.newBuilder() .setAzureNodePool(AzureNodePool.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); AzureNodePool response = azureClustersClient.updateAzureNodePoolAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateAzureNodePoolOperationCallable
@Deprecated public final OperationCallable<UpdateAzureNodePoolRequest,AzureNodePool, updateAzureNodePoolOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { UpdateAzureNodePoolRequest request = UpdateAzureNodePoolRequest.newBuilder() .setAzureNodePool(AzureNodePool.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<AzureNodePool, OperationMetadata> future = azureClustersClient.updateAzureNodePoolOperationCallable().futureCall(request); // Do something. AzureNodePool response = future.get(); } -
updateAzureNodePoolCallable
@Deprecated public final UnaryCallable<UpdateAzureNodePoolRequest,Operation> updateAzureNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { UpdateAzureNodePoolRequest request = UpdateAzureNodePoolRequest.newBuilder() .setAzureNodePool(AzureNodePool.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = azureClustersClient.updateAzureNodePoolCallable().futureCall(request); // Do something. Operation response = future.get(); } -
getAzureNodePool
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureNodePoolName name = AzureNodePoolName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]"); AzureNodePool response = azureClustersClient.getAzureNodePool(name); }- Parameters:
name- Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.`AzureNodePool` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureNodePool
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureNodePoolName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString(); AzureNodePool response = azureClustersClient.getAzureNodePool(name); }- Parameters:
name- Required. The name of the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource to describe.`AzureNodePool` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureNodePool
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureNodePoolRequest request = GetAzureNodePoolRequest.newBuilder() .setName( AzureNodePoolName.of( "[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString()) .build(); AzureNodePool response = azureClustersClient.getAzureNodePool(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAzureNodePoolCallable
@Deprecated public final UnaryCallable<GetAzureNodePoolRequest,AzureNodePool> getAzureNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureNodePoolRequest request = GetAzureNodePoolRequest.newBuilder() .setName( AzureNodePoolName.of( "[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString()) .build(); ApiFuture<AzureNodePool> future = azureClustersClient.getAzureNodePoolCallable().futureCall(request); // Do something. AzureNodePool response = future.get(); } -
listAzureNodePools
@Deprecated public final AzureClustersClient.ListAzureNodePoolsPagedResponse listAzureNodePools(AzureClusterName parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClusterName parent = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]"); for (AzureNodePool element : azureClustersClient.listAzureNodePools(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `AzureCluster` which owns this collection of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
listAzureNodePools
@Deprecated public final AzureClustersClient.ListAzureNodePoolsPagedResponse listAzureNodePools(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String parent = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString(); for (AzureNodePool element : azureClustersClient.listAzureNodePools(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `AzureCluster` which owns this collection of [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.`AzureCluster` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
listAzureNodePools
@Deprecated public final AzureClustersClient.ListAzureNodePoolsPagedResponse listAzureNodePools(ListAzureNodePoolsRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureNodePoolsRequest request = ListAzureNodePoolsRequest.newBuilder() .setParent( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AzureNodePool element : azureClustersClient.listAzureNodePools(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAzureNodePoolsPagedCallable
@Deprecated public final UnaryCallable<ListAzureNodePoolsRequest,AzureClustersClient.ListAzureNodePoolsPagedResponse> listAzureNodePoolsPagedCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureNodePoolsRequest request = ListAzureNodePoolsRequest.newBuilder() .setParent( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AzureNodePool> future = azureClustersClient.listAzureNodePoolsPagedCallable().futureCall(request); // Do something. for (AzureNodePool element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAzureNodePoolsCallable
@Deprecated public final UnaryCallable<ListAzureNodePoolsRequest,ListAzureNodePoolsResponse> listAzureNodePoolsCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { ListAzureNodePoolsRequest request = ListAzureNodePoolsRequest.newBuilder() .setParent( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListAzureNodePoolsResponse response = azureClustersClient.listAzureNodePoolsCallable().call(request); for (AzureNodePool element : response.getAzureNodePoolsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
deleteAzureNodePoolAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureNodePoolAsync(AzureNodePoolName name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureNodePoolName name = AzureNodePoolName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]"); azureClustersClient.deleteAzureNodePoolAsync(name).get(); }- Parameters:
name- Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.`AzureNodePool` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAzureNodePoolAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureNodePoolAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureNodePoolName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString(); azureClustersClient.deleteAzureNodePoolAsync(name).get(); }- Parameters:
name- Required. The resource name the [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] to delete.`AzureNodePool` names are formatted as `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAzureNodePoolAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAzureNodePoolAsync(DeleteAzureNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureNodePoolRequest request = DeleteAzureNodePoolRequest.newBuilder() .setName( AzureNodePoolName.of( "[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString()) .setValidateOnly(true) .setAllowMissing(true) .setEtag("etag3123477") .setIgnoreErrors(true) .build(); azureClustersClient.deleteAzureNodePoolAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAzureNodePoolOperationCallable
@Deprecated public final OperationCallable<DeleteAzureNodePoolRequest,com.google.protobuf.Empty, deleteAzureNodePoolOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureNodePoolRequest request = DeleteAzureNodePoolRequest.newBuilder() .setName( AzureNodePoolName.of( "[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString()) .setValidateOnly(true) .setAllowMissing(true) .setEtag("etag3123477") .setIgnoreErrors(true) .build(); OperationFuture<Empty, OperationMetadata> future = azureClustersClient.deleteAzureNodePoolOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteAzureNodePoolCallable
@Deprecated public final UnaryCallable<DeleteAzureNodePoolRequest,Operation> deleteAzureNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { DeleteAzureNodePoolRequest request = DeleteAzureNodePoolRequest.newBuilder() .setName( AzureNodePoolName.of( "[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]", "[AZURE_NODE_POOL]") .toString()) .setValidateOnly(true) .setAllowMissing(true) .setEtag("etag3123477") .setIgnoreErrors(true) .build(); ApiFuture<Operation> future = azureClustersClient.deleteAzureNodePoolCallable().futureCall(request); // Do something. future.get(); } -
getAzureOpenIdConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClusterName azureCluster = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]"); AzureOpenIdConfig response = azureClustersClient.getAzureOpenIdConfig(azureCluster); }- Parameters:
azureCluster- Required. The AzureCluster, which owns the OIDC discovery document. Format: projects/<project-id>/locations/<region>/azureClusters/<cluster-id>- Throws:
ApiException- if the remote call fails
-
getAzureOpenIdConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String azureCluster = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString(); AzureOpenIdConfig response = azureClustersClient.getAzureOpenIdConfig(azureCluster); }- Parameters:
azureCluster- Required. The AzureCluster, which owns the OIDC discovery document. Format: projects/<project-id>/locations/<region>/azureClusters/<cluster-id>- Throws:
ApiException- if the remote call fails
-
getAzureOpenIdConfig
@Deprecated public final AzureOpenIdConfig getAzureOpenIdConfig(GetAzureOpenIdConfigRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureOpenIdConfigRequest request = GetAzureOpenIdConfigRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); AzureOpenIdConfig response = azureClustersClient.getAzureOpenIdConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAzureOpenIdConfigCallable
@Deprecated public final UnaryCallable<GetAzureOpenIdConfigRequest,AzureOpenIdConfig> getAzureOpenIdConfigCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureOpenIdConfigRequest request = GetAzureOpenIdConfigRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); ApiFuture<AzureOpenIdConfig> future = azureClustersClient.getAzureOpenIdConfigCallable().futureCall(request); // Do something. AzureOpenIdConfig response = future.get(); } -
getAzureJsonWebKeys
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the public component of the cluster signing keys in JSON Web Key format.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureClusterName azureCluster = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]"); AzureJsonWebKeys response = azureClustersClient.getAzureJsonWebKeys(azureCluster); }- Parameters:
azureCluster- Required. The AzureCluster, which owns the JsonWebKeys. Format: `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`- Throws:
ApiException- if the remote call fails
-
getAzureJsonWebKeys
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the public component of the cluster signing keys in JSON Web Key format.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String azureCluster = AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString(); AzureJsonWebKeys response = azureClustersClient.getAzureJsonWebKeys(azureCluster); }- Parameters:
azureCluster- Required. The AzureCluster, which owns the JsonWebKeys. Format: `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`- Throws:
ApiException- if the remote call fails
-
getAzureJsonWebKeys
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the public component of the cluster signing keys in JSON Web Key format.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureJsonWebKeysRequest request = GetAzureJsonWebKeysRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); AzureJsonWebKeys response = azureClustersClient.getAzureJsonWebKeys(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAzureJsonWebKeysCallable
@Deprecated public final UnaryCallable<GetAzureJsonWebKeysRequest,AzureJsonWebKeys> getAzureJsonWebKeysCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Gets the public component of the cluster signing keys in JSON Web Key format.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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureJsonWebKeysRequest request = GetAzureJsonWebKeysRequest.newBuilder() .setAzureCluster( AzureClusterName.of("[PROJECT]", "[LOCATION]", "[AZURE_CLUSTER]").toString()) .build(); ApiFuture<AzureJsonWebKeys> future = azureClustersClient.getAzureJsonWebKeysCallable().futureCall(request); // Do something. AzureJsonWebKeys response = future.get(); } -
getAzureServerConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { AzureServerConfigName name = AzureServerConfigName.of("[PROJECT]", "[LOCATION]"); AzureServerConfig response = azureClustersClient.getAzureServerConfig(name); }- Parameters:
name- Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.`AzureServerConfig` names are formatted as `projects/<project-id>/locations/<region>/azureServerConfig`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureServerConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { String name = AzureServerConfigName.of("[PROJECT]", "[LOCATION]").toString(); AzureServerConfig response = azureClustersClient.getAzureServerConfig(name); }- Parameters:
name- Required. The name of the [AzureServerConfig][google.cloud.gkemulticloud.v1.AzureServerConfig] resource to describe.`AzureServerConfig` names are formatted as `projects/<project-id>/locations/<region>/azureServerConfig`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAzureServerConfig
@Deprecated public final AzureServerConfig getAzureServerConfig(GetAzureServerConfigRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureServerConfigRequest request = GetAzureServerConfigRequest.newBuilder() .setName(AzureServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) .build(); AzureServerConfig response = azureClustersClient.getAzureServerConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAzureServerConfigCallable
@Deprecated public final UnaryCallable<GetAzureServerConfigRequest,AzureServerConfig> getAzureServerConfigCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud 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 (AzureClustersClient azureClustersClient = AzureClustersClient.create()) { GetAzureServerConfigRequest request = GetAzureServerConfigRequest.newBuilder() .setName(AzureServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) .build(); ApiFuture<AzureServerConfig> future = azureClustersClient.getAzureServerConfigCallable().futureCall(request); // Do something. AzureServerConfig response = future.get(); } -
close
public final void close()Deprecated.- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()Deprecated.- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()Deprecated.- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()Deprecated.- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()Deprecated.- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
Deprecated.- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-