Certificate Authority v1beta1 API - Class CertificateAuthorityServiceClient (2.0.0-beta02)

public abstract class CertificateAuthorityServiceClient

Reference documentation and code samples for the Certificate Authority v1beta1 API class CertificateAuthorityServiceClient.

CertificateAuthorityService client wrapper, for convenient use.

Inheritance

Object > CertificateAuthorityServiceClient

Namespace

Google.Cloud.Security.PrivateCA.V1Beta1

Assembly

Google.Cloud.Security.PrivateCA.V1Beta1.dll

Remarks

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

Properties

ActivateCertificateAuthorityOperationsClient

public virtual OperationsClient ActivateCertificateAuthorityOperationsClient { get; }

The long-running operations client for ActivateCertificateAuthority.

Property Value
TypeDescription
OperationsClient

CreateCertificateAuthorityOperationsClient

public virtual OperationsClient CreateCertificateAuthorityOperationsClient { get; }

The long-running operations client for CreateCertificateAuthority.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default CertificateAuthorityService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default CertificateAuthorityService scopes are:

DisableCertificateAuthorityOperationsClient

public virtual OperationsClient DisableCertificateAuthorityOperationsClient { get; }

The long-running operations client for DisableCertificateAuthority.

Property Value
TypeDescription
OperationsClient

EnableCertificateAuthorityOperationsClient

public virtual OperationsClient EnableCertificateAuthorityOperationsClient { get; }

The long-running operations client for EnableCertificateAuthority.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual CertificateAuthorityService.CertificateAuthorityServiceClient GrpcClient { get; }

The underlying gRPC CertificateAuthorityService client

Property Value
TypeDescription
CertificateAuthorityService.CertificateAuthorityServiceClient

RestoreCertificateAuthorityOperationsClient

public virtual OperationsClient RestoreCertificateAuthorityOperationsClient { get; }

The long-running operations client for RestoreCertificateAuthority.

Property Value
TypeDescription
OperationsClient

ScheduleDeleteCertificateAuthorityOperationsClient

public virtual OperationsClient ScheduleDeleteCertificateAuthorityOperationsClient { get; }

The long-running operations client for ScheduleDeleteCertificateAuthority.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateCertificateAuthorityOperationsClient

public virtual OperationsClient UpdateCertificateAuthorityOperationsClient { get; }

The long-running operations client for UpdateCertificateAuthority.

Property Value
TypeDescription
OperationsClient

UpdateCertificateRevocationListOperationsClient

public virtual OperationsClient UpdateCertificateRevocationListOperationsClient { get; }

The long-running operations client for UpdateCertificateRevocationList.

Property Value
TypeDescription
OperationsClient

Methods

ActivateCertificateAuthority(ActivateCertificateAuthorityRequest, CallSettings)

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

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.

Parameters
NameDescription
requestActivateCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.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)

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

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.

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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.

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CallSettings)

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

Activate a [CertificateAuthority][google.cloud.security.privateca.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.

Parameters
NameDescription
requestActivateCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CancellationToken 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.

Parameters
NameDescription
requestActivateCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
    CertificateAuthorityName = CertificateAuthorityName.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)

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

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.

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken 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.

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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.

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

ActivateCertificateAuthorityAsync(String, CancellationToken)

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

Activate a [CertificateAuthority][google.cloud.security.privateca.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.

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

Create()

public static CertificateAuthorityServiceClient Create()

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

Returns
TypeDescription
CertificateAuthorityServiceClient

The created CertificateAuthorityServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<CertificateAuthorityServiceClient>

The task representing the created CertificateAuthorityServiceClient.

CreateCertificate(CertificateAuthorityName, Certificate, String, CallSettings)

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

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].

Parameters
NameDescription
parentCertificateAuthorityName

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/*.

certificateCertificate

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

certificateIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

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

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].

Parameters
NameDescription
requestCreateCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    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)

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

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].

Parameters
NameDescription
parentString

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/*.

certificateCertificate

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

certificateIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

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

CreateCertificateAsync(CertificateAuthorityName, Certificate, String, CallSettings)

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

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].

Parameters
NameDescription
parentCertificateAuthorityName

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/*.

certificateCertificate

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

certificateIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Certificate> CreateCertificateAsync(CertificateAuthorityName parent, Certificate certificate, string certificateId, CancellationToken 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].

Parameters
NameDescription
parentCertificateAuthorityName

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/*.

certificateCertificate

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

certificateIdString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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].

Parameters
NameDescription
requestCreateCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

CreateCertificateAsync(CreateCertificateRequest, CancellationToken)

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

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

Parameters
NameDescription
requestCreateCertificateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    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)

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

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].

Parameters
NameDescription
parentString

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/*.

certificateCertificate

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

certificateIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CancellationToken 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].

Parameters
NameDescription
parentString

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/*.

certificateCertificate

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

certificateIdString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
parentLocationName

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

certificateAuthorityCertificateAuthority

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

certificateAuthorityIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
requestCreateCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    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)

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

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

Parameters
NameDescription
parentString

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

certificateAuthorityCertificateAuthority

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

certificateAuthorityIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

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

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

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

Parameters
NameDescription
parentLocationName

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

certificateAuthorityCertificateAuthority

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

certificateAuthorityIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
parentLocationName

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

certificateAuthorityCertificateAuthority

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

certificateAuthorityIdString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
requestCreateCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    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)

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

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

Parameters
NameDescription
requestCreateCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
    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)

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

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

Parameters
NameDescription
parentString

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

certificateAuthorityCertificateAuthority

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

certificateAuthorityIdString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CertificateAuthority retrievedResult = retrievedResponse.Result;
}

CreateCertificateAuthorityAsync(String, CertificateAuthority, String, CancellationToken)

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

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

Parameters
NameDescription
parentString

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

certificateAuthorityCertificateAuthority

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

certificateAuthorityIdString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

public virtual Operation<CertificateAuthority, OperationMetadata> DisableCertificateAuthority(DisableCertificateAuthorityRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDisableCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

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

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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

Parameters
NameDescription
requestDisableCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DisableCertificateAuthorityAsync(DisableCertificateAuthorityRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestDisableCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

public virtual Operation<CertificateAuthority, OperationMetadata> EnableCertificateAuthority(EnableCertificateAuthorityRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestEnableCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

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

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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

Parameters
NameDescription
requestEnableCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> EnableCertificateAuthorityAsync(EnableCertificateAuthorityRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestEnableCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(CertificateAuthorityName name, CallSettings callSettings = null)

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].

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FetchCertificateAuthorityCsrResponse

The RPC response.

Example
// 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)

public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest request, CallSettings callSettings = null)

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].

Parameters
NameDescription
requestFetchCertificateAuthorityCsrRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FetchCertificateAuthorityCsrResponse

The RPC response.

Example
// 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)

public virtual FetchCertificateAuthorityCsrResponse FetchCertificateAuthorityCsr(string name, CallSettings callSettings = null)

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].

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
FetchCertificateAuthorityCsrResponse

The RPC response.

Example
// 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)

public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(CertificateAuthorityName name, CallSettings callSettings = null)

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].

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Example
// 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)

public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(CertificateAuthorityName name, CancellationToken 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].

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Example
// 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)

public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, CallSettings callSettings = null)

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].

Parameters
NameDescription
requestFetchCertificateAuthorityCsrRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Example
// 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)

public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(FetchCertificateAuthorityCsrRequest request, CancellationToken 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].

Parameters
NameDescription
requestFetchCertificateAuthorityCsrRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Example
// 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)

public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(string name, CallSettings callSettings = null)

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].

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Example
// 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)

public virtual Task<FetchCertificateAuthorityCsrResponse> FetchCertificateAuthorityCsrAsync(string name, CancellationToken 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].

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<FetchCertificateAuthorityCsrResponse>

A Task containing the RPC response.

Example
// 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)

public virtual Certificate GetCertificate(CertificateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

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

GetCertificate(GetCertificateRequest, CallSettings)

public virtual Certificate GetCertificate(GetCertificateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

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

GetCertificate(String, CallSettings)

public virtual Certificate GetCertificate(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

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

GetCertificateAsync(CertificateName, CallSettings)

public virtual Task<Certificate> GetCertificateAsync(CertificateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

GetCertificateAsync(CertificateName, CancellationToken)

public virtual Task<Certificate> GetCertificateAsync(CertificateName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameCertificateName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

GetCertificateAsync(GetCertificateRequest, CallSettings)

public virtual Task<Certificate> GetCertificateAsync(GetCertificateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

GetCertificateAsync(GetCertificateRequest, CancellationToken)

public virtual Task<Certificate> GetCertificateAsync(GetCertificateRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestGetCertificateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

GetCertificateAsync(String, CallSettings)

public virtual Task<Certificate> GetCertificateAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

GetCertificateAsync(String, CancellationToken)

public virtual Task<Certificate> GetCertificateAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

GetCertificateAuthority(CertificateAuthorityName, CallSettings)

public virtual CertificateAuthority GetCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CertificateAuthority

The RPC response.

Example
// 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)

public virtual CertificateAuthority GetCertificateAuthority(GetCertificateAuthorityRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CertificateAuthority

The RPC response.

Example
// 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)

public virtual CertificateAuthority GetCertificateAuthority(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CertificateAuthority

The RPC response.

Example
// 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)

public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CertificateAuthority>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CertificateAuthority>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CertificateAuthority>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(GetCertificateAuthorityRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestGetCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CertificateAuthority>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CertificateAuthority>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateAuthority> GetCertificateAuthorityAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CertificateAuthority>

A Task containing the RPC response.

Example
// 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)

public virtual CertificateRevocationList GetCertificateRevocationList(CertificateRevocationListName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateRevocationListName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CertificateRevocationList

The RPC response.

Example
// 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)

public virtual CertificateRevocationList GetCertificateRevocationList(GetCertificateRevocationListRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetCertificateRevocationListRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CertificateRevocationList

The RPC response.

Example
// 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)

public virtual CertificateRevocationList GetCertificateRevocationList(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CertificateRevocationList

The RPC response.

Example
// 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)

public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(CertificateRevocationListName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateRevocationListName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CertificateRevocationList>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(CertificateRevocationListName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameCertificateRevocationListName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CertificateRevocationList>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetCertificateRevocationListRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CertificateRevocationList>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestGetCertificateRevocationListRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CertificateRevocationList>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CertificateRevocationList>

A Task containing the RPC response.

Example
// 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)

public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CertificateRevocationList>

A Task containing the RPC response.

Example
// 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)

public virtual ReusableConfig GetReusableConfig(GetReusableConfigRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetReusableConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReusableConfig

The RPC response.

Example
// 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)

public virtual ReusableConfig GetReusableConfig(ReusableConfigName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameReusableConfigName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReusableConfig

The RPC response.

Example
// 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)

public virtual ReusableConfig GetReusableConfig(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReusableConfig

The RPC response.

Example
// 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)

public virtual Task<ReusableConfig> GetReusableConfigAsync(GetReusableConfigRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestGetReusableConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ReusableConfig>

A Task containing the RPC response.

Example
// 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)

public virtual Task<ReusableConfig> GetReusableConfigAsync(GetReusableConfigRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestGetReusableConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ReusableConfig>

A Task containing the RPC response.

Example
// 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)

public virtual Task<ReusableConfig> GetReusableConfigAsync(ReusableConfigName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameReusableConfigName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ReusableConfig>

A Task containing the RPC response.

Example
// 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)

public virtual Task<ReusableConfig> GetReusableConfigAsync(ReusableConfigName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameReusableConfigName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ReusableConfig>

A Task containing the RPC response.

Example
// 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)

public virtual Task<ReusableConfig> GetReusableConfigAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ReusableConfig>

A Task containing the RPC response.

Example
// 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)

public virtual Task<ReusableConfig> GetReusableConfigAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ReusableConfig>

A Task containing the RPC response.

Example
// 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)

public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentLocationName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable sequence of CertificateAuthority resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(ListCertificateAuthoritiesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListCertificateAuthoritiesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable sequence of CertificateAuthority resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable sequence of CertificateAuthority resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentLocationName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable asynchronous sequence of CertificateAuthority resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListCertificateAuthoritiesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable asynchronous sequence of CertificateAuthority resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority>

A pageable asynchronous sequence of CertificateAuthority resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentCertificateAuthorityName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable sequence of CertificateRevocationList resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(ListCertificateRevocationListsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListCertificateRevocationListsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable sequence of CertificateRevocationList resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable sequence of CertificateRevocationList resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentCertificateAuthorityName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable asynchronous sequence of CertificateRevocationList resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListCertificateRevocationListsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable asynchronous sequence of CertificateRevocationList resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList>

A pageable asynchronous sequence of CertificateRevocationList resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentCertificateAuthorityName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificatesResponse, Certificate>

A pageable sequence of Certificate resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(ListCertificatesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListCertificatesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificatesResponse, Certificate>

A pageable sequence of Certificate resources.

Example
// 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)

public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListCertificatesResponse, Certificate>

A pageable sequence of Certificate resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentCertificateAuthorityName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificatesResponse, Certificate>

A pageable asynchronous sequence of Certificate resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(ListCertificatesRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListCertificatesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificatesResponse, Certificate>

A pageable asynchronous sequence of Certificate resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListCertificatesResponse, Certificate>

A pageable asynchronous sequence of Certificate resources.

Example
// 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)

public virtual PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentLocationName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable sequence of ReusableConfig resources.

Example
// 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)

public virtual PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigs(ListReusableConfigsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListReusableConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable sequence of ReusableConfig resources.

Example
// 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)

public virtual PagedEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable sequence of ReusableConfig resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentLocationName

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable asynchronous sequence of ReusableConfig resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigsAsync(ListReusableConfigsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListReusableConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable asynchronous sequence of ReusableConfig resources.

Example
// 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)

public virtual PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig> ListReusableConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
NameDescription
parentString

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

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListReusableConfigsResponse, ReusableConfig>

A pageable asynchronous sequence of ReusableConfig resources.

Example
// 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)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceActivateCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceActivateCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceCreateCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceCreateCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceCreateCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceDisableCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceDisableCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceDisableCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceEnableCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceEnableCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceEnableCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceRestoreCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceRestoreCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceRestoreCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceScheduleDeleteCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceScheduleDeleteCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceScheduleDeleteCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateCertificateAuthority(String, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceUpdateCertificateAuthority(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The result of polling the operation.

PollOnceUpdateCertificateAuthorityAsync(String, CallSettings)

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

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateCertificateRevocationList(String, CallSettings)

public virtual Operation<CertificateRevocationList, OperationMetadata> PollOnceUpdateCertificateRevocationList(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateRevocationList, OperationMetadata>

The result of polling the operation.

PollOnceUpdateCertificateRevocationListAsync(String, CallSettings)

public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> PollOnceUpdateCertificateRevocationListAsync(string operationName, CallSettings callSettings = null)

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

Parameters
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateRevocationList, OperationMetadata>>

A task representing the result of polling the operation.

RestoreCertificateAuthority(CertificateAuthorityName, CallSettings)

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

public virtual Operation<CertificateAuthority, OperationMetadata> RestoreCertificateAuthority(RestoreCertificateAuthorityRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestRestoreCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

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

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

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

Parameters
NameDescription
requestRestoreCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> RestoreCertificateAuthorityAsync(RestoreCertificateAuthorityRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestRestoreCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

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

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

public virtual Certificate RevokeCertificate(CertificateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

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

RevokeCertificate(RevokeCertificateRequest, CallSettings)

public virtual Certificate RevokeCertificate(RevokeCertificateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestRevokeCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

public virtual Certificate RevokeCertificate(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

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

RevokeCertificateAsync(CertificateName, CallSettings)

public virtual Task<Certificate> RevokeCertificateAsync(CertificateName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameCertificateName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

RevokeCertificateAsync(CertificateName, CancellationToken)

public virtual Task<Certificate> RevokeCertificateAsync(CertificateName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameCertificateName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

RevokeCertificateAsync(RevokeCertificateRequest, CallSettings)

public virtual Task<Certificate> RevokeCertificateAsync(RevokeCertificateRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestRevokeCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Certificate> RevokeCertificateAsync(RevokeCertificateRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestRevokeCertificateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Certificate> RevokeCertificateAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

RevokeCertificateAsync(String, CancellationToken)

public virtual Task<Certificate> RevokeCertificateAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

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

ScheduleDeleteCertificateAuthority(CertificateAuthorityName, CallSettings)

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

public virtual Operation<CertificateAuthority, OperationMetadata> ScheduleDeleteCertificateAuthority(ScheduleDeleteCertificateAuthorityRequest request, CallSettings callSettings = null)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
requestScheduleDeleteCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

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

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
nameCertificateAuthorityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
nameCertificateAuthorityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.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)

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
requestScheduleDeleteCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ScheduleDeleteCertificateAuthorityAsync(ScheduleDeleteCertificateAuthorityRequest request, CancellationToken cancellationToken)

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
requestScheduleDeleteCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

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

Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

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

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
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)

public virtual Certificate UpdateCertificate(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)

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.

Parameters
NameDescription
certificateCertificate

Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = certificateAuthorityServiceClient.UpdateCertificate(certificate, updateMask);

UpdateCertificate(UpdateCertificateRequest, CallSettings)

public virtual Certificate UpdateCertificate(UpdateCertificateRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestUpdateCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Certificate

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
    Certificate = new Certificate(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.UpdateCertificate(request);

UpdateCertificateAsync(Certificate, FieldMask, CallSettings)

public virtual Task<Certificate> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)

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.

Parameters
NameDescription
certificateCertificate

Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask);

UpdateCertificateAsync(Certificate, FieldMask, CancellationToken)

public virtual Task<Certificate> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CancellationToken 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.

Parameters
NameDescription
certificateCertificate

Required. [Certificate][google.cloud.security.privateca.v1beta1.Certificate] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask);

UpdateCertificateAsync(UpdateCertificateRequest, CallSettings)

public virtual Task<Certificate> UpdateCertificateAsync(UpdateCertificateRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestUpdateCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
    Certificate = new Certificate(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request);

UpdateCertificateAsync(UpdateCertificateRequest, CancellationToken)

public virtual Task<Certificate> UpdateCertificateAsync(UpdateCertificateRequest request, CancellationToken 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.

Parameters
NameDescription
requestUpdateCertificateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Certificate>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
    Certificate = new Certificate(),
    UpdateMask = new FieldMask(),
    RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request);

UpdateCertificateAuthority(CertificateAuthority, FieldMask, CallSettings)

public virtual Operation<CertificateAuthority, OperationMetadata> UpdateCertificateAuthority(CertificateAuthority certificateAuthority, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
certificateAuthorityCertificateAuthority

Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

public virtual Operation<CertificateAuthority, OperationMetadata> UpdateCertificateAuthority(UpdateCertificateAuthorityRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateAuthority, OperationMetadata>

The RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
certificateAuthorityCertificateAuthority

Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, FieldMask updateMask, CancellationToken cancellationToken)

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

Parameters
NameDescription
certificateAuthorityCertificateAuthority

Required. [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

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

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

Parameters
NameDescription
requestUpdateCertificateAuthorityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestUpdateCertificateAuthorityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateAuthority, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
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)

public virtual Operation<CertificateRevocationList, OperationMetadata> UpdateCertificateRevocationList(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
certificateRevocationListCertificateRevocationList

Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateRevocationList, OperationMetadata>

The RPC response.

Example
// 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)

public virtual Operation<CertificateRevocationList, OperationMetadata> UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateCertificateRevocationListRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CertificateRevocationList, OperationMetadata>

The RPC response.

Example
// 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)

public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
certificateRevocationListCertificateRevocationList

Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Example
// 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)

public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CancellationToken cancellationToken)

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

Parameters
NameDescription
certificateRevocationListCertificateRevocationList

Required. [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] with updated values.

updateMaskFieldMask

Required. A list of fields to be updated in this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Example
// 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)

public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestUpdateCertificateRevocationListRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Example
// 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)

public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, CancellationToken cancellationToken)

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

Parameters
NameDescription
requestUpdateCertificateRevocationListRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CertificateRevocationList, OperationMetadata>>

A Task containing the RPC response.

Example
// 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;
}