Class CertificateAuthorityServiceClient (3.0.0)

public abstract class CertificateAuthorityServiceClient

CertificateAuthorityService client wrapper, for convenient use.

Inheritance

Object > CertificateAuthorityServiceClient

Namespace

Google.Cloud.Security.PrivateCA.V1

Assembly

Google.Cloud.Security.PrivateCA.V1.dll

Remarks

[Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private certificate authorities and issued certificates.

Properties

ActivateCertificateAuthorityOperationsClient

public virtual OperationsClient ActivateCertificateAuthorityOperationsClient { get; }

The long-running operations client for ActivateCertificateAuthority.

Property Value
TypeDescription
OperationsClient

CreateCaPoolOperationsClient

public virtual OperationsClient CreateCaPoolOperationsClient { get; }

The long-running operations client for CreateCaPool.

Property Value
TypeDescription
OperationsClient

CreateCertificateAuthorityOperationsClient

public virtual OperationsClient CreateCertificateAuthorityOperationsClient { get; }

The long-running operations client for CreateCertificateAuthority.

Property Value
TypeDescription
OperationsClient

CreateCertificateTemplateOperationsClient

public virtual OperationsClient CreateCertificateTemplateOperationsClient { get; }

The long-running operations client for CreateCertificateTemplate.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the CertificateAuthorityService service, which is a host of "privateca.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default CertificateAuthorityService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default CertificateAuthorityService scopes are:

DeleteCaPoolOperationsClient

public virtual OperationsClient DeleteCaPoolOperationsClient { get; }

The long-running operations client for DeleteCaPool.

Property Value
TypeDescription
OperationsClient

DeleteCertificateAuthorityOperationsClient

public virtual OperationsClient DeleteCertificateAuthorityOperationsClient { get; }

The long-running operations client for DeleteCertificateAuthority.

Property Value
TypeDescription
OperationsClient

DeleteCertificateTemplateOperationsClient

public virtual OperationsClient DeleteCertificateTemplateOperationsClient { get; }

The long-running operations client for DeleteCertificateTemplate.

Property Value
TypeDescription
OperationsClient

DisableCertificateAuthorityOperationsClient

public virtual OperationsClient DisableCertificateAuthorityOperationsClient { get; }

The long-running operations client for DisableCertificateAuthority.

Property Value
TypeDescription
OperationsClient

EnableCertificateAuthorityOperationsClient

public virtual OperationsClient EnableCertificateAuthorityOperationsClient { get; }

The long-running operations client for EnableCertificateAuthority.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual CertificateAuthorityService.CertificateAuthorityServiceClient GrpcClient { get; }

The underlying gRPC CertificateAuthorityService client

Property Value
TypeDescription
CertificateAuthorityService.CertificateAuthorityServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UndeleteCertificateAuthorityOperationsClient

public virtual OperationsClient UndeleteCertificateAuthorityOperationsClient { get; }

The long-running operations client for UndeleteCertificateAuthority.

Property Value
TypeDescription
OperationsClient

UpdateCaPoolOperationsClient

public virtual OperationsClient UpdateCaPoolOperationsClient { get; }

The long-running operations client for UpdateCaPool.

Property Value
TypeDescription
OperationsClient

UpdateCertificateAuthorityOperationsClient

public virtual OperationsClient UpdateCertificateAuthorityOperationsClient { get; }

The long-running operations client for UpdateCertificateAuthority.

Property Value
TypeDescription
OperationsClient

UpdateCertificateRevocationListOperationsClient

public virtual OperationsClient UpdateCertificateRevocationListOperationsClient { get; }

The long-running operations client for UpdateCertificateRevocationList.

Property Value
TypeDescription
OperationsClient

UpdateCertificateTemplateOperationsClient

public virtual OperationsClient UpdateCertificateTemplateOperationsClient { get; }

The long-running operations client for UpdateCertificateTemplate.

Property Value
TypeDescription
OperationsClient

Methods

ActivateCertificateAuthority(ActivateCertificateAuthorityRequest, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(ActivateCertificateAuthorityRequest request, CallSettings callSettings = null)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
requestActivateCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
    PemCaCertificate = "",
    SubordinateConfig = new SubordinateConfig(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ActivateCertificateAuthority(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthority(CertificateAuthorityName, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
nameCertificateAuthorityName

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(string name, CallSettings callSettings = null)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CallSettings callSettings = null)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
requestActivateCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
    PemCaCertificate = "",
    SubordinateConfig = new SubordinateConfig(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CancellationToken cancellationToken)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
requestActivateCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
    PemCaCertificate = "",
    SubordinateConfig = new SubordinateConfig(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
nameCertificateAuthorityName

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
nameCertificateAuthorityName

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(String, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(string name, CallSettings callSettings = null)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(String, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(string name, CancellationToken cancellationToken)

Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

Create()

public static CertificateAuthorityServiceClient Create()

Synchronously creates a CertificateAuthorityServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CertificateAuthorityServiceClientBuilder.

Returns
TypeDescription
CertificateAuthorityServiceClient

The created CertificateAuthorityServiceClient.

CreateAsync(CancellationToken)

public static Task<CertificateAuthorityServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a CertificateAuthorityServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CertificateAuthorityServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<CertificateAuthorityServiceClient>

The task representing the created CertificateAuthorityServiceClient.

CreateCaPool(LocationName, CaPool, String, CallSettings)

public virtual Operation<CaPool, OperationMetadata> CreateCaPool(LocationName parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentLocationName

Required. The resource name of the location associated with the [CaPool][google.cloud.security.privateca.v1.CaPool], in the format projects/*/locations/*.

caPoolCaPool

Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.

caPoolIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CaPool, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPool(CreateCaPoolRequest, CallSettings)

public virtual Operation<CaPool, OperationMetadata> CreateCaPool(CreateCaPoolRequest request, CallSettings callSettings = null)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestCreateCaPoolRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CaPool, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCaPoolRequest request = new CreateCaPoolRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CaPoolId = "",
    CaPool = new CaPool(),
    RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.CreateCaPool(request);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPool(String, CaPool, String, CallSettings)

public virtual Operation<CaPool, OperationMetadata> CreateCaPool(string parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentString

Required. The resource name of the location associated with the [CaPool][google.cloud.security.privateca.v1.CaPool], in the format projects/*/locations/*.

caPoolCaPool

Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.

caPoolIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CaPool, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPoolAsync(LocationName, CaPool, String, CallSettings)

public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(LocationName parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentLocationName

Required. The resource name of the location associated with the [CaPool][google.cloud.security.privateca.v1.CaPool], in the format projects/*/locations/*.

caPoolCaPool

Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.

caPoolIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CaPool, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPoolAsync(LocationName, CaPool, String, CancellationToken)

public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(LocationName parent, CaPool caPool, string caPoolId, CancellationToken cancellationToken)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentLocationName

Required. The resource name of the location associated with the [CaPool][google.cloud.security.privateca.v1.CaPool], in the format projects/*/locations/*.

caPoolCaPool

Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.

caPoolIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CaPool, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPoolAsync(CreateCaPoolRequest, CallSettings)

public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(CreateCaPoolRequest request, CallSettings callSettings = null)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestCreateCaPoolRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CaPool, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCaPoolRequest request = new CreateCaPoolRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CaPoolId = "",
    CaPool = new CaPool(),
    RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPoolAsync(CreateCaPoolRequest, CancellationToken)

public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(CreateCaPoolRequest request, CancellationToken cancellationToken)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestCreateCaPoolRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CaPool, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCaPoolRequest request = new CreateCaPoolRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CaPoolId = "",
    CaPool = new CaPool(),
    RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPoolAsync(String, CaPool, String, CallSettings)

public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(string parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentString

Required. The resource name of the location associated with the [CaPool][google.cloud.security.privateca.v1.CaPool], in the format projects/*/locations/*.

caPoolCaPool

Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.

caPoolIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CaPool, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCaPoolAsync(String, CaPool, String, CancellationToken)

public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(string parent, CaPool caPool, string caPoolId, CancellationToken cancellationToken)

Create a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentString

Required. The resource name of the location associated with the [CaPool][google.cloud.security.privateca.v1.CaPool], in the format projects/*/locations/*.

caPoolCaPool

Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values.

caPoolIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CaPool, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);

// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool 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<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CaPool retrievedResult = retrievedResponse.Result;
}

CreateCertificate(CaPoolName, Certificate, String, CallSettings)

public virtual Certificate CreateCertificate(CaPoolName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentCaPoolName

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate], in the format projects/*/locations/*/caPools/*.

certificateCertificate

Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.

certificateIdString

Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored otherwise.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId);

CreateCertificate(CreateCertificateRequest, CallSettings)

public virtual Certificate CreateCertificate(CreateCertificateRequest request, CallSettings callSettings = null)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestCreateCertificateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    CertificateId = "",
    Certificate = new Certificate(),
    RequestId = "",
    ValidateOnly = false,
    IssuingCertificateAuthorityId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(request);

CreateCertificate(String, Certificate, String, CallSettings)

public virtual Certificate CreateCertificate(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentString

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate], in the format projects/*/locations/*/caPools/*.

certificateCertificate

Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.

certificateIdString

Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored otherwise.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId);

CreateCertificateAsync(CaPoolName, Certificate, String, CallSettings)

public virtual Task<Certificate> CreateCertificateAsync(CaPoolName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentCaPoolName

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate], in the format projects/*/locations/*/caPools/*.

certificateCertificate

Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.

certificateIdString

Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored otherwise.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);

CreateCertificateAsync(CaPoolName, Certificate, String, CancellationToken)

public virtual Task<Certificate> CreateCertificateAsync(CaPoolName parent, Certificate certificate, string certificateId, CancellationToken cancellationToken)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentCaPoolName

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate], in the format projects/*/locations/*/caPools/*.

certificateCertificate

Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.

certificateIdString

Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored otherwise.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);

CreateCertificateAsync(CreateCertificateRequest, CallSettings)

public virtual Task<Certificate> CreateCertificateAsync(CreateCertificateRequest request, CallSettings callSettings = null)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestCreateCertificateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    CertificateId = "",
    Certificate = new Certificate(),
    RequestId = "",
    ValidateOnly = false,
    IssuingCertificateAuthorityId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request);

CreateCertificateAsync(CreateCertificateRequest, CancellationToken)

public virtual Task<Certificate> CreateCertificateAsync(CreateCertificateRequest request, CancellationToken cancellationToken)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestCreateCertificateRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    CertificateId = "",
    Certificate = new Certificate(),
    RequestId = "",
    ValidateOnly = false,
    IssuingCertificateAuthorityId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request);

CreateCertificateAsync(String, Certificate, String, CallSettings)

public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentString

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate], in the format projects/*/locations/*/caPools/*.

certificateCertificate

Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.

certificateIdString

Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored otherwise.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);

CreateCertificateAsync(String, Certificate, String, CancellationToken)

public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CancellationToken cancellationToken)

Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
parentString

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [Certificate][google.cloud.security.privateca.v1.Certificate], in the format projects/*/locations/*/caPools/*.

certificateCertificate

Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values.

certificateIdString

Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][], but is optional and its value is ignored otherwise.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);

CreateCertificateAuthority(CaPoolName, CertificateAuthority, String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
parentCaPoolName

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format projects/*/locations/*/caPools/*.

certificateAuthorityCertificateAuthority

Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.

certificateAuthorityIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthority(CreateCertificateAuthorityRequest, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(CreateCertificateAuthorityRequest request, CallSettings callSettings = null)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
requestCreateCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    CertificateAuthorityId = "",
    CertificateAuthority = new CertificateAuthority(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateAuthority(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthority(String, CertificateAuthority, String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
parentString

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format projects/*/locations/*/caPools/*.

certificateAuthorityCertificateAuthority

Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.

certificateAuthorityIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(CaPoolName, CertificateAuthority, String, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
parentCaPoolName

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format projects/*/locations/*/caPools/*.

certificateAuthorityCertificateAuthority

Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.

certificateAuthorityIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(CaPoolName, CertificateAuthority, String, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CancellationToken cancellationToken)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
parentCaPoolName

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format projects/*/locations/*/caPools/*.

certificateAuthorityCertificateAuthority

Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.

certificateAuthorityIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, CallSettings callSettings = null)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
requestCreateCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    CertificateAuthorityId = "",
    CertificateAuthority = new CertificateAuthority(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, CancellationToken cancellationToken)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
requestCreateCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    CertificateAuthorityId = "",
    CertificateAuthority = new CertificateAuthority(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(String, CertificateAuthority, String, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
parentString

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format projects/*/locations/*/caPools/*.

certificateAuthorityCertificateAuthority

Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.

certificateAuthorityIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(String, CertificateAuthority, String, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CancellationToken cancellationToken)

Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.

Parameters
NameDescription
parentString

Required. The resource name of the [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority], in the format projects/*/locations/*/caPools/*.

certificateAuthorityCertificateAuthority

Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values.

certificateAuthorityIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplate(LocationName, CertificateTemplate, String, CallSettings)

public virtual Operation<CertificateTemplate, OperationMetadata> CreateCertificateTemplate(LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
parentLocationName

Required. The resource name of the location associated with the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], in the format projects/*/locations/*.

certificateTemplateCertificateTemplate

Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.

certificateTemplateIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateTemplate, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplate(CreateCertificateTemplateRequest, CallSettings)

public virtual Operation<CertificateTemplate, OperationMetadata> CreateCertificateTemplate(CreateCertificateTemplateRequest request, CallSettings callSettings = null)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
requestCreateCertificateTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateTemplate, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateTemplateId = "",
    CertificateTemplate = new CertificateTemplate(),
    RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateTemplate(request);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplate(String, CertificateTemplate, String, CallSettings)

public virtual Operation<CertificateTemplate, OperationMetadata> CreateCertificateTemplate(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
parentString

Required. The resource name of the location associated with the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], in the format projects/*/locations/*.

certificateTemplateCertificateTemplate

Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.

certificateTemplateIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateTemplate, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplateAsync(LocationName, CertificateTemplate, String, CallSettings)

public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
parentLocationName

Required. The resource name of the location associated with the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], in the format projects/*/locations/*.

certificateTemplateCertificateTemplate

Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.

certificateTemplateIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateTemplate, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplateAsync(LocationName, CertificateTemplate, String, CancellationToken)

public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CancellationToken cancellationToken)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
parentLocationName

Required. The resource name of the location associated with the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], in the format projects/*/locations/*.

certificateTemplateCertificateTemplate

Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.

certificateTemplateIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateTemplate, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplateAsync(CreateCertificateTemplateRequest, CallSettings)

public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, CallSettings callSettings = null)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
requestCreateCertificateTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateTemplate, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateTemplateId = "",
    CertificateTemplate = new CertificateTemplate(),
    RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplateAsync(CreateCertificateTemplateRequest, CancellationToken)

public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, CancellationToken cancellationToken)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
requestCreateCertificateTemplateRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateTemplate, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateTemplateId = "",
    CertificateTemplate = new CertificateTemplate(),
    RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplateAsync(String, CertificateTemplate, String, CallSettings)

public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
parentString

Required. The resource name of the location associated with the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], in the format projects/*/locations/*.

certificateTemplateCertificateTemplate

Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.

certificateTemplateIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateTemplate, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

CreateCertificateTemplateAsync(String, CertificateTemplate, String, CancellationToken)

public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CancellationToken cancellationToken)

Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.

Parameters
NameDescription
parentString

Required. The resource name of the location associated with the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate], in the format projects/*/locations/*.

certificateTemplateCertificateTemplate

Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values.

certificateTemplateIdString

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateTemplate, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);

// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate 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<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateTemplate retrievedResult = retrievedResponse.Result;
}

DeleteCaPool(CaPoolName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteCaPool(CaPoolName name, CallSettings callSettings = null)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
nameCaPoolName

Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format projects/*/locations/*/caPools/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(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;
}

DeleteCaPool(DeleteCaPoolRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteCaPool(DeleteCaPoolRequest request, CallSettings callSettings = null)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestDeleteCaPoolRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DeleteCaPoolRequest request = new DeleteCaPoolRequest
{
    CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(request);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(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;
}

DeleteCaPool(String, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteCaPool(string name, CallSettings callSettings = null)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
nameString

Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format projects/*/locations/*/caPools/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(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;
}

DeleteCaPoolAsync(CaPoolName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(CaPoolName name, CallSettings callSettings = null)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
nameCaPoolName

Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format projects/*/locations/*/caPools/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(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;
}

DeleteCaPoolAsync(CaPoolName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(CaPoolName name, CancellationToken cancellationToken)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
nameCaPoolName

Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format projects/*/locations/*/caPools/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(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;
}

DeleteCaPoolAsync(DeleteCaPoolRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(DeleteCaPoolRequest request, CallSettings callSettings = null)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestDeleteCaPoolRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCaPoolRequest request = new DeleteCaPoolRequest
{
    CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(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;
}

DeleteCaPoolAsync(DeleteCaPoolRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(DeleteCaPoolRequest request, CancellationToken cancellationToken)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
requestDeleteCaPoolRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCaPoolRequest request = new DeleteCaPoolRequest
{
    CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(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;
}

DeleteCaPoolAsync(String, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(string name, CallSettings callSettings = null)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
nameString

Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format projects/*/locations/*/caPools/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(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;
}

DeleteCaPoolAsync(String, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(string name, CancellationToken cancellationToken)

Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].

Parameters
NameDescription
nameString

Required. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format projects/*/locations/*/caPools/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(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;
}

DeleteCertificateAuthority(CertificateAuthorityName, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> DeleteCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
nameCertificateAuthorityName

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthority(DeleteCertificateAuthorityRequest, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> DeleteCertificateAuthority(DeleteCertificateAuthorityRequest request, CallSettings callSettings = null)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
requestDeleteCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
    IgnoreActiveCertificates = false,
    SkipGracePeriod = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> DeleteCertificateAuthority(string name, CallSettings callSettings = null)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
nameCertificateAuthorityName

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
nameCertificateAuthorityName

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, CallSettings callSettings = null)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
requestDeleteCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
    IgnoreActiveCertificates = false,
    SkipGracePeriod = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, CancellationToken cancellationToken)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
requestDeleteCertificateAuthorityRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
    IgnoreActiveCertificates = false,
    SkipGracePeriod = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthorityAsync(String, CallSettings)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(string name, CallSettings callSettings = null)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateAuthorityAsync(String, CancellationToken)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(string name, CancellationToken cancellationToken)

Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format projects/*/locations/*/caPools/*/certificateAuthorities/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority 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<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

DeleteCertificateTemplate(CertificateTemplateName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteCertificateTemplate(CertificateTemplateName name, CallSettings callSettings = null)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
nameCertificateTemplateName

Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format projects/*/locations/*/certificateTemplates/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(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;
}

DeleteCertificateTemplate(DeleteCertificateTemplateRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteCertificateTemplate(DeleteCertificateTemplateRequest request, CallSettings callSettings = null)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
requestDeleteCertificateTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest
{
    CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateTemplate(request);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(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;
}

DeleteCertificateTemplate(String, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteCertificateTemplate(string name, CallSettings callSettings = null)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format projects/*/locations/*/certificateTemplates/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(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;
}

DeleteCertificateTemplateAsync(CertificateTemplateName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(CertificateTemplateName name, CallSettings callSettings = null)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
nameCertificateTemplateName

Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format projects/*/locations/*/certificateTemplates/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(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;
}

DeleteCertificateTemplateAsync(CertificateTemplateName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(CertificateTemplateName name, CancellationToken cancellationToken)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
nameCertificateTemplateName

Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format projects/*/locations/*/certificateTemplates/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(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;
}

DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, CallSettings callSettings = null)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
requestDeleteCertificateTemplateRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest
{
    CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(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;
}

DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, CancellationToken cancellationToken)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
requestDeleteCertificateTemplateRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest
{
    CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(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;
}

DeleteCertificateTemplateAsync(String, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(string name, CallSettings callSettings = null)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format projects/*/locations/*/certificateTemplates/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(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;
}

DeleteCertificateTemplateAsync(String, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(string name, CancellationToken cancellationToken)

DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].

Parameters
NameDescription
nameString

Required. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format projects/*/locations/*/certificateTemplates/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);

// Poll until the returned long-running operation is