Show / Hide Table of Contents

Class CertificateAuthorityServiceClient

CertificateAuthorityService client wrapper, for convenient use.

Inheritance
System.Object
CertificateAuthorityServiceClient
CertificateAuthorityServiceClientImpl
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Security.PrivateCA.V1Beta1
Assembly: Google.Cloud.Security.PrivateCA.V1Beta1.dll
Syntax
public abstract class CertificateAuthorityServiceClient
Remarks

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

Properties

ActivateCertificateAuthorityOperationsClient

The long-running operations client for ActivateCertificateAuthority.

Declaration
public virtual OperationsClient ActivateCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

CreateCertificateAuthorityOperationsClient

The long-running operations client for CreateCertificateAuthority.

Declaration
public virtual OperationsClient CreateCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

DefaultEndpoint

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

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
System.String

DefaultScopes

The default CertificateAuthorityService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<System.String>
Remarks

The default CertificateAuthorityService scopes are:

  • https://www.googleapis.com/auth/cloud-platform

DisableCertificateAuthorityOperationsClient

The long-running operations client for DisableCertificateAuthority.

Declaration
public virtual OperationsClient DisableCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

EnableCertificateAuthorityOperationsClient

The long-running operations client for EnableCertificateAuthority.

Declaration
public virtual OperationsClient EnableCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

GrpcClient

The underlying gRPC CertificateAuthorityService client

Declaration
public virtual CertificateAuthorityService.CertificateAuthorityServiceClient GrpcClient { get; }
Property Value
Type Description
CertificateAuthorityService.CertificateAuthorityServiceClient

RestoreCertificateAuthorityOperationsClient

The long-running operations client for RestoreCertificateAuthority.

Declaration
public virtual OperationsClient RestoreCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

ScheduleDeleteCertificateAuthorityOperationsClient

The long-running operations client for ScheduleDeleteCertificateAuthority.

Declaration
public virtual OperationsClient ScheduleDeleteCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

UpdateCertificateAuthorityOperationsClient

The long-running operations client for UpdateCertificateAuthority.

Declaration
public virtual OperationsClient UpdateCertificateAuthorityOperationsClient { get; }
Property Value
Type Description
OperationsClient

UpdateCertificateRevocationListOperationsClient

The long-running operations client for UpdateCertificateRevocationList.

Declaration
public virtual OperationsClient UpdateCertificateRevocationListOperationsClient { get; }
Property Value
Type Description
OperationsClient

Methods

ActivateCertificateAuthority(ActivateCertificateAuthorityRequest, CallSettings)

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

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(ActivateCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ActivateCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[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)

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

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[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)

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

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ActivateCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
ActivateCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/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()

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

Declaration
public static CertificateAuthorityServiceClient Create()
Returns
Type Description
CertificateAuthorityServiceClient

The created CertificateAuthorityServiceClient.

CreateAsync(CancellationToken)

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

Declaration
public static Task<CertificateAuthorityServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken to use while creating the client.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthorityServiceClient>

The task representing the created CertificateAuthorityServiceClient.

CreateCertificate(CertificateAuthorityName, Certificate, String, CallSettings)

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

Declaration
public virtual Certificate CreateCertificate(CertificateAuthorityName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateAuthorities/*.

Certificate certificate

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

System.String certificateId

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.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], but is optional and its value is ignored otherwise.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId);

CreateCertificate(CreateCertificateRequest, CallSettings)

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

Declaration
public virtual Certificate CreateCertificate(CreateCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    CertificateId = "",
    Certificate = new Certificate(),
    RequestId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(request);

CreateCertificate(String, Certificate, String, CallSettings)

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

Declaration
public virtual Certificate CreateCertificate(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateAuthorities/*.

Certificate certificate

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

System.String certificateId

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.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], but is optional and its value is ignored otherwise.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

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

CreateCertificateAsync(CertificateAuthorityName, Certificate, String, CallSettings)

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

Declaration
public virtual Task<Certificate> CreateCertificateAsync(CertificateAuthorityName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateAuthorities/*.

Certificate certificate

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

System.String certificateId

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.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], but is optional and its value is ignored otherwise.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);

CreateCertificateAsync(CertificateAuthorityName, Certificate, String, CancellationToken)

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

Declaration
public virtual Task<Certificate> CreateCertificateAsync(CertificateAuthorityName parent, Certificate certificate, string certificateId, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateAuthorities/*.

Certificate certificate

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

System.String certificateId

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.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], but is optional and its value is ignored otherwise.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);

CreateCertificateAsync(CreateCertificateRequest, CallSettings)

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

Declaration
public virtual Task<Certificate> CreateCertificateAsync(CreateCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    CertificateId = "",
    Certificate = new Certificate(),
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request);

CreateCertificateAsync(CreateCertificateRequest, CancellationToken)

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

Declaration
public virtual Task<Certificate> CreateCertificateAsync(CreateCertificateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateCertificateRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    CertificateId = "",
    Certificate = new Certificate(),
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request);

CreateCertificateAsync(String, Certificate, String, CallSettings)

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

Declaration
public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateAuthorities/*.

Certificate certificate

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

System.String certificateId

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.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], but is optional and its value is ignored otherwise.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

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

CreateCertificateAsync(String, Certificate, String, CancellationToken)

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

Declaration
public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location and [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] associated with the [Certificate][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateAuthorities/*.

Certificate certificate

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

System.String certificateId

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.v1beta1.CertificateAuthority] in the Enterprise [CertificateAuthority.Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier], but is optional and its value is ignored otherwise.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

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

CreateCertificateAuthority(LocationName, CertificateAuthority, String, CallSettings)

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

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(LocationName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Parameters
Type Name Description
LocationName parent

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

CertificateAuthority certificateAuthority

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

System.String certificateAuthorityId

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
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)

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

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(CreateCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    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)

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

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

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

CertificateAuthority certificateAuthority

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

System.String certificateAuthorityId

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
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(LocationName, CertificateAuthority, String, CallSettings)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(LocationName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Parameters
Type Name Description
LocationName parent

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

CertificateAuthority certificateAuthority

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

System.String certificateAuthorityId

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
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(LocationName, CertificateAuthority, String, CancellationToken)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(LocationName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CancellationToken cancellationToken)
Parameters
Type Name Description
LocationName parent

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

CertificateAuthority certificateAuthority

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

System.String certificateAuthorityId

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

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

CertificateAuthority certificateAuthority

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

System.String certificateAuthorityId

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
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)

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

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String parent

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

CertificateAuthority certificateAuthority

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

System.String certificateAuthorityId

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
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;
}

DisableCertificateAuthority(CertificateAuthorityName, CallSettings)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> DisableCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DisableCertificateAuthority(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.PollOnceDisableCertificateAuthority(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;
}

DisableCertificateAuthority(DisableCertificateAuthorityRequest, CallSettings)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> DisableCertificateAuthority(DisableCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DisableCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DisableCertificateAuthority(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.PollOnceDisableCertificateAuthority(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;
}

DisableCertificateAuthority(String, CallSettings)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> DisableCertificateAuthority(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DisableCertificateAuthority(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.PollOnceDisableCertificateAuthority(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;
}

DisableCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(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.PollOnceDisableCertificateAuthorityAsync(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;
}

DisableCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(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.PollOnceDisableCertificateAuthorityAsync(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;
}

DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest, CallSettings)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DisableCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(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.PollOnceDisableCertificateAuthorityAsync(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;
}

DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest, CancellationToken)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
DisableCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(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.PollOnceDisableCertificateAuthorityAsync(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;
}

DisableCertificateAuthorityAsync(String, CallSettings)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(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.PollOnceDisableCertificateAuthorityAsync(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;
}

DisableCertificateAuthorityAsync(String, CancellationToken)

Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DisableCertificateAuthorityAsync(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.PollOnceDisableCertificateAuthorityAsync(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;
}

EnableCertificateAuthority(CertificateAuthorityName, CallSettings)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> EnableCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.EnableCertificateAuthority(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.PollOnceEnableCertificateAuthority(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;
}

EnableCertificateAuthority(EnableCertificateAuthorityRequest, CallSettings)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> EnableCertificateAuthority(EnableCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
EnableCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.EnableCertificateAuthority(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.PollOnceEnableCertificateAuthority(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;
}

EnableCertificateAuthority(String, CallSettings)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> EnableCertificateAuthority(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.EnableCertificateAuthority(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.PollOnceEnableCertificateAuthority(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;
}

EnableCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(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.PollOnceEnableCertificateAuthorityAsync(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;
}

EnableCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(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.PollOnceEnableCertificateAuthorityAsync(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;
}

EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest, CallSettings)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
EnableCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(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.PollOnceEnableCertificateAuthorityAsync(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;
}

EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest, CancellationToken)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
EnableCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(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.PollOnceEnableCertificateAuthorityAsync(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;
}

EnableCertificateAuthorityAsync(String, CallSettings)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(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.PollOnceEnableCertificateAuthorityAsync(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;
}

EnableCertificateAuthorityAsync(String, CancellationToken)

Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.EnableCertificateAuthorityAsync(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.PollOnceEnableCertificateAuthorityAsync(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;
}

FetchCertificateAuthorityCsr(CertificateAuthorityName, CallSettings)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchCertificateAuthorityCsrResponse

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(name);

FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest, CallSettings)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
FetchCertificateAuthorityCsrRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchCertificateAuthorityCsrResponse

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
};
// Make the request
FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(request);

FetchCertificateAuthorityCsr(String, CallSettings)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchCertificateAuthorityCsrResponse

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
FetchCertificateAuthorityCsrResponse response = certificateAuthorityServiceClient.FetchCertificateAuthorityCsr(name);

FetchCertificateAuthorityCsrAsync(CertificateAuthorityName, CallSettings)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name);

FetchCertificateAuthorityCsrAsync(CertificateAuthorityName, CancellationToken)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name);

FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest, CallSettings)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
FetchCertificateAuthorityCsrRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
};
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(request);

FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest, CancellationToken)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
FetchCertificateAuthorityCsrRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
};
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(request);

FetchCertificateAuthorityCsrAsync(String, CallSettings)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name);

FetchCertificateAuthorityCsrAsync(String, CancellationToken)

Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].

Declaration
public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name);

GetCertificate(CertificateName, CallSettings)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Certificate GetCertificate(CertificateName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateName name

Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
// Make the request
Certificate response = certificateAuthorityServiceClient.GetCertificate(name);

GetCertificate(GetCertificateRequest, CallSettings)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Certificate GetCertificate(GetCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
    CertificateName = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"),
};
// Make the request
Certificate response = certificateAuthorityServiceClient.GetCertificate(request);

GetCertificate(String, CallSettings)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Certificate GetCertificate(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = certificateAuthorityServiceClient.GetCertificate(name);

GetCertificateAsync(CertificateName, CallSettings)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> GetCertificateAsync(CertificateName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateName name

Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name);

GetCertificateAsync(CertificateName, CancellationToken)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> GetCertificateAsync(CertificateName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateName name

Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name);

GetCertificateAsync(GetCertificateRequest, CallSettings)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> GetCertificateAsync(GetCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
    CertificateName = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"),
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(request);

GetCertificateAsync(GetCertificateRequest, CancellationToken)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> GetCertificateAsync(GetCertificateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetCertificateRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
    CertificateName = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"),
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(request);

GetCertificateAsync(String, CallSettings)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> GetCertificateAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name);

GetCertificateAsync(String, CancellationToken)

Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> GetCertificateAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1beta1.Certificate] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateAuthorityServiceClient.GetCertificateAsync(name);

GetCertificateAuthority(CertificateAuthorityName, CallSettings)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual CertificateAuthority GetCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CertificateAuthority

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(name);

GetCertificateAuthority(GetCertificateAuthorityRequest, CallSettings)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual CertificateAuthority GetCertificateAuthority(GetCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CertificateAuthority

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
};
// Make the request
CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(request);

GetCertificateAuthority(String, CallSettings)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual CertificateAuthority GetCertificateAuthority(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CertificateAuthority

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
CertificateAuthority response = certificateAuthorityServiceClient.GetCertificateAuthority(name);

GetCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthority>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name);

GetCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthority>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name);

GetCertificateAuthorityAsync(GetCertificateAuthorityRequest, CallSettings)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthority>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
};
// Make the request
CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(request);

GetCertificateAuthorityAsync(GetCertificateAuthorityRequest, CancellationToken)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthority>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
};
// Make the request
CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(request);

GetCertificateAuthorityAsync(String, CallSettings)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthority>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name);

GetCertificateAuthorityAsync(String, CancellationToken)

Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<CertificateAuthority>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
CertificateAuthority response = await certificateAuthorityServiceClient.GetCertificateAuthorityAsync(name);

GetCertificateRevocationList(CertificateRevocationListName, CallSettings)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual CertificateRevocationList GetCertificateRevocationList(CertificateRevocationListName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateRevocationListName name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CertificateRevocationList

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
// Make the request
CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(name);

GetCertificateRevocationList(GetCertificateRevocationListRequest, CallSettings)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual CertificateRevocationList GetCertificateRevocationList(GetCertificateRevocationListRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCertificateRevocationListRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CertificateRevocationList

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest
{
    CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"),
};
// Make the request
CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(request);

GetCertificateRevocationList(String, CallSettings)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual CertificateRevocationList GetCertificateRevocationList(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CertificateRevocationList

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]";
// Make the request
CertificateRevocationList response = certificateAuthorityServiceClient.GetCertificateRevocationList(name);

GetCertificateRevocationListAsync(CertificateRevocationListName, CallSettings)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(CertificateRevocationListName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateRevocationListName name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<CertificateRevocationList>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);

GetCertificateRevocationListAsync(CertificateRevocationListName, CancellationToken)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(CertificateRevocationListName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateRevocationListName name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<CertificateRevocationList>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);

GetCertificateRevocationListAsync(GetCertificateRevocationListRequest, CallSettings)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCertificateRevocationListRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<CertificateRevocationList>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest
{
    CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"),
};
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(request);

GetCertificateRevocationListAsync(GetCertificateRevocationListRequest, CancellationToken)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetCertificateRevocationListRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<CertificateRevocationList>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest
{
    CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"),
};
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(request);

GetCertificateRevocationListAsync(String, CallSettings)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<CertificateRevocationList>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]";
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);

GetCertificateRevocationListAsync(String, CancellationToken)

Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

Required. The [name][google.cloud.security.privateca.v1beta1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<CertificateRevocationList>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]";
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);

GetReusableConfig(GetReusableConfigRequest, CallSettings)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual ReusableConfig GetReusableConfig(GetReusableConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetReusableConfigRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReusableConfig

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetReusableConfigRequest request = new GetReusableConfigRequest
{
    ReusableConfigName = ReusableConfigName.FromProjectLocationReusableConfig("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"),
};
// Make the request
ReusableConfig response = certificateAuthorityServiceClient.GetReusableConfig(request);

GetReusableConfig(ReusableConfigName, CallSettings)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual ReusableConfig GetReusableConfig(ReusableConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
ReusableConfigName name

Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReusableConfig

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ReusableConfigName name = ReusableConfigName.FromProjectLocationReusableConfig("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
// Make the request
ReusableConfig response = certificateAuthorityServiceClient.GetReusableConfig(name);

GetReusableConfig(String, CallSettings)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual ReusableConfig GetReusableConfig(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ReusableConfig

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reusableConfigs/[REUSABLE_CONFIG]";
// Make the request
ReusableConfig response = certificateAuthorityServiceClient.GetReusableConfig(name);

GetReusableConfigAsync(GetReusableConfigRequest, CallSettings)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual Task<ReusableConfig> GetReusableConfigAsync(GetReusableConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetReusableConfigRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<ReusableConfig>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetReusableConfigRequest request = new GetReusableConfigRequest
{
    ReusableConfigName = ReusableConfigName.FromProjectLocationReusableConfig("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"),
};
// Make the request
ReusableConfig response = await certificateAuthorityServiceClient.GetReusableConfigAsync(request);

GetReusableConfigAsync(GetReusableConfigRequest, CancellationToken)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual Task<ReusableConfig> GetReusableConfigAsync(GetReusableConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetReusableConfigRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<ReusableConfig>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetReusableConfigRequest request = new GetReusableConfigRequest
{
    ReusableConfigName = ReusableConfigName.FromProjectLocationReusableConfig("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]"),
};
// Make the request
ReusableConfig response = await certificateAuthorityServiceClient.GetReusableConfigAsync(request);

GetReusableConfigAsync(ReusableConfigName, CallSettings)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual Task<ReusableConfig> GetReusableConfigAsync(ReusableConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
ReusableConfigName name

Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<ReusableConfig>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ReusableConfigName name = ReusableConfigName.FromProjectLocationReusableConfig("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
// Make the request
ReusableConfig response = await certificateAuthorityServiceClient.GetReusableConfigAsync(name);

GetReusableConfigAsync(ReusableConfigName, CancellationToken)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual Task<ReusableConfig> GetReusableConfigAsync(ReusableConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
ReusableConfigName name

Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<ReusableConfig>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ReusableConfigName name = ReusableConfigName.FromProjectLocationReusableConfig("[PROJECT]", "[LOCATION]", "[REUSABLE_CONFIG]");
// Make the request
ReusableConfig response = await certificateAuthorityServiceClient.GetReusableConfigAsync(name);

GetReusableConfigAsync(String, CallSettings)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual Task<ReusableConfig> GetReusableConfigAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<ReusableConfig>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reusableConfigs/[REUSABLE_CONFIG]";
// Make the request
ReusableConfig response = await certificateAuthorityServiceClient.GetReusableConfigAsync(name);

GetReusableConfigAsync(String, CancellationToken)

Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual Task<ReusableConfig> GetReusableConfigAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<ReusableConfig>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reusableConfigs/[REUSABLE_CONFIG]";
// Make the request
ReusableConfig response = await certificateAuthorityServiceClient.GetReusableConfigAsync(name);

ListCertificateAuthorities(LocationName, String, Nullable<Int32>, CallSettings)

Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
LocationName parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable sequence of CertificateAuthority resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateAuthority item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateAuthoritiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateAuthority item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateAuthorities(ListCertificateAuthoritiesRequest, CallSettings)

Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(ListCertificateAuthoritiesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCertificateAuthoritiesRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable sequence of CertificateAuthority resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthorities(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateAuthority item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateAuthoritiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateAuthority item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateAuthorities(String, String, Nullable<Int32>, CallSettings)

Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable sequence of CertificateAuthority resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateAuthority item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateAuthoritiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateAuthority item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateAuthoritiesAsync(LocationName, String, Nullable<Int32>, CallSettings)

Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
LocationName parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable asynchronous sequence of CertificateAuthority resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateAuthority item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateAuthoritiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateAuthority item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest, CallSettings)

Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCertificateAuthoritiesRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable asynchronous sequence of CertificateAuthority resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateAuthority item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateAuthoritiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateAuthority item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateAuthoritiesAsync(String, String, Nullable<Int32>, CallSettings)

Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable asynchronous sequence of CertificateAuthority resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateAuthority item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateAuthoritiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateAuthority item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateRevocationLists(CertificateAuthorityName, String, Nullable<Int32>, CallSettings)

Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(CertificateAuthorityName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location associated with the [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable sequence of CertificateRevocationList resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateRevocationList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateRevocationListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateRevocationList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateRevocationLists(ListCertificateRevocationListsRequest, CallSettings)

Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(ListCertificateRevocationListsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCertificateRevocationListsRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable sequence of CertificateRevocationList resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationLists(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateRevocationList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateRevocationListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateRevocationList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateRevocationLists(String, String, Nullable<Int32>, CallSettings)

Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location associated with the [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable sequence of CertificateRevocationList resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateRevocationList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateRevocationListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateRevocationList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateRevocationListsAsync(CertificateAuthorityName, String, Nullable<Int32>, CallSettings)

Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(CertificateAuthorityName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location associated with the [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable asynchronous sequence of CertificateRevocationList resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateRevocationList item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateRevocationListsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateRevocationList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest, CallSettings)

Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCertificateRevocationListsRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable asynchronous sequence of CertificateRevocationList resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateRevocationList item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateRevocationListsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateRevocationList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificateRevocationListsAsync(String, String, Nullable<Int32>, CallSettings)

Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location associated with the [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable asynchronous sequence of CertificateRevocationList resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateRevocationList item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateRevocationListsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CertificateRevocationList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificates(CertificateAuthorityName, String, Nullable<Int32>, CallSettings)

Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(CertificateAuthorityName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location associated with the [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificatesResponse, Certificate>

A pageable sequence of Certificate resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Certificate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificates(ListCertificatesRequest, CallSettings)

Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(ListCertificatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCertificatesRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificatesResponse, Certificate>

A pageable sequence of Certificate resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificatesRequest request = new ListCertificatesRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificates(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Certificate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificates(String, String, Nullable<Int32>, CallSettings)

Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location associated with the [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCertificatesResponse, Certificate>

A pageable sequence of Certificate resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Certificate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificatesAsync(CertificateAuthorityName, String, Nullable<Int32>, CallSettings)

Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(CertificateAuthorityName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName parent

Required. The resource name of the location associated with the [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificatesResponse, Certificate>

A pageable asynchronous sequence of Certificate resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Certificate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificatesAsync(ListCertificatesRequest, CallSettings)

Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(ListCertificatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCertificatesRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificatesResponse, Certificate>

A pageable asynchronous sequence of Certificate resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificatesRequest request = new ListCertificatesRequest
{
    ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificatesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Certificate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCertificatesAsync(String, String, Nullable<Int32>, CallSettings)

Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

Required. The resource name of the location associated with the [Certificates][google.cloud.security.privateca.v1beta1.Certificate], in the format projects/*/locations/*/certificateauthorities/*.

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCertificatesResponse, Certificate>

A pageable asynchronous sequence of Certificate resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificatesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Certificate item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReusableConfigs(LocationName, String, Nullable<Int32>, CallSettings)

Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigs(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
LocationName parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable sequence of ReusableConfig resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> response = certificateAuthorityServiceClient.ListReusableConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReusableConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReusableConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReusableConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReusableConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReusableConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReusableConfigs(ListReusableConfigsRequest, CallSettings)

Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigs(ListReusableConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListReusableConfigsRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable sequence of ReusableConfig resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListReusableConfigsRequest request = new ListReusableConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> response = certificateAuthorityServiceClient.ListReusableConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReusableConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReusableConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReusableConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReusableConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReusableConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReusableConfigs(String, String, Nullable<Int32>, CallSettings)

Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigs(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable sequence of ReusableConfig resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> response = certificateAuthorityServiceClient.ListReusableConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReusableConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReusableConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReusableConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReusableConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReusableConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReusableConfigsAsync(LocationName, String, Nullable<Int32>, CallSettings)

Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
LocationName parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable asynchronous sequence of ReusableConfig resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> response = certificateAuthorityServiceClient.ListReusableConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReusableConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReusableConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReusableConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReusableConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReusableConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReusableConfigsAsync(ListReusableConfigsRequest, CallSettings)

Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigsAsync(ListReusableConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListReusableConfigsRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable asynchronous sequence of ReusableConfig resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListReusableConfigsRequest request = new ListReusableConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> response = certificateAuthorityServiceClient.ListReusableConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReusableConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReusableConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReusableConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReusableConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReusableConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReusableConfigsAsync(String, String, Nullable<Int32>, CallSettings)

Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].

Declaration
public virtual PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
Type Name Description
System.String parent

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

System.String pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

System.Nullable<System.Int32> pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable asynchronous sequence of ReusableConfig resources.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> response = certificateAuthorityServiceClient.ListReusableConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReusableConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReusableConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReusableConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ReusableConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ReusableConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceActivateCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of ActivateCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceActivateCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceActivateCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of ActivateCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceActivateCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceCreateCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of CreateCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceCreateCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceCreateCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceCreateCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceDisableCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of DisableCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceDisableCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceDisableCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of DisableCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceDisableCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceEnableCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of EnableCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceEnableCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceEnableCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of EnableCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceEnableCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceRestoreCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of RestoreCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceRestoreCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceRestoreCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of RestoreCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceRestoreCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceScheduleDeleteCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of ScheduleDeleteCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceScheduleDeleteCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceScheduleDeleteCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of ScheduleDeleteCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceScheduleDeleteCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateCertificateAuthority(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of UpdateCertificateAuthority.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceUpdateCertificateAuthority(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceUpdateCertificateAuthorityAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateCertificateAuthority.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceUpdateCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateCertificateRevocationList(String, CallSettings)

Poll an operation once, using an operationName from a previous invocation of UpdateCertificateRevocationList.

Declaration
public virtual Operation<CertificateRevocationList, OperationMetadata> PollOnceUpdateCertificateRevocationList(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateRevocationList, OperationMetadata>

The result of polling the operation.

PollOnceUpdateCertificateRevocationListAsync(String, CallSettings)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateCertificateRevocationList.

Declaration
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> PollOnceUpdateCertificateRevocationListAsync(string operationName, CallSettings callSettings = null)
Parameters
Type Name Description
System.String operationName

The name of a previously invoked operation. Must not be null or empty.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateRevocationList, OperationMetadata>>

A task representing the result of polling the operation.

RestoreCertificateAuthority(CertificateAuthorityName, CallSettings)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> RestoreCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.RestoreCertificateAuthority(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.PollOnceRestoreCertificateAuthority(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;
}

RestoreCertificateAuthority(RestoreCertificateAuthorityRequest, CallSettings)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> RestoreCertificateAuthority(RestoreCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
RestoreCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
RestoreCertificateAuthorityRequest request = new RestoreCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.RestoreCertificateAuthority(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.PollOnceRestoreCertificateAuthority(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;
}

RestoreCertificateAuthority(String, CallSettings)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> RestoreCertificateAuthority(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.RestoreCertificateAuthority(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.PollOnceRestoreCertificateAuthority(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;
}

RestoreCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.RestoreCertificateAuthorityAsync(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.PollOnceRestoreCertificateAuthorityAsync(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;
}

RestoreCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.RestoreCertificateAuthorityAsync(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.PollOnceRestoreCertificateAuthorityAsync(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;
}

RestoreCertificateAuthorityAsync(RestoreCertificateAuthorityRequest, CallSettings)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(RestoreCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
RestoreCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
RestoreCertificateAuthorityRequest request = new RestoreCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.RestoreCertificateAuthorityAsync(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.PollOnceRestoreCertificateAuthorityAsync(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;
}

RestoreCertificateAuthorityAsync(RestoreCertificateAuthorityRequest, CancellationToken)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(RestoreCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
RestoreCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
RestoreCertificateAuthorityRequest request = new RestoreCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.RestoreCertificateAuthorityAsync(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.PollOnceRestoreCertificateAuthorityAsync(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;
}

RestoreCertificateAuthorityAsync(String, CallSettings)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.RestoreCertificateAuthorityAsync(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.PollOnceRestoreCertificateAuthorityAsync(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;
}

RestoreCertificateAuthorityAsync(String, CancellationToken)

Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.RestoreCertificateAuthorityAsync(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.PollOnceRestoreCertificateAuthorityAsync(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;
}

RevokeCertificate(CertificateName, CallSettings)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Certificate RevokeCertificate(CertificateName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateName name

Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
// Make the request
Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name);

RevokeCertificate(RevokeCertificateRequest, CallSettings)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Certificate RevokeCertificate(RevokeCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
RevokeCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
RevokeCertificateRequest request = new RevokeCertificateRequest
{
    CertificateName = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"),
    Reason = RevocationReason.Unspecified,
    RequestId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.RevokeCertificate(request);

RevokeCertificate(String, CallSettings)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Certificate RevokeCertificate(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name);

RevokeCertificateAsync(CertificateName, CallSettings)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> RevokeCertificateAsync(CertificateName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateName name

Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);

RevokeCertificateAsync(CertificateName, CancellationToken)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> RevokeCertificateAsync(CertificateName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateName name

Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);

RevokeCertificateAsync(RevokeCertificateRequest, CallSettings)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> RevokeCertificateAsync(RevokeCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
RevokeCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
RevokeCertificateRequest request = new RevokeCertificateRequest
{
    CertificateName = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"),
    Reason = RevocationReason.Unspecified,
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(request);

RevokeCertificateAsync(RevokeCertificateRequest, CancellationToken)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> RevokeCertificateAsync(RevokeCertificateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
RevokeCertificateRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
RevokeCertificateRequest request = new RevokeCertificateRequest
{
    CertificateName = CertificateName.FromProjectLocationCertificateAuthorityCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE]"),
    Reason = RevocationReason.Unspecified,
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(request);

RevokeCertificateAsync(String, CallSettings)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> RevokeCertificateAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);

RevokeCertificateAsync(String, CancellationToken)

Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].

Declaration
public virtual Task<Certificate> RevokeCertificateAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

Required. The resource name for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format projects/*/locations/*/certificateAuthorities/*/certificates/*.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);

ScheduleDeleteCertificateAuthority(CertificateAuthorityName, CallSettings)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> ScheduleDeleteCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthority(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.PollOnceScheduleDeleteCertificateAuthority(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;
}

ScheduleDeleteCertificateAuthority(ScheduleDeleteCertificateAuthorityRequest, CallSettings)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> ScheduleDeleteCertificateAuthority(ScheduleDeleteCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ScheduleDeleteCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ScheduleDeleteCertificateAuthorityRequest request = new ScheduleDeleteCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthority(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.PollOnceScheduleDeleteCertificateAuthority(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;
}

ScheduleDeleteCertificateAuthority(String, CallSettings)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> ScheduleDeleteCertificateAuthority(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthority(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.PollOnceScheduleDeleteCertificateAuthority(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;
}

ScheduleDeleteCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthorityName name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthorityAsync(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.PollOnceScheduleDeleteCertificateAuthorityAsync(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;
}

ScheduleDeleteCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthorityName name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthorityAsync(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.PollOnceScheduleDeleteCertificateAuthorityAsync(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;
}

ScheduleDeleteCertificateAuthorityAsync(ScheduleDeleteCertificateAuthorityRequest, CallSettings)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(ScheduleDeleteCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ScheduleDeleteCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduleDeleteCertificateAuthorityRequest request = new ScheduleDeleteCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthorityAsync(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.PollOnceScheduleDeleteCertificateAuthorityAsync(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;
}

ScheduleDeleteCertificateAuthorityAsync(ScheduleDeleteCertificateAuthorityRequest, CancellationToken)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(ScheduleDeleteCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
ScheduleDeleteCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ScheduleDeleteCertificateAuthorityRequest request = new ScheduleDeleteCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCertificateAuthority("[PROJECT]", "[LOCATION]", "[CERTIFICATE_AUTHORITY]"),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthorityAsync(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.PollOnceScheduleDeleteCertificateAuthorityAsync(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;
}

ScheduleDeleteCertificateAuthorityAsync(String, CallSettings)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
System.String name

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthorityAsync(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.PollOnceScheduleDeleteCertificateAuthorityAsync(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;
}

ScheduleDeleteCertificateAuthorityAsync(String, CancellationToken)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
System.String name

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ScheduleDeleteCertificateAuthorityAsync(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.PollOnceScheduleDeleteCertificateAuthorityAsync(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;
}

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
System.Threading.Tasks.Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateCertificate(Certificate, FieldMask, CallSettings)

Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.

Declaration
public virtual Certificate UpdateCertificate(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Certificate certificate

Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = certificateAuthorityServiceClient.UpdateCertificate(certificate, updateMask);

UpdateCertificate(UpdateCertificateRequest, CallSettings)

Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.

Declaration
public virtual Certificate UpdateCertificate(UpdateCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Certificate

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
    Certificate = new Certificate(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.UpdateCertificate(request);

UpdateCertificateAsync(Certificate, FieldMask, CallSettings)

Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.

Declaration
public virtual Task<Certificate> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Certificate certificate

Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask);

UpdateCertificateAsync(Certificate, FieldMask, CancellationToken)

Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.

Declaration
public virtual Task<Certificate> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
Certificate certificate

Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask);

UpdateCertificateAsync(UpdateCertificateRequest, CallSettings)

Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.

Declaration
public virtual Task<Certificate> UpdateCertificateAsync(UpdateCertificateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCertificateRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
    Certificate = new Certificate(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request);

UpdateCertificateAsync(UpdateCertificateRequest, CancellationToken)

Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.

Declaration
public virtual Task<Certificate> UpdateCertificateAsync(UpdateCertificateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateCertificateRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Certificate>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
    Certificate = new Certificate(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request);

UpdateCertificateAuthority(CertificateAuthority, FieldMask, CallSettings)

Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> UpdateCertificateAuthority(CertificateAuthority certificateAuthority, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthority certificateAuthority

Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthority certificateAuthority = new CertificateAuthority();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateAuthority(certificateAuthority, updateMask);

// 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.PollOnceUpdateCertificateAuthority(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;
}

UpdateCertificateAuthority(UpdateCertificateAuthorityRequest, CallSettings)

Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Operation<CertificateAuthority, OperationMetadata> UpdateCertificateAuthority(UpdateCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest
{
    CertificateAuthority = new CertificateAuthority(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateAuthority(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.PollOnceUpdateCertificateAuthority(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;
}

UpdateCertificateAuthorityAsync(CertificateAuthority, FieldMask, CallSettings)

Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateAuthority certificateAuthority

Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthority certificateAuthority = new CertificateAuthority();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(certificateAuthority, updateMask);

// 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.PollOnceUpdateCertificateAuthorityAsync(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;
}

UpdateCertificateAuthorityAsync(CertificateAuthority, FieldMask, CancellationToken)

Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateAuthority certificateAuthority

Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthority certificateAuthority = new CertificateAuthority();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(certificateAuthority, updateMask);

// 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.PollOnceUpdateCertificateAuthorityAsync(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;
}

UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest, CallSettings)

Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCertificateAuthorityRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest
{
    CertificateAuthority = new CertificateAuthority(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(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.PollOnceUpdateCertificateAuthorityAsync(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;
}

UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest, CancellationToken)

Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

Declaration
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateCertificateAuthorityRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest
{
    CertificateAuthority = new CertificateAuthority(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(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.PollOnceUpdateCertificateAuthorityAsync(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;
}

UpdateCertificateRevocationList(CertificateRevocationList, FieldMask, CallSettings)

Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Operation<CertificateRevocationList, OperationMetadata> UpdateCertificateRevocationList(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateRevocationList certificateRevocationList

Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateRevocationList, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateRevocationList certificateRevocationList = new CertificateRevocationList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(certificateRevocationList, updateMask);

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

UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest, CallSettings)

Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Operation<CertificateRevocationList, OperationMetadata> UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCertificateRevocationListRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<CertificateRevocationList, OperationMetadata>

The RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest
{
    CertificateRevocationList = new CertificateRevocationList(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(request);

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

UpdateCertificateRevocationListAsync(CertificateRevocationList, FieldMask, CallSettings)

Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CertificateRevocationList certificateRevocationList

Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationList certificateRevocationList = new CertificateRevocationList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask);

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

UpdateCertificateRevocationListAsync(CertificateRevocationList, FieldMask, CancellationToken)

Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
CertificateRevocationList certificateRevocationList

Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.

FieldMask updateMask

Required. A list of fields to be updated in this request.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationList certificateRevocationList = new CertificateRevocationList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask);

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

UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest, CallSettings)

Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCertificateRevocationListRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest
{
    CertificateRevocationList = new CertificateRevocationList(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(request);

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

UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest, CancellationToken)

Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].

Declaration
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateCertificateRevocationListRequest request

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

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken to use for this RPC.

Returns
Type Description
System.Threading.Tasks.Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Sample code
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest
{
    CertificateRevocationList = new CertificateRevocationList(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(request);

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