public abstract class CmekServiceClient
Reference documentation and code samples for the Cloud Dataplex v1 API class CmekServiceClient.
CmekService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dataplex.V1Assembly
Google.Cloud.Dataplex.V1.dll
Remarks
Dataplex Cmek Service
Properties
CreateEncryptionConfigOperationsClient
public virtual OperationsClient CreateEncryptionConfigOperationsClient { get; }
The long-running operations client for CreateEncryptionConfig
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the CmekService service, which is a host of "dataplex.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default CmekService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default CmekService scopes are:
DeleteEncryptionConfigOperationsClient
public virtual OperationsClient DeleteEncryptionConfigOperationsClient { get; }
The long-running operations client for DeleteEncryptionConfig
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual CmekService.CmekServiceClient GrpcClient { get; }
The underlying gRPC CmekService client
Property Value | |
---|---|
Type | Description |
CmekServiceCmekServiceClient |
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 |
UpdateEncryptionConfigOperationsClient
public virtual OperationsClient UpdateEncryptionConfigOperationsClient { get; }
The long-running operations client for UpdateEncryptionConfig
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static CmekServiceClient Create()
Synchronously creates a CmekServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CmekServiceClientBuilder.
Returns | |
---|---|
Type | Description |
CmekServiceClient |
The created CmekServiceClient. |
CreateAsync(CancellationToken)
public static Task<CmekServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a CmekServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CmekServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskCmekServiceClient |
The task representing the created CmekServiceClient. |
CreateEncryptionConfig(CreateEncryptionConfigRequest, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> CreateEncryptionConfig(CreateEncryptionConfigRequest request, CallSettings callSettings = null)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
CreateEncryptionConfigRequest 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 |
OperationEncryptionConfigOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateEncryptionConfigRequest request = new gcdv::CreateEncryptionConfigRequest
{
ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
EncryptionConfigId = "",
EncryptionConfig = new gcdv::EncryptionConfig(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.CreateEncryptionConfig(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceCreateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfig(OrganizationLocationName, EncryptionConfig, string, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> CreateEncryptionConfig(OrganizationLocationName parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The location at which the EncryptionConfig is to be created. |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to create. |
encryptionConfigId |
string Required. The ID of the EncryptionConfig to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 characters. The first character must be a letter. The last character must be a letter or a number. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEncryptionConfigOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.CreateEncryptionConfig(parent, encryptionConfig, encryptionConfigId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceCreateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfig(string, EncryptionConfig, string, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> CreateEncryptionConfig(string parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The location at which the EncryptionConfig is to be created. |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to create. |
encryptionConfigId |
string Required. The ID of the EncryptionConfig to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 characters. The first character must be a letter. The last character must be a letter or a number. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEncryptionConfigOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.CreateEncryptionConfig(parent, encryptionConfig, encryptionConfigId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceCreateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfigAsync(CreateEncryptionConfigRequest, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(CreateEncryptionConfigRequest request, CallSettings callSettings = null)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
CreateEncryptionConfigRequest 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 |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEncryptionConfigRequest request = new gcdv::CreateEncryptionConfigRequest
{
ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
EncryptionConfigId = "",
EncryptionConfig = new gcdv::EncryptionConfig(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfigAsync(CreateEncryptionConfigRequest, CancellationToken)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(CreateEncryptionConfigRequest request, CancellationToken cancellationToken)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
CreateEncryptionConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEncryptionConfigRequest request = new gcdv::CreateEncryptionConfigRequest
{
ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
EncryptionConfigId = "",
EncryptionConfig = new gcdv::EncryptionConfig(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfigAsync(OrganizationLocationName, EncryptionConfig, string, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(OrganizationLocationName parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The location at which the EncryptionConfig is to be created. |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to create. |
encryptionConfigId |
string Required. The ID of the EncryptionConfig to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 characters. The first character must be a letter. The last character must be a letter or a number. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfigAsync(OrganizationLocationName, EncryptionConfig, string, CancellationToken)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(OrganizationLocationName parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CancellationToken cancellationToken)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The location at which the EncryptionConfig is to be created. |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to create. |
encryptionConfigId |
string Required. The ID of the EncryptionConfig to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 characters. The first character must be a letter. The last character must be a letter or a number. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfigAsync(string, EncryptionConfig, string, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(string parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CallSettings callSettings = null)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The location at which the EncryptionConfig is to be created. |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to create. |
encryptionConfigId |
string Required. The ID of the EncryptionConfig to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 characters. The first character must be a letter. The last character must be a letter or a number. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
CreateEncryptionConfigAsync(string, EncryptionConfig, string, CancellationToken)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> CreateEncryptionConfigAsync(string parent, EncryptionConfig encryptionConfig, string encryptionConfigId, CancellationToken cancellationToken)
Create an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The location at which the EncryptionConfig is to be created. |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to create. |
encryptionConfigId |
string Required. The ID of the EncryptionConfig to create. The ID must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 characters. The first character must be a letter. The last character must be a letter or a number. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
string encryptionConfigId = "";
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.CreateEncryptionConfigAsync(parent, encryptionConfig, encryptionConfigId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceCreateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
DeleteEncryptionConfig(DeleteEncryptionConfigRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEncryptionConfig(DeleteEncryptionConfigRequest request, CallSettings callSettings = null)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteEncryptionConfigRequest 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 |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteEncryptionConfigRequest request = new gcdv::DeleteEncryptionConfigRequest
{
EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = cmekServiceClient.DeleteEncryptionConfig(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceDeleteEncryptionConfig(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;
}
DeleteEncryptionConfig(EncryptionConfigName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEncryptionConfig(EncryptionConfigName name, CallSettings callSettings = null)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
EncryptionConfigName Required. The name of the EncryptionConfig to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = cmekServiceClient.DeleteEncryptionConfig(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceDeleteEncryptionConfig(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;
}
DeleteEncryptionConfig(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEncryptionConfig(string name, CallSettings callSettings = null)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the EncryptionConfig to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = cmekServiceClient.DeleteEncryptionConfig(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceDeleteEncryptionConfig(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;
}
DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest request, CallSettings callSettings = null)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteEncryptionConfigRequest 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 |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEncryptionConfigRequest request = new gcdv::DeleteEncryptionConfigRequest
{
EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(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;
}
DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(DeleteEncryptionConfigRequest request, CancellationToken cancellationToken)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
DeleteEncryptionConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEncryptionConfigRequest request = new gcdv::DeleteEncryptionConfigRequest
{
EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(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;
}
DeleteEncryptionConfigAsync(EncryptionConfigName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(EncryptionConfigName name, CallSettings callSettings = null)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
EncryptionConfigName Required. The name of the EncryptionConfig to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(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;
}
DeleteEncryptionConfigAsync(EncryptionConfigName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(EncryptionConfigName name, CancellationToken cancellationToken)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
EncryptionConfigName Required. The name of the EncryptionConfig to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(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;
}
DeleteEncryptionConfigAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(string name, CallSettings callSettings = null)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the EncryptionConfig to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(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;
}
DeleteEncryptionConfigAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEncryptionConfigAsync(string name, CancellationToken cancellationToken)
Delete an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the EncryptionConfig to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await cmekServiceClient.DeleteEncryptionConfigAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> 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, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceDeleteEncryptionConfigAsync(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;
}
GetEncryptionConfig(EncryptionConfigName, CallSettings)
public virtual EncryptionConfig GetEncryptionConfig(EncryptionConfigName name, CallSettings callSettings = null)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
EncryptionConfigName Required. The name of the EncryptionConfig to fetch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EncryptionConfig |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
gcdv::EncryptionConfig response = cmekServiceClient.GetEncryptionConfig(name);
GetEncryptionConfig(GetEncryptionConfigRequest, CallSettings)
public virtual EncryptionConfig GetEncryptionConfig(GetEncryptionConfigRequest request, CallSettings callSettings = null)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
GetEncryptionConfigRequest 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 |
EncryptionConfig |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::GetEncryptionConfigRequest request = new gcdv::GetEncryptionConfigRequest
{
EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
};
// Make the request
gcdv::EncryptionConfig response = cmekServiceClient.GetEncryptionConfig(request);
GetEncryptionConfig(string, CallSettings)
public virtual EncryptionConfig GetEncryptionConfig(string name, CallSettings callSettings = null)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the EncryptionConfig to fetch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
EncryptionConfig |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
gcdv::EncryptionConfig response = cmekServiceClient.GetEncryptionConfig(name);
GetEncryptionConfigAsync(EncryptionConfigName, CallSettings)
public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(EncryptionConfigName name, CallSettings callSettings = null)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
EncryptionConfigName Required. The name of the EncryptionConfig to fetch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEncryptionConfig |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
GetEncryptionConfigAsync(EncryptionConfigName, CancellationToken)
public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(EncryptionConfigName name, CancellationToken cancellationToken)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
EncryptionConfigName Required. The name of the EncryptionConfig to fetch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEncryptionConfig |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfigName name = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]");
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
GetEncryptionConfigAsync(GetEncryptionConfigRequest, CallSettings)
public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(GetEncryptionConfigRequest request, CallSettings callSettings = null)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
GetEncryptionConfigRequest 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 |
TaskEncryptionConfig |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetEncryptionConfigRequest request = new gcdv::GetEncryptionConfigRequest
{
EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
};
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(request);
GetEncryptionConfigAsync(GetEncryptionConfigRequest, CancellationToken)
public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(GetEncryptionConfigRequest request, CancellationToken cancellationToken)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
GetEncryptionConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEncryptionConfig |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetEncryptionConfigRequest request = new gcdv::GetEncryptionConfigRequest
{
EncryptionConfigName = gcdv::EncryptionConfigName.FromOrganizationLocationEncryptionConfig("[ORGANIZATION]", "[LOCATION]", "[ENCRYPTION_CONFIG]"),
};
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(request);
GetEncryptionConfigAsync(string, CallSettings)
public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(string name, CallSettings callSettings = null)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the EncryptionConfig to fetch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEncryptionConfig |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
GetEncryptionConfigAsync(string, CancellationToken)
public virtual Task<EncryptionConfig> GetEncryptionConfigAsync(string name, CancellationToken cancellationToken)
Get an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the EncryptionConfig to fetch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEncryptionConfig |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/encryptionConfigs/[ENCRYPTION_CONFIG]";
// Make the request
gcdv::EncryptionConfig response = await cmekServiceClient.GetEncryptionConfigAsync(name);
ListEncryptionConfigs(ListEncryptionConfigsRequest, CallSettings)
public virtual PagedEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigs(ListEncryptionConfigsRequest request, CallSettings callSettings = null)
List EncryptionConfigs.
Parameters | |
---|---|
Name | Description |
request |
ListEncryptionConfigsRequest 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 |
PagedEnumerableListEncryptionConfigsResponseEncryptionConfig |
A pageable sequence of EncryptionConfig resources. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::ListEncryptionConfigsRequest request = new gcdv::ListEncryptionConfigsRequest
{
ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
ListEncryptionConfigs(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigs(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List EncryptionConfigs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The location for which the EncryptionConfig is to be listed. |
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 |
PagedEnumerableListEncryptionConfigsResponseEncryptionConfig |
A pageable sequence of EncryptionConfig resources. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
ListEncryptionConfigs(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List EncryptionConfigs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The location for which the EncryptionConfig is to be listed. |
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 |
PagedEnumerableListEncryptionConfigsResponseEncryptionConfig |
A pageable sequence of EncryptionConfig resources. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::EncryptionConfig 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 (gcdv::ListEncryptionConfigsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
ListEncryptionConfigsAsync(ListEncryptionConfigsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigsAsync(ListEncryptionConfigsRequest request, CallSettings callSettings = null)
List EncryptionConfigs.
Parameters | |
---|---|
Name | Description |
request |
ListEncryptionConfigsRequest 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 |
PagedAsyncEnumerableListEncryptionConfigsResponseEncryptionConfig |
A pageable asynchronous sequence of EncryptionConfig resources. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListEncryptionConfigsRequest request = new gcdv::ListEncryptionConfigsRequest
{
ParentAsOrganizationLocationName = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::EncryptionConfig 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((gcdv::ListEncryptionConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
ListEncryptionConfigsAsync(OrganizationLocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigsAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List EncryptionConfigs.
Parameters | |
---|---|
Name | Description |
parent |
OrganizationLocationName Required. The location for which the EncryptionConfig is to be listed. |
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 |
PagedAsyncEnumerableListEncryptionConfigsResponseEncryptionConfig |
A pageable asynchronous sequence of EncryptionConfig resources. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::OrganizationLocationName parent = gcdv::OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::EncryptionConfig 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((gcdv::ListEncryptionConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
ListEncryptionConfigsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEncryptionConfigsResponse, EncryptionConfig> ListEncryptionConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List EncryptionConfigs.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The location for which the EncryptionConfig is to be listed. |
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 |
PagedAsyncEnumerableListEncryptionConfigsResponseEncryptionConfig |
A pageable asynchronous sequence of EncryptionConfig resources. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcdv::ListEncryptionConfigsResponse, gcdv::EncryptionConfig> response = cmekServiceClient.ListEncryptionConfigsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::EncryptionConfig 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((gcdv::ListEncryptionConfigsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::EncryptionConfig 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<gcdv::EncryptionConfig> 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 (gcdv::EncryptionConfig 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;
PollOnceCreateEncryptionConfig(string, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> PollOnceCreateEncryptionConfig(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateEncryptionConfig
.
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 |
OperationEncryptionConfigOperationMetadata |
The result of polling the operation. |
PollOnceCreateEncryptionConfigAsync(string, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> PollOnceCreateEncryptionConfigAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateEncryptionConfig
.
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 |
TaskOperationEncryptionConfigOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteEncryptionConfig(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteEncryptionConfig(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteEncryptionConfig
.
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 |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteEncryptionConfigAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteEncryptionConfigAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteEncryptionConfig
.
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 |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateEncryptionConfig(string, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> PollOnceUpdateEncryptionConfig(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateEncryptionConfig
.
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 |
OperationEncryptionConfigOperationMetadata |
The result of polling the operation. |
PollOnceUpdateEncryptionConfigAsync(string, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> PollOnceUpdateEncryptionConfigAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateEncryptionConfig
.
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 |
TaskOperationEncryptionConfigOperationMetadata |
A task representing the result of polling the operation. |
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.
UpdateEncryptionConfig(EncryptionConfig, FieldMask, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> UpdateEncryptionConfig(EncryptionConfig encryptionConfig, FieldMask updateMask, CallSettings callSettings = null)
Update an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to update. |
updateMask |
FieldMask Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEncryptionConfigOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.UpdateEncryptionConfig(encryptionConfig, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceUpdateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
UpdateEncryptionConfig(UpdateEncryptionConfigRequest, CallSettings)
public virtual Operation<EncryptionConfig, OperationMetadata> UpdateEncryptionConfig(UpdateEncryptionConfigRequest request, CallSettings callSettings = null)
Update an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
UpdateEncryptionConfigRequest 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 |
OperationEncryptionConfigOperationMetadata |
The RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = gcdv::CmekServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateEncryptionConfigRequest request = new gcdv::UpdateEncryptionConfigRequest
{
EncryptionConfig = new gcdv::EncryptionConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = cmekServiceClient.UpdateEncryptionConfig(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = cmekServiceClient.PollOnceUpdateEncryptionConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
UpdateEncryptionConfigAsync(EncryptionConfig, FieldMask, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(EncryptionConfig encryptionConfig, FieldMask updateMask, CallSettings callSettings = null)
Update an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to update. |
updateMask |
FieldMask Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(encryptionConfig, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
UpdateEncryptionConfigAsync(EncryptionConfig, FieldMask, CancellationToken)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(EncryptionConfig encryptionConfig, FieldMask updateMask, CancellationToken cancellationToken)
Update an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
encryptionConfig |
EncryptionConfig Required. The EncryptionConfig to update. |
updateMask |
FieldMask Optional. Mask of fields to update. The service treats an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value). |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EncryptionConfig encryptionConfig = new gcdv::EncryptionConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(encryptionConfig, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest, CallSettings)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest request, CallSettings callSettings = null)
Update an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
UpdateEncryptionConfigRequest 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 |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateEncryptionConfigRequest request = new gcdv::UpdateEncryptionConfigRequest
{
EncryptionConfig = new gcdv::EncryptionConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}
UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest, CancellationToken)
public virtual Task<Operation<EncryptionConfig, OperationMetadata>> UpdateEncryptionConfigAsync(UpdateEncryptionConfigRequest request, CancellationToken cancellationToken)
Update an EncryptionConfig.
Parameters | |
---|---|
Name | Description |
request |
UpdateEncryptionConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEncryptionConfigOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CmekServiceClient cmekServiceClient = await gcdv::CmekServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateEncryptionConfigRequest request = new gcdv::UpdateEncryptionConfigRequest
{
EncryptionConfig = new gcdv::EncryptionConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> response = await cmekServiceClient.UpdateEncryptionConfigAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EncryptionConfig, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EncryptionConfig 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<gcdv::EncryptionConfig, gcdv::OperationMetadata> retrievedResponse = await cmekServiceClient.PollOnceUpdateEncryptionConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EncryptionConfig retrievedResult = retrievedResponse.Result;
}