- 3.11.0 (latest)
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
public abstract class DeploymentResourcePoolServiceClient
Reference documentation and code samples for the Cloud AI Platform v1 API class DeploymentResourcePoolServiceClient.
DeploymentResourcePoolService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Remarks
A service that manages the DeploymentResourcePool resource.
Properties
CreateDeploymentResourcePoolOperationsClient
public virtual OperationsClient CreateDeploymentResourcePoolOperationsClient { get; }
The long-running operations client for CreateDeploymentResourcePool
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the DeploymentResourcePoolService service, which is a host of "aiplatform.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default DeploymentResourcePoolService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default DeploymentResourcePoolService scopes are:
DeleteDeploymentResourcePoolOperationsClient
public virtual OperationsClient DeleteDeploymentResourcePoolOperationsClient { get; }
The long-running operations client for DeleteDeploymentResourcePool
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual DeploymentResourcePoolService.DeploymentResourcePoolServiceClient GrpcClient { get; }
The underlying gRPC DeploymentResourcePoolService client
Property Value | |
---|---|
Type | Description |
DeploymentResourcePoolServiceDeploymentResourcePoolServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UpdateDeploymentResourcePoolOperationsClient
public virtual OperationsClient UpdateDeploymentResourcePoolOperationsClient { get; }
The long-running operations client for UpdateDeploymentResourcePool
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static DeploymentResourcePoolServiceClient Create()
Synchronously creates a DeploymentResourcePoolServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DeploymentResourcePoolServiceClientBuilder.
Returns | |
---|---|
Type | Description |
DeploymentResourcePoolServiceClient |
The created DeploymentResourcePoolServiceClient. |
CreateAsync(CancellationToken)
public static Task<DeploymentResourcePoolServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a DeploymentResourcePoolServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DeploymentResourcePoolServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePoolServiceClient |
The task representing the created DeploymentResourcePoolServiceClient. |
CreateDeploymentResourcePool(LocationName, DeploymentResourcePool, string, CallSettings)
public virtual Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> CreateDeploymentResourcePool(LocationName parent, DeploymentResourcePool deploymentResourcePool, string deploymentResourcePoolId, CallSettings callSettings = null)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location resource where this DeploymentResourcePool
will be created. Format: |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to create. |
deploymentResourcePoolId |
string Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and valid characters
are |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
string deploymentResourcePoolId = "";
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = deploymentResourcePoolServiceClient.CreateDeploymentResourcePool(parent, deploymentResourcePool, deploymentResourcePoolId);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePool(CreateDeploymentResourcePoolRequest, CallSettings)
public virtual Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> CreateDeploymentResourcePool(CreateDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
CreateDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
CreateDeploymentResourcePoolRequest request = new CreateDeploymentResourcePoolRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DeploymentResourcePool = new DeploymentResourcePool(),
DeploymentResourcePoolId = "",
};
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = deploymentResourcePoolServiceClient.CreateDeploymentResourcePool(request);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePool(string, DeploymentResourcePool, string, CallSettings)
public virtual Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> CreateDeploymentResourcePool(string parent, DeploymentResourcePool deploymentResourcePool, string deploymentResourcePoolId, CallSettings callSettings = null)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent location resource where this DeploymentResourcePool
will be created. Format: |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to create. |
deploymentResourcePoolId |
string Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and valid characters
are |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
string deploymentResourcePoolId = "";
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = deploymentResourcePoolServiceClient.CreateDeploymentResourcePool(parent, deploymentResourcePool, deploymentResourcePoolId);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePoolAsync(LocationName, DeploymentResourcePool, string, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> CreateDeploymentResourcePoolAsync(LocationName parent, DeploymentResourcePool deploymentResourcePool, string deploymentResourcePoolId, CallSettings callSettings = null)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location resource where this DeploymentResourcePool
will be created. Format: |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to create. |
deploymentResourcePoolId |
string Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and valid characters
are |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
string deploymentResourcePoolId = "";
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.CreateDeploymentResourcePoolAsync(parent, deploymentResourcePool, deploymentResourcePoolId);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePoolAsync(LocationName, DeploymentResourcePool, string, CancellationToken)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> CreateDeploymentResourcePoolAsync(LocationName parent, DeploymentResourcePool deploymentResourcePool, string deploymentResourcePoolId, CancellationToken cancellationToken)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location resource where this DeploymentResourcePool
will be created. Format: |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to create. |
deploymentResourcePoolId |
string Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and valid characters
are |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
string deploymentResourcePoolId = "";
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.CreateDeploymentResourcePoolAsync(parent, deploymentResourcePool, deploymentResourcePoolId);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePoolAsync(CreateDeploymentResourcePoolRequest, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> CreateDeploymentResourcePoolAsync(CreateDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
CreateDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDeploymentResourcePoolRequest request = new CreateDeploymentResourcePoolRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DeploymentResourcePool = new DeploymentResourcePool(),
DeploymentResourcePoolId = "",
};
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.CreateDeploymentResourcePoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePoolAsync(CreateDeploymentResourcePoolRequest, CancellationToken)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> CreateDeploymentResourcePoolAsync(CreateDeploymentResourcePoolRequest request, CancellationToken cancellationToken)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
CreateDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDeploymentResourcePoolRequest request = new CreateDeploymentResourcePoolRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DeploymentResourcePool = new DeploymentResourcePool(),
DeploymentResourcePoolId = "",
};
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.CreateDeploymentResourcePoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePoolAsync(string, DeploymentResourcePool, string, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> CreateDeploymentResourcePoolAsync(string parent, DeploymentResourcePool deploymentResourcePool, string deploymentResourcePoolId, CallSettings callSettings = null)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent location resource where this DeploymentResourcePool
will be created. Format: |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to create. |
deploymentResourcePoolId |
string Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and valid characters
are |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
string deploymentResourcePoolId = "";
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.CreateDeploymentResourcePoolAsync(parent, deploymentResourcePool, deploymentResourcePoolId);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
CreateDeploymentResourcePoolAsync(string, DeploymentResourcePool, string, CancellationToken)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> CreateDeploymentResourcePoolAsync(string parent, DeploymentResourcePool deploymentResourcePool, string deploymentResourcePoolId, CancellationToken cancellationToken)
Create a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent location resource where this DeploymentResourcePool
will be created. Format: |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to create. |
deploymentResourcePoolId |
string Required. The ID to use for the DeploymentResourcePool, which will become the final component of the DeploymentResourcePool's resource name. The maximum length is 63 characters, and valid characters
are |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
string deploymentResourcePoolId = "";
// Make the request
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.CreateDeploymentResourcePoolAsync(parent, deploymentResourcePool, deploymentResourcePoolId);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceCreateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePool(DeleteDeploymentResourcePoolRequest, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteDeploymentResourcePool(DeleteDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
DeleteDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
DeleteDeploymentResourcePoolRequest request = new DeleteDeploymentResourcePoolRequest
{
DeploymentResourcePoolName = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = deploymentResourcePoolServiceClient.DeleteDeploymentResourcePool(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePool(DeploymentResourcePoolName, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteDeploymentResourcePool(DeploymentResourcePoolName name, CallSettings callSettings = null)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
DeploymentResourcePoolName Required. The name of the DeploymentResourcePool to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
DeploymentResourcePoolName name = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = deploymentResourcePoolServiceClient.DeleteDeploymentResourcePool(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePool(string, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> DeleteDeploymentResourcePool(string name, CallSettings callSettings = null)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DeploymentResourcePool to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyDeleteOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deploymentResourcePools/[DEPLOYMENT_RESOURCE_POOL]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = deploymentResourcePoolServiceClient.DeleteDeploymentResourcePool(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePoolAsync(DeleteDeploymentResourcePoolRequest, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDeploymentResourcePoolAsync(DeleteDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
DeleteDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDeploymentResourcePoolRequest request = new DeleteDeploymentResourcePoolRequest
{
DeploymentResourcePoolName = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await deploymentResourcePoolServiceClient.DeleteDeploymentResourcePoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePoolAsync(DeleteDeploymentResourcePoolRequest, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDeploymentResourcePoolAsync(DeleteDeploymentResourcePoolRequest request, CancellationToken cancellationToken)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
DeleteDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDeploymentResourcePoolRequest request = new DeleteDeploymentResourcePoolRequest
{
DeploymentResourcePoolName = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"),
};
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await deploymentResourcePoolServiceClient.DeleteDeploymentResourcePoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePoolAsync(DeploymentResourcePoolName, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDeploymentResourcePoolAsync(DeploymentResourcePoolName name, CallSettings callSettings = null)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
DeploymentResourcePoolName Required. The name of the DeploymentResourcePool to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeploymentResourcePoolName name = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await deploymentResourcePoolServiceClient.DeleteDeploymentResourcePoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePoolAsync(DeploymentResourcePoolName, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDeploymentResourcePoolAsync(DeploymentResourcePoolName name, CancellationToken cancellationToken)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
DeploymentResourcePoolName Required. The name of the DeploymentResourcePool to delete.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeploymentResourcePoolName name = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await deploymentResourcePoolServiceClient.DeleteDeploymentResourcePoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePoolAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDeploymentResourcePoolAsync(string name, CallSettings callSettings = null)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DeploymentResourcePool to delete.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deploymentResourcePools/[DEPLOYMENT_RESOURCE_POOL]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await deploymentResourcePoolServiceClient.DeleteDeploymentResourcePoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDeploymentResourcePoolAsync(string, CancellationToken)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> DeleteDeploymentResourcePoolAsync(string name, CancellationToken cancellationToken)
Delete a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DeploymentResourcePool to delete.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deploymentResourcePools/[DEPLOYMENT_RESOURCE_POOL]";
// Make the request
Operation<Empty, DeleteOperationMetadata> response = await deploymentResourcePoolServiceClient.DeleteDeploymentResourcePoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, DeleteOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, DeleteOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceDeleteDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
GetDeploymentResourcePool(DeploymentResourcePoolName, CallSettings)
public virtual DeploymentResourcePool GetDeploymentResourcePool(DeploymentResourcePoolName name, CallSettings callSettings = null)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
DeploymentResourcePoolName Required. The name of the DeploymentResourcePool to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeploymentResourcePool |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
DeploymentResourcePoolName name = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
// Make the request
DeploymentResourcePool response = deploymentResourcePoolServiceClient.GetDeploymentResourcePool(name);
GetDeploymentResourcePool(GetDeploymentResourcePoolRequest, CallSettings)
public virtual DeploymentResourcePool GetDeploymentResourcePool(GetDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
GetDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeploymentResourcePool |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
GetDeploymentResourcePoolRequest request = new GetDeploymentResourcePoolRequest
{
DeploymentResourcePoolName = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"),
};
// Make the request
DeploymentResourcePool response = deploymentResourcePoolServiceClient.GetDeploymentResourcePool(request);
GetDeploymentResourcePool(string, CallSettings)
public virtual DeploymentResourcePool GetDeploymentResourcePool(string name, CallSettings callSettings = null)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DeploymentResourcePool to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DeploymentResourcePool |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deploymentResourcePools/[DEPLOYMENT_RESOURCE_POOL]";
// Make the request
DeploymentResourcePool response = deploymentResourcePoolServiceClient.GetDeploymentResourcePool(name);
GetDeploymentResourcePoolAsync(DeploymentResourcePoolName, CallSettings)
public virtual Task<DeploymentResourcePool> GetDeploymentResourcePoolAsync(DeploymentResourcePoolName name, CallSettings callSettings = null)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
DeploymentResourcePoolName Required. The name of the DeploymentResourcePool to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePool |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeploymentResourcePoolName name = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
// Make the request
DeploymentResourcePool response = await deploymentResourcePoolServiceClient.GetDeploymentResourcePoolAsync(name);
GetDeploymentResourcePoolAsync(DeploymentResourcePoolName, CancellationToken)
public virtual Task<DeploymentResourcePool> GetDeploymentResourcePoolAsync(DeploymentResourcePoolName name, CancellationToken cancellationToken)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
DeploymentResourcePoolName Required. The name of the DeploymentResourcePool to retrieve.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePool |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeploymentResourcePoolName name = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
// Make the request
DeploymentResourcePool response = await deploymentResourcePoolServiceClient.GetDeploymentResourcePoolAsync(name);
GetDeploymentResourcePoolAsync(GetDeploymentResourcePoolRequest, CallSettings)
public virtual Task<DeploymentResourcePool> GetDeploymentResourcePoolAsync(GetDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
GetDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePool |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
GetDeploymentResourcePoolRequest request = new GetDeploymentResourcePoolRequest
{
DeploymentResourcePoolName = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"),
};
// Make the request
DeploymentResourcePool response = await deploymentResourcePoolServiceClient.GetDeploymentResourcePoolAsync(request);
GetDeploymentResourcePoolAsync(GetDeploymentResourcePoolRequest, CancellationToken)
public virtual Task<DeploymentResourcePool> GetDeploymentResourcePoolAsync(GetDeploymentResourcePoolRequest request, CancellationToken cancellationToken)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
GetDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePool |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
GetDeploymentResourcePoolRequest request = new GetDeploymentResourcePoolRequest
{
DeploymentResourcePoolName = DeploymentResourcePoolName.FromProjectLocationDeploymentResourcePool("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"),
};
// Make the request
DeploymentResourcePool response = await deploymentResourcePoolServiceClient.GetDeploymentResourcePoolAsync(request);
GetDeploymentResourcePoolAsync(string, CallSettings)
public virtual Task<DeploymentResourcePool> GetDeploymentResourcePoolAsync(string name, CallSettings callSettings = null)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DeploymentResourcePool to retrieve.
Format:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePool |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deploymentResourcePools/[DEPLOYMENT_RESOURCE_POOL]";
// Make the request
DeploymentResourcePool response = await deploymentResourcePoolServiceClient.GetDeploymentResourcePoolAsync(name);
GetDeploymentResourcePoolAsync(string, CancellationToken)
public virtual Task<DeploymentResourcePool> GetDeploymentResourcePoolAsync(string name, CancellationToken cancellationToken)
Get a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the DeploymentResourcePool to retrieve.
Format:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDeploymentResourcePool |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deploymentResourcePools/[DEPLOYMENT_RESOURCE_POOL]";
// Make the request
DeploymentResourcePool response = await deploymentResourcePoolServiceClient.GetDeploymentResourcePoolAsync(name);
ListDeploymentResourcePools(ProjectName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> ListDeploymentResourcePools(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List DeploymentResourcePools in a location.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The parent Location which owns this collection of
DeploymentResourcePools. Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeploymentResourcePoolsResponseDeploymentResourcePool |
A pageable sequence of DeploymentResourcePool resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> response = deploymentResourcePoolServiceClient.ListDeploymentResourcePools(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeploymentResourcePool item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeploymentResourcePoolsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeploymentResourcePool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeploymentResourcePool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeploymentResourcePool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeploymentResourcePools(ListDeploymentResourcePoolsRequest, CallSettings)
public virtual PagedEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> ListDeploymentResourcePools(ListDeploymentResourcePoolsRequest request, CallSettings callSettings = null)
List DeploymentResourcePools in a location.
Parameters | |
---|---|
Name | Description |
request |
ListDeploymentResourcePoolsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeploymentResourcePoolsResponseDeploymentResourcePool |
A pageable sequence of DeploymentResourcePool resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
ListDeploymentResourcePoolsRequest request = new ListDeploymentResourcePoolsRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> response = deploymentResourcePoolServiceClient.ListDeploymentResourcePools(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeploymentResourcePool item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeploymentResourcePoolsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeploymentResourcePool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeploymentResourcePool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeploymentResourcePool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeploymentResourcePools(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> ListDeploymentResourcePools(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List DeploymentResourcePools in a location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent Location which owns this collection of
DeploymentResourcePools. Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDeploymentResourcePoolsResponseDeploymentResourcePool |
A pageable sequence of DeploymentResourcePool resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> response = deploymentResourcePoolServiceClient.ListDeploymentResourcePools(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeploymentResourcePool item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDeploymentResourcePoolsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeploymentResourcePool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeploymentResourcePool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeploymentResourcePool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeploymentResourcePoolsAsync(ProjectName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> ListDeploymentResourcePoolsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List DeploymentResourcePools in a location.
Parameters | |
---|---|
Name | Description |
parent |
ProjectName Required. The parent Location which owns this collection of
DeploymentResourcePools. Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeploymentResourcePoolsResponseDeploymentResourcePool |
A pageable asynchronous sequence of DeploymentResourcePool resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> response = deploymentResourcePoolServiceClient.ListDeploymentResourcePoolsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeploymentResourcePool item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeploymentResourcePoolsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeploymentResourcePool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeploymentResourcePool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeploymentResourcePool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeploymentResourcePoolsAsync(ListDeploymentResourcePoolsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> ListDeploymentResourcePoolsAsync(ListDeploymentResourcePoolsRequest request, CallSettings callSettings = null)
List DeploymentResourcePools in a location.
Parameters | |
---|---|
Name | Description |
request |
ListDeploymentResourcePoolsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeploymentResourcePoolsResponseDeploymentResourcePool |
A pageable asynchronous sequence of DeploymentResourcePool resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
ListDeploymentResourcePoolsRequest request = new ListDeploymentResourcePoolsRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedAsyncEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> response = deploymentResourcePoolServiceClient.ListDeploymentResourcePoolsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeploymentResourcePool item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeploymentResourcePoolsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeploymentResourcePool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeploymentResourcePool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeploymentResourcePool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDeploymentResourcePoolsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> ListDeploymentResourcePoolsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List DeploymentResourcePools in a location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent Location which owns this collection of
DeploymentResourcePools. Format: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDeploymentResourcePoolsResponseDeploymentResourcePool |
A pageable asynchronous sequence of DeploymentResourcePool resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListDeploymentResourcePoolsResponse, DeploymentResourcePool> response = deploymentResourcePoolServiceClient.ListDeploymentResourcePoolsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeploymentResourcePool item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDeploymentResourcePoolsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeploymentResourcePool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeploymentResourcePool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeploymentResourcePool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceCreateDeploymentResourcePool(string, CallSettings)
public virtual Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> PollOnceCreateDeploymentResourcePool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateDeploymentResourcePool
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
The result of polling the operation. |
PollOnceCreateDeploymentResourcePoolAsync(string, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata>> PollOnceCreateDeploymentResourcePoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateDeploymentResourcePool
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolCreateDeploymentResourcePoolOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteDeploymentResourcePool(string, CallSettings)
public virtual Operation<Empty, DeleteOperationMetadata> PollOnceDeleteDeploymentResourcePool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteDeploymentResourcePool
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyDeleteOperationMetadata |
The result of polling the operation. |
PollOnceDeleteDeploymentResourcePoolAsync(string, CallSettings)
public virtual Task<Operation<Empty, DeleteOperationMetadata>> PollOnceDeleteDeploymentResourcePoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteDeploymentResourcePool
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyDeleteOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateDeploymentResourcePool(string, CallSettings)
public virtual Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> PollOnceUpdateDeploymentResourcePool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateDeploymentResourcePool
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
The result of polling the operation. |
PollOnceUpdateDeploymentResourcePoolAsync(string, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>> PollOnceUpdateDeploymentResourcePoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateDeploymentResourcePool
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
A task representing the result of polling the operation. |
QueryDeployedModels(QueryDeployedModelsRequest, CallSettings)
public virtual PagedEnumerable<QueryDeployedModelsResponse, DeployedModelRef> QueryDeployedModels(QueryDeployedModelsRequest request, CallSettings callSettings = null)
List DeployedModels that have been deployed on this DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
QueryDeployedModelsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableQueryDeployedModelsResponseDeployedModelRef |
A pageable sequence of DeployedModelRef resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
QueryDeployedModelsRequest request = new QueryDeployedModelsRequest
{
DeploymentResourcePool = "",
};
// Make the request
PagedEnumerable<QueryDeployedModelsResponse, DeployedModelRef> response = deploymentResourcePoolServiceClient.QueryDeployedModels(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeployedModelRef item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (QueryDeployedModelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeployedModelRef item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeployedModelRef> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeployedModelRef item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
QueryDeployedModels(string, string, int?, CallSettings)
public virtual PagedEnumerable<QueryDeployedModelsResponse, DeployedModelRef> QueryDeployedModels(string deploymentResourcePool, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List DeployedModels that have been deployed on this DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
deploymentResourcePool |
string Required. The name of the target DeploymentResourcePool to query.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableQueryDeployedModelsResponseDeployedModelRef |
A pageable sequence of DeployedModelRef resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
string deploymentResourcePool = "";
// Make the request
PagedEnumerable<QueryDeployedModelsResponse, DeployedModelRef> response = deploymentResourcePoolServiceClient.QueryDeployedModels(deploymentResourcePool);
// Iterate over all response items, lazily performing RPCs as required
foreach (DeployedModelRef item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (QueryDeployedModelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeployedModelRef item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeployedModelRef> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeployedModelRef item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
QueryDeployedModelsAsync(QueryDeployedModelsRequest, CallSettings)
public virtual PagedAsyncEnumerable<QueryDeployedModelsResponse, DeployedModelRef> QueryDeployedModelsAsync(QueryDeployedModelsRequest request, CallSettings callSettings = null)
List DeployedModels that have been deployed on this DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
QueryDeployedModelsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableQueryDeployedModelsResponseDeployedModelRef |
A pageable asynchronous sequence of DeployedModelRef resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
QueryDeployedModelsRequest request = new QueryDeployedModelsRequest
{
DeploymentResourcePool = "",
};
// Make the request
PagedAsyncEnumerable<QueryDeployedModelsResponse, DeployedModelRef> response = deploymentResourcePoolServiceClient.QueryDeployedModelsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeployedModelRef item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((QueryDeployedModelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeployedModelRef item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeployedModelRef> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeployedModelRef item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
QueryDeployedModelsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<QueryDeployedModelsResponse, DeployedModelRef> QueryDeployedModelsAsync(string deploymentResourcePool, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List DeployedModels that have been deployed on this DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
deploymentResourcePool |
string Required. The name of the target DeploymentResourcePool to query.
Format:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableQueryDeployedModelsResponseDeployedModelRef |
A pageable asynchronous sequence of DeployedModelRef resources. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
string deploymentResourcePool = "";
// Make the request
PagedAsyncEnumerable<QueryDeployedModelsResponse, DeployedModelRef> response = deploymentResourcePoolServiceClient.QueryDeployedModelsAsync(deploymentResourcePool);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeployedModelRef item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((QueryDeployedModelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DeployedModelRef item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DeployedModelRef> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DeployedModelRef item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateDeploymentResourcePool(DeploymentResourcePool, FieldMask, CallSettings)
public virtual Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> UpdateDeploymentResourcePool(DeploymentResourcePool deploymentResourcePool, FieldMask updateMask, CallSettings callSettings = null)
Update a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to update. The DeploymentResourcePool's |
updateMask |
FieldMask Required. The list of fields to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> response = deploymentResourcePoolServiceClient.UpdateDeploymentResourcePool(deploymentResourcePool, updateMask);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceUpdateDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentResourcePool(UpdateDeploymentResourcePoolRequest, CallSettings)
public virtual Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> UpdateDeploymentResourcePool(UpdateDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Update a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
UpdateDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
The RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = DeploymentResourcePoolServiceClient.Create();
// Initialize request argument(s)
UpdateDeploymentResourcePoolRequest request = new UpdateDeploymentResourcePoolRequest
{
DeploymentResourcePool = new DeploymentResourcePool(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> response = deploymentResourcePoolServiceClient.UpdateDeploymentResourcePool(request);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> retrievedResponse = deploymentResourcePoolServiceClient.PollOnceUpdateDeploymentResourcePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentResourcePoolAsync(DeploymentResourcePool, FieldMask, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>> UpdateDeploymentResourcePoolAsync(DeploymentResourcePool deploymentResourcePool, FieldMask updateMask, CallSettings callSettings = null)
Update a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to update. The DeploymentResourcePool's |
updateMask |
FieldMask Required. The list of fields to update. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.UpdateDeploymentResourcePoolAsync(deploymentResourcePool, updateMask);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceUpdateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentResourcePoolAsync(DeploymentResourcePool, FieldMask, CancellationToken)
public virtual Task<Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>> UpdateDeploymentResourcePoolAsync(DeploymentResourcePool deploymentResourcePool, FieldMask updateMask, CancellationToken cancellationToken)
Update a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
deploymentResourcePool |
DeploymentResourcePool Required. The DeploymentResourcePool to update. The DeploymentResourcePool's |
updateMask |
FieldMask Required. The list of fields to update. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
DeploymentResourcePool deploymentResourcePool = new DeploymentResourcePool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.UpdateDeploymentResourcePoolAsync(deploymentResourcePool, updateMask);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceUpdateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest, CallSettings)
public virtual Task<Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>> UpdateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest request, CallSettings callSettings = null)
Update a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
UpdateDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDeploymentResourcePoolRequest request = new UpdateDeploymentResourcePoolRequest
{
DeploymentResourcePool = new DeploymentResourcePool(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.UpdateDeploymentResourcePoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceUpdateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}
UpdateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest, CancellationToken)
public virtual Task<Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata>> UpdateDeploymentResourcePoolAsync(UpdateDeploymentResourcePoolRequest request, CancellationToken cancellationToken)
Update a DeploymentResourcePool.
Parameters | |
---|---|
Name | Description |
request |
UpdateDeploymentResourcePoolRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationDeploymentResourcePoolUpdateDeploymentResourcePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient = await DeploymentResourcePoolServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDeploymentResourcePoolRequest request = new UpdateDeploymentResourcePoolRequest
{
DeploymentResourcePool = new DeploymentResourcePool(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> response = await deploymentResourcePoolServiceClient.UpdateDeploymentResourcePoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DeploymentResourcePool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DeploymentResourcePool, UpdateDeploymentResourcePoolOperationMetadata> retrievedResponse = await deploymentResourcePoolServiceClient.PollOnceUpdateDeploymentResourcePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DeploymentResourcePool retrievedResult = retrievedResponse.Result;
}