Class CertificateAuthorityServiceClient

public abstract 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

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
TypeNameDescription
ActivateCertificateAuthorityRequestrequest

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
Stringname

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
TypeNameDescription
ActivateCertificateAuthorityRequestrequest

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
TypeNameDescription
ActivateCertificateAuthorityRequestrequest

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
Stringname

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
TypeNameDescription
Stringname

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
TypeNameDescription
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
TypeNameDescription
CertificateAuthorityNameparent

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.

StringcertificateId

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
TypeNameDescription
CreateCertificateRequestrequest

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
TypeNameDescription
Stringparent

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.

StringcertificateId

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
TypeNameDescription
CertificateAuthorityNameparent

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.

StringcertificateId

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
TypeNameDescription
CertificateAuthorityNameparent

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.

StringcertificateId

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
TypeNameDescription
CreateCertificateRequestrequest

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
TypeNameDescription
CreateCertificateRequestrequest

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
TypeNameDescription
Stringparent

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.

StringcertificateId

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
TypeNameDescription
Stringparent

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.

StringcertificateId

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
TypeNameDescription
LocationNameparent

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.

StringcertificateAuthorityId

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
TypeNameDescription
CreateCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringparent

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.

StringcertificateAuthorityId

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
TypeNameDescription
LocationNameparent

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.

StringcertificateAuthorityId

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
TypeNameDescription
LocationNameparent

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.

StringcertificateAuthorityId

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
TypeNameDescription
CreateCertificateAuthorityRequestrequest

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
TypeNameDescription
CreateCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringparent

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.

StringcertificateAuthorityId

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
TypeNameDescription
Stringparent

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.

StringcertificateAuthorityId

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
DisableCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
DisableCertificateAuthorityRequestrequest

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
TypeNameDescription
DisableCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
EnableCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
EnableCertificateAuthorityRequestrequest

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
TypeNameDescription
EnableCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
FetchCertificateAuthorityCsrRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
FetchCertificateAuthorityCsrRequestrequest

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
TypeNameDescription
FetchCertificateAuthorityCsrRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateNamename

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
TypeNameDescription
GetCertificateRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateNamename

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
TypeNameDescription
CertificateNamename

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
TypeNameDescription
GetCertificateRequestrequest

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
TypeNameDescription
GetCertificateRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
GetCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
CertificateAuthorityNamename

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
TypeNameDescription
GetCertificateAuthorityRequestrequest

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
TypeNameDescription
GetCertificateAuthorityRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateRevocationListNamename

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
TypeNameDescription
GetCertificateRevocationListRequestrequest

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
TypeNameDescription
Stringname

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
TypeNameDescription
CertificateRevocationListNamename

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 Tas