public abstract class CertificateAuthorityServiceClient
Reference documentation and code samples for the Certificate Authority v1 API class CertificateAuthorityServiceClient.
CertificateAuthorityService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Security.PrivateCA.V1Assembly
Google.Cloud.Security.PrivateCA.V1.dll
Remarks
[Certificate Authority Service][google.cloud.security.privateca.v1.CertificateAuthorityService] manages private certificate authorities and issued certificates.
Properties
ActivateCertificateAuthorityOperationsClient
public virtual OperationsClient ActivateCertificateAuthorityOperationsClient { get; }
The long-running operations client for ActivateCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCaPoolOperationsClient
public virtual OperationsClient CreateCaPoolOperationsClient { get; }
The long-running operations client for CreateCaPool
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCertificateAuthorityOperationsClient
public virtual OperationsClient CreateCertificateAuthorityOperationsClient { get; }
The long-running operations client for CreateCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCertificateTemplateOperationsClient
public virtual OperationsClient CreateCertificateTemplateOperationsClient { get; }
The long-running operations client for CreateCertificateTemplate
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default CertificateAuthorityService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default CertificateAuthorityService scopes are:
DeleteCaPoolOperationsClient
public virtual OperationsClient DeleteCaPoolOperationsClient { get; }
The long-running operations client for DeleteCaPool
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteCertificateAuthorityOperationsClient
public virtual OperationsClient DeleteCertificateAuthorityOperationsClient { get; }
The long-running operations client for DeleteCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteCertificateTemplateOperationsClient
public virtual OperationsClient DeleteCertificateTemplateOperationsClient { get; }
The long-running operations client for DeleteCertificateTemplate
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DisableCertificateAuthorityOperationsClient
public virtual OperationsClient DisableCertificateAuthorityOperationsClient { get; }
The long-running operations client for DisableCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
EnableCertificateAuthorityOperationsClient
public virtual OperationsClient EnableCertificateAuthorityOperationsClient { get; }
The long-running operations client for EnableCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual CertificateAuthorityService.CertificateAuthorityServiceClient GrpcClient { get; }
The underlying gRPC CertificateAuthorityService client
Property Value | |
---|---|
Type | Description |
CertificateAuthorityServiceCertificateAuthorityServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UndeleteCertificateAuthorityOperationsClient
public virtual OperationsClient UndeleteCertificateAuthorityOperationsClient { get; }
The long-running operations client for UndeleteCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateCaPoolOperationsClient
public virtual OperationsClient UpdateCaPoolOperationsClient { get; }
The long-running operations client for UpdateCaPool
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateCertificateAuthorityOperationsClient
public virtual OperationsClient UpdateCertificateAuthorityOperationsClient { get; }
The long-running operations client for UpdateCertificateAuthority
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateCertificateRevocationListOperationsClient
public virtual OperationsClient UpdateCertificateRevocationListOperationsClient { get; }
The long-running operations client for UpdateCertificateRevocationList
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateCertificateTemplateOperationsClient
public virtual OperationsClient UpdateCertificateTemplateOperationsClient { get; }
The long-running operations client for UpdateCertificateTemplate
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
ActivateCertificateAuthority(ActivateCertificateAuthorityRequest, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(ActivateCertificateAuthorityRequest request, CallSettings callSettings = null)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
request | ActivateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
PemCaCertificate = "",
SubordinateConfig = new SubordinateConfig(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ActivateCertificateAuthority(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthority(CertificateAuthorityName, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> ActivateCertificateAuthority(string name, CallSettings callSettings = null)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.ActivateCertificateAuthority(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceActivateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CallSettings callSettings = null)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
request | ActivateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
PemCaCertificate = "",
SubordinateConfig = new SubordinateConfig(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(ActivateCertificateAuthorityRequest request, CancellationToken cancellationToken)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
request | ActivateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateCertificateAuthorityRequest request = new ActivateCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
PemCaCertificate = "",
SubordinateConfig = new SubordinateConfig(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
ActivateCertificateAuthorityAsync(string, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> ActivateCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.ActivateCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceActivateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
Create()
public static CertificateAuthorityServiceClient Create()
Synchronously creates a CertificateAuthorityServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CertificateAuthorityServiceClientBuilder.
Returns | |
---|---|
Type | Description |
CertificateAuthorityServiceClient | The created CertificateAuthorityServiceClient. |
CreateAsync(CancellationToken)
public static Task<CertificateAuthorityServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a CertificateAuthorityServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CertificateAuthorityServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthorityServiceClient | The task representing the created CertificateAuthorityServiceClient. |
CreateCaPool(LocationName, CaPool, string, CallSettings)
public virtual Operation<CaPool, OperationMetadata> CreateCaPool(LocationName parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CaPool][google.cloud.security.privateca.v1.CaPool], in the format
|
caPool | CaPool Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values. |
caPoolId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPool(CreateCaPoolRequest, CallSettings)
public virtual Operation<CaPool, OperationMetadata> CreateCaPool(CreateCaPoolRequest request, CallSettings callSettings = null)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | CreateCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCaPoolRequest request = new CreateCaPoolRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
CaPoolId = "",
CaPool = new CaPool(),
RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.CreateCaPool(request);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPool(string, CaPool, string, CallSettings)
public virtual Operation<CaPool, OperationMetadata> CreateCaPool(string parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CaPool][google.cloud.security.privateca.v1.CaPool], in the format
|
caPool | CaPool Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values. |
caPoolId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.CreateCaPool(parent, caPool, caPoolId);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPoolAsync(LocationName, CaPool, string, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(LocationName parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CaPool][google.cloud.security.privateca.v1.CaPool], in the format
|
caPool | CaPool Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values. |
caPoolId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPoolAsync(LocationName, CaPool, string, CancellationToken)
public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(LocationName parent, CaPool caPool, string caPoolId, CancellationToken cancellationToken)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CaPool][google.cloud.security.privateca.v1.CaPool], in the format
|
caPool | CaPool Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values. |
caPoolId | string Required. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPoolAsync(CreateCaPoolRequest, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(CreateCaPoolRequest request, CallSettings callSettings = null)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | CreateCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCaPoolRequest request = new CreateCaPoolRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
CaPoolId = "",
CaPool = new CaPool(),
RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPoolAsync(CreateCaPoolRequest, CancellationToken)
public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(CreateCaPoolRequest request, CancellationToken cancellationToken)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | CreateCaPoolRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCaPoolRequest request = new CreateCaPoolRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
CaPoolId = "",
CaPool = new CaPool(),
RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPoolAsync(string, CaPool, string, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(string parent, CaPool caPool, string caPoolId, CallSettings callSettings = null)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CaPool][google.cloud.security.privateca.v1.CaPool], in the format
|
caPool | CaPool Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values. |
caPoolId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCaPoolAsync(string, CaPool, string, CancellationToken)
public virtual Task<Operation<CaPool, OperationMetadata>> CreateCaPoolAsync(string parent, CaPool caPool, string caPoolId, CancellationToken cancellationToken)
Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CaPool][google.cloud.security.privateca.v1.CaPool], in the format
|
caPool | CaPool Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with initial field values. |
caPoolId | string Required. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CaPool caPool = new CaPool();
string caPoolId = "";
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCaPoolAsync(parent, caPool, caPoolId);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
CreateCertificate(CaPoolName, Certificate, string, CallSettings)
public virtual Certificate CreateCertificate(CaPoolName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[Certificate][google.cloud.security.privateca.v1.Certificate], in the
format |
certificate | Certificate Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values. |
certificateId | string Optional. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId);
CreateCertificate(CreateCertificateRequest, CallSettings)
public virtual Certificate CreateCertificate(CreateCertificateRequest request, CallSettings callSettings = null)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | CreateCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
CertificateId = "",
Certificate = new Certificate(),
RequestId = "",
ValidateOnly = false,
IssuingCertificateAuthorityId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(request);
CreateCertificate(string, Certificate, string, CallSettings)
public virtual Certificate CreateCertificate(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[Certificate][google.cloud.security.privateca.v1.Certificate], in the
format |
certificate | Certificate Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values. |
certificateId | string Optional. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = certificateAuthorityServiceClient.CreateCertificate(parent, certificate, certificateId);
CreateCertificateAsync(CaPoolName, Certificate, string, CallSettings)
public virtual Task<Certificate> CreateCertificateAsync(CaPoolName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[Certificate][google.cloud.security.privateca.v1.Certificate], in the
format |
certificate | Certificate Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values. |
certificateId | string Optional. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);
CreateCertificateAsync(CaPoolName, Certificate, string, CancellationToken)
public virtual Task<Certificate> CreateCertificateAsync(CaPoolName parent, Certificate certificate, string certificateId, CancellationToken cancellationToken)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[Certificate][google.cloud.security.privateca.v1.Certificate], in the
format |
certificate | Certificate Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values. |
certificateId | string Optional. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);
CreateCertificateAsync(CreateCertificateRequest, CallSettings)
public virtual Task<Certificate> CreateCertificateAsync(CreateCertificateRequest request, CallSettings callSettings = null)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | CreateCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
CertificateId = "",
Certificate = new Certificate(),
RequestId = "",
ValidateOnly = false,
IssuingCertificateAuthorityId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request);
CreateCertificateAsync(CreateCertificateRequest, CancellationToken)
public virtual Task<Certificate> CreateCertificateAsync(CreateCertificateRequest request, CancellationToken cancellationToken)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | CreateCertificateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
CertificateId = "",
Certificate = new Certificate(),
RequestId = "",
ValidateOnly = false,
IssuingCertificateAuthorityId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(request);
CreateCertificateAsync(string, Certificate, string, CallSettings)
public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[Certificate][google.cloud.security.privateca.v1.Certificate], in the
format |
certificate | Certificate Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values. |
certificateId | string Optional. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);
CreateCertificateAsync(string, Certificate, string, CancellationToken)
public virtual Task<Certificate> CreateCertificateAsync(string parent, Certificate certificate, string certificateId, CancellationToken cancellationToken)
Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[Certificate][google.cloud.security.privateca.v1.Certificate], in the
format |
certificate | Certificate Required. A [Certificate][google.cloud.security.privateca.v1.Certificate] with initial field values. |
certificateId | string Optional. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Certificate response = await certificateAuthorityServiceClient.CreateCertificateAsync(parent, certificate, certificateId);
CreateCertificateAuthority(CaPoolName, CertificateAuthority, string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
certificateAuthority | CertificateAuthority Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values. |
certificateAuthorityId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthority(CreateCertificateAuthorityRequest, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(CreateCertificateAuthorityRequest request, CallSettings callSettings = null)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
CertificateAuthorityId = "",
CertificateAuthority = new CertificateAuthority(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateAuthority(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthority(string, CertificateAuthority, string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> CreateCertificateAuthority(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
certificateAuthority | CertificateAuthority Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values. |
certificateAuthorityId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateAuthority(parent, certificateAuthority, certificateAuthorityId);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthorityAsync(CaPoolName, CertificateAuthority, string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
certificateAuthority | CertificateAuthority Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values. |
certificateAuthorityId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthorityAsync(CaPoolName, CertificateAuthority, string, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CaPoolName parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CancellationToken cancellationToken)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
certificateAuthority | CertificateAuthority Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values. |
certificateAuthorityId | string Required. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, CallSettings callSettings = null)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
CertificateAuthorityId = "",
CertificateAuthority = new CertificateAuthority(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(CreateCertificateAuthorityRequest request, CancellationToken cancellationToken)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateAuthorityRequest request = new CreateCertificateAuthorityRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
CertificateAuthorityId = "",
CertificateAuthority = new CertificateAuthority(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthorityAsync(string, CertificateAuthority, string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CallSettings callSettings = null)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
certificateAuthority | CertificateAuthority Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values. |
certificateAuthorityId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateAuthorityAsync(string, CertificateAuthority, string, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> CreateCertificateAuthorityAsync(string parent, CertificateAuthority certificateAuthority, string certificateAuthorityId, CancellationToken cancellationToken)
Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
certificateAuthority | CertificateAuthority Required. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with initial field values. |
certificateAuthorityId | string Required. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
CertificateAuthority certificateAuthority = new CertificateAuthority();
string certificateAuthorityId = "";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateAuthorityAsync(parent, certificateAuthority, certificateAuthorityId);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplate(LocationName, CertificateTemplate, string, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> CreateCertificateTemplate(LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
certificateTemplate | CertificateTemplate Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values. |
certificateTemplateId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplate(CreateCertificateTemplateRequest, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> CreateCertificateTemplate(CreateCertificateTemplateRequest request, CallSettings callSettings = null)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
CertificateTemplateId = "",
CertificateTemplate = new CertificateTemplate(),
RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateTemplate(request);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplate(string, CertificateTemplate, string, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> CreateCertificateTemplate(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
certificateTemplate | CertificateTemplate Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values. |
certificateTemplateId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.CreateCertificateTemplate(parent, certificateTemplate, certificateTemplateId);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceCreateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplateAsync(LocationName, CertificateTemplate, string, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
certificateTemplate | CertificateTemplate Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values. |
certificateTemplateId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplateAsync(LocationName, CertificateTemplate, string, CancellationToken)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(LocationName parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CancellationToken cancellationToken)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
certificateTemplate | CertificateTemplate Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values. |
certificateTemplateId | string Required. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplateAsync(CreateCertificateTemplateRequest, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, CallSettings callSettings = null)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
CertificateTemplateId = "",
CertificateTemplate = new CertificateTemplate(),
RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplateAsync(CreateCertificateTemplateRequest, CancellationToken)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(CreateCertificateTemplateRequest request, CancellationToken cancellationToken)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateTemplateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateTemplateRequest request = new CreateCertificateTemplateRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
CertificateTemplateId = "",
CertificateTemplate = new CertificateTemplate(),
RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplateAsync(string, CertificateTemplate, string, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CallSettings callSettings = null)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
certificateTemplate | CertificateTemplate Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values. |
certificateTemplateId | string Required. It must be unique within a location and match the regular
expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
CreateCertificateTemplateAsync(string, CertificateTemplate, string, CancellationToken)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> CreateCertificateTemplateAsync(string parent, CertificateTemplate certificateTemplate, string certificateTemplateId, CancellationToken cancellationToken)
Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
certificateTemplate | CertificateTemplate Required. A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with initial field values. |
certificateTemplateId | string Required. It must be unique within a location and match the regular
expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateTemplate certificateTemplate = new CertificateTemplate();
string certificateTemplateId = "";
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.CreateCertificateTemplateAsync(parent, certificateTemplate, certificateTemplateId);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceCreateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
DeleteCaPool(CaPoolName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCaPool(CaPoolName name, CallSettings callSettings = null)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | CaPoolName Required. The resource name for this
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPool(DeleteCaPoolRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCaPool(DeleteCaPoolRequest request, CallSettings callSettings = null)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | DeleteCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DeleteCaPoolRequest request = new DeleteCaPoolRequest
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPool(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCaPool(string name, CallSettings callSettings = null)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCaPool(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPoolAsync(CaPoolName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(CaPoolName name, CallSettings callSettings = null)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | CaPoolName Required. The resource name for this
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPoolAsync(CaPoolName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(CaPoolName name, CancellationToken cancellationToken)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | CaPoolName Required. The resource name for this
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPoolAsync(DeleteCaPoolRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(DeleteCaPoolRequest request, CallSettings callSettings = null)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | DeleteCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCaPoolRequest request = new DeleteCaPoolRequest
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPoolAsync(DeleteCaPoolRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(DeleteCaPoolRequest request, CancellationToken cancellationToken)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | DeleteCaPoolRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCaPoolRequest request = new DeleteCaPoolRequest
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
IgnoreDependentResources = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPoolAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(string name, CallSettings callSettings = null)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCaPoolAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCaPoolAsync(string name, CancellationToken cancellationToken)
Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCaPoolAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthority(CertificateAuthorityName, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> DeleteCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthority(DeleteCertificateAuthorityRequest, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> DeleteCertificateAuthority(DeleteCertificateAuthorityRequest request, CallSettings callSettings = null)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> DeleteCertificateAuthority(string name, CallSettings callSettings = null)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateAuthority(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, CallSettings callSettings = null)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(DeleteCertificateAuthorityRequest request, CancellationToken cancellationToken)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateAuthorityRequest request = new DeleteCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreActiveCertificates = false,
SkipGracePeriod = false,
IgnoreDependentResources = false,
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateAuthorityAsync(string, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> DeleteCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateAuthorityAsync(name);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplate(CertificateTemplateName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateTemplate(CertificateTemplateName name, CallSettings callSettings = null)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | CertificateTemplateName Required. The resource name for this
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplate(DeleteCertificateTemplateRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateTemplate(DeleteCertificateTemplateRequest request, CallSettings callSettings = null)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest
{
CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateTemplate(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplate(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateTemplate(string name, CallSettings callSettings = null)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateAuthorityServiceClient.DeleteCertificateTemplate(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplateAsync(CertificateTemplateName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(CertificateTemplateName name, CallSettings callSettings = null)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | CertificateTemplateName Required. The resource name for this
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplateAsync(CertificateTemplateName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(CertificateTemplateName name, CancellationToken cancellationToken)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | CertificateTemplateName Required. The resource name for this
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, CallSettings callSettings = null)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest
{
CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(DeleteCertificateTemplateRequest request, CancellationToken cancellationToken)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateTemplateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateTemplateRequest request = new DeleteCertificateTemplateRequest
{
CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplateAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(string name, CallSettings callSettings = null)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteCertificateTemplateAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateTemplateAsync(string name, CancellationToken cancellationToken)
DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateAuthorityServiceClient.DeleteCertificateTemplateAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceDeleteCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DisableCertificateAuthority(CertificateAuthorityName, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> DisableCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | DisableCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// 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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | DisableCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// 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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | DisableCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
DisableCertificateAuthorityRequest request = new DisableCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
IgnoreDependentResources = false,
};
// 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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | EnableCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | EnableCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | EnableCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
EnableCertificateAuthorityRequest request = new EnableCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.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;
}
FetchCaCerts(CaPoolName, CallSettings)
public virtual FetchCaCertsResponse FetchCaCerts(CaPoolName caPool, CallSettings callSettings = null)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | CaPoolName Required. The resource name for the
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchCaCertsResponse | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(caPool);
FetchCaCerts(FetchCaCertsRequest, CallSettings)
public virtual FetchCaCertsResponse FetchCaCerts(FetchCaCertsRequest request, CallSettings callSettings = null)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | FetchCaCertsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchCaCertsResponse | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
FetchCaCertsRequest request = new FetchCaCertsRequest
{
CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
};
// Make the request
FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(request);
FetchCaCerts(string, CallSettings)
public virtual FetchCaCertsResponse FetchCaCerts(string caPool, CallSettings callSettings = null)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | string Required. The resource name for the
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchCaCertsResponse | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
FetchCaCertsResponse response = certificateAuthorityServiceClient.FetchCaCerts(caPool);
FetchCaCertsAsync(CaPoolName, CallSettings)
public virtual Task<FetchCaCertsResponse> FetchCaCertsAsync(CaPoolName caPool, CallSettings callSettings = null)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | CaPoolName Required. The resource name for the
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchCaCertsResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool);
FetchCaCertsAsync(CaPoolName, CancellationToken)
public virtual Task<FetchCaCertsResponse> FetchCaCertsAsync(CaPoolName caPool, CancellationToken cancellationToken)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | CaPoolName Required. The resource name for the
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchCaCertsResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName caPool = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool);
FetchCaCertsAsync(FetchCaCertsRequest, CallSettings)
public virtual Task<FetchCaCertsResponse> FetchCaCertsAsync(FetchCaCertsRequest request, CallSettings callSettings = null)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | FetchCaCertsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchCaCertsResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
FetchCaCertsRequest request = new FetchCaCertsRequest
{
CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
};
// Make the request
FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(request);
FetchCaCertsAsync(FetchCaCertsRequest, CancellationToken)
public virtual Task<FetchCaCertsResponse> FetchCaCertsAsync(FetchCaCertsRequest request, CancellationToken cancellationToken)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | FetchCaCertsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchCaCertsResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
FetchCaCertsRequest request = new FetchCaCertsRequest
{
CaPoolAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
RequestId = "",
};
// Make the request
FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(request);
FetchCaCertsAsync(string, CallSettings)
public virtual Task<FetchCaCertsResponse> FetchCaCertsAsync(string caPool, CallSettings callSettings = null)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | string Required. The resource name for the
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchCaCertsResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool);
FetchCaCertsAsync(string, CancellationToken)
public virtual Task<FetchCaCertsResponse> FetchCaCertsAsync(string caPool, CancellationToken cancellationToken)
FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | string Required. The resource name for the
[CaPool][google.cloud.security.privateca.v1.CaPool] in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchCaCertsResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string caPool = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
FetchCaCertsResponse response = await certificateAuthorityServiceClient.FetchCaCertsAsync(caPool);
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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchCertificateAuthorityCsrResponse | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | FetchCertificateAuthorityCsrRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchCertificateAuthorityCsrResponse | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchCertificateAuthorityCsrResponse | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchCertificateAuthorityCsrResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchCertificateAuthorityCsrResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | FetchCertificateAuthorityCsrRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchCertificateAuthorityCsrResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | FetchCertificateAuthorityCsrRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchCertificateAuthorityCsrResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
FetchCertificateAuthorityCsrRequest request = new FetchCertificateAuthorityCsrRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchCertificateAuthorityCsrResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
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.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchCertificateAuthorityCsrResponse | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
FetchCertificateAuthorityCsrResponse response = await certificateAuthorityServiceClient.FetchCertificateAuthorityCsrAsync(name);
GetCaPool(CaPoolName, CallSettings)
public virtual CaPool GetCaPool(CaPoolName name, CallSettings callSettings = null)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | CaPoolName Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CaPool | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
CaPool response = certificateAuthorityServiceClient.GetCaPool(name);
GetCaPool(GetCaPoolRequest, CallSettings)
public virtual CaPool GetCaPool(GetCaPoolRequest request, CallSettings callSettings = null)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | GetCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CaPool | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCaPoolRequest request = new GetCaPoolRequest
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
};
// Make the request
CaPool response = certificateAuthorityServiceClient.GetCaPool(request);
GetCaPool(string, CallSettings)
public virtual CaPool GetCaPool(string name, CallSettings callSettings = null)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CaPool | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
CaPool response = certificateAuthorityServiceClient.GetCaPool(name);
GetCaPoolAsync(CaPoolName, CallSettings)
public virtual Task<CaPool> GetCaPoolAsync(CaPoolName name, CallSettings callSettings = null)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | CaPoolName Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCaPool | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name);
GetCaPoolAsync(CaPoolName, CancellationToken)
public virtual Task<CaPool> GetCaPoolAsync(CaPoolName name, CancellationToken cancellationToken)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | CaPoolName Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCaPool | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName name = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name);
GetCaPoolAsync(GetCaPoolRequest, CallSettings)
public virtual Task<CaPool> GetCaPoolAsync(GetCaPoolRequest request, CallSettings callSettings = null)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | GetCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCaPool | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCaPoolRequest request = new GetCaPoolRequest
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
};
// Make the request
CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(request);
GetCaPoolAsync(GetCaPoolRequest, CancellationToken)
public virtual Task<CaPool> GetCaPoolAsync(GetCaPoolRequest request, CancellationToken cancellationToken)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | GetCaPoolRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCaPool | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCaPoolRequest request = new GetCaPoolRequest
{
CaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
};
// Make the request
CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(request);
GetCaPoolAsync(string, CallSettings)
public virtual Task<CaPool> GetCaPoolAsync(string name, CallSettings callSettings = null)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCaPool | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name);
GetCaPoolAsync(string, CancellationToken)
public virtual Task<CaPool> GetCaPoolAsync(string name, CancellationToken cancellationToken)
Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CaPool.name] of the [CaPool][google.cloud.security.privateca.v1.CaPool] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCaPool | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
CaPool response = await certificateAuthorityServiceClient.GetCaPoolAsync(name);
GetCertificate(CertificateName, CallSettings)
public virtual Certificate GetCertificate(CertificateName name, CallSettings callSettings = null)
Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | GetCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | GetCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | GetCertificateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/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.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.Certificate.name] of the [Certificate][google.cloud.security.privateca.v1.Certificate] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateAuthority | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | GetCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateAuthority | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateAuthority | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthority | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthority | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | GetCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthority | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | GetCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthority | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateAuthorityRequest request = new GetCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthority | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
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.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateAuthority | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
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.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
name | CertificateRevocationListName Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateRevocationList | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | GetCertificateRevocationListRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateRevocationList | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest
{
CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[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.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateRevocationList | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/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.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
name | CertificateRevocationListName Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateRevocationList | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);
GetCertificateRevocationListAsync(CertificateRevocationListName, CancellationToken)
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(CertificateRevocationListName name, CancellationToken cancellationToken)
Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
name | CertificateRevocationListName Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateRevocationList | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationListName name = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]");
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);
GetCertificateRevocationListAsync(GetCertificateRevocationListRequest, CallSettings)
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, CallSettings callSettings = null)
Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | GetCertificateRevocationListRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateRevocationList | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest
{
CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"),
};
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(request);
GetCertificateRevocationListAsync(GetCertificateRevocationListRequest, CancellationToken)
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(GetCertificateRevocationListRequest request, CancellationToken cancellationToken)
Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | GetCertificateRevocationListRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateRevocationList | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRevocationListRequest request = new GetCertificateRevocationListRequest
{
CertificateRevocationListName = CertificateRevocationListName.FromProjectLocationCaPoolCertificateAuthorityCertificateRevocationList("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]", "[CERTIFICATE_REVOCATION_LIST]"),
};
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(request);
GetCertificateRevocationListAsync(string, CallSettings)
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(string name, CallSettings callSettings = null)
Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateRevocationList | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]";
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);
GetCertificateRevocationListAsync(string, CancellationToken)
public virtual Task<CertificateRevocationList> GetCertificateRevocationListAsync(string name, CancellationToken cancellationToken)
Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateRevocationList.name] of the [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateRevocationList | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]/certificateRevocationLists/[CERTIFICATE_REVOCATION_LIST]";
// Make the request
CertificateRevocationList response = await certificateAuthorityServiceClient.GetCertificateRevocationListAsync(name);
GetCertificateTemplate(CertificateTemplateName, CallSettings)
public virtual CertificateTemplate GetCertificateTemplate(CertificateTemplateName name, CallSettings callSettings = null)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | CertificateTemplateName Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateTemplate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(name);
GetCertificateTemplate(GetCertificateTemplateRequest, CallSettings)
public virtual CertificateTemplate GetCertificateTemplate(GetCertificateTemplateRequest request, CallSettings callSettings = null)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | GetCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateTemplate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
GetCertificateTemplateRequest request = new GetCertificateTemplateRequest
{
CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
};
// Make the request
CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(request);
GetCertificateTemplate(string, CallSettings)
public virtual CertificateTemplate GetCertificateTemplate(string name, CallSettings callSettings = null)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateTemplate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
CertificateTemplate response = certificateAuthorityServiceClient.GetCertificateTemplate(name);
GetCertificateTemplateAsync(CertificateTemplateName, CallSettings)
public virtual Task<CertificateTemplate> GetCertificateTemplateAsync(CertificateTemplateName name, CallSettings callSettings = null)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | CertificateTemplateName Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateTemplate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name);
GetCertificateTemplateAsync(CertificateTemplateName, CancellationToken)
public virtual Task<CertificateTemplate> GetCertificateTemplateAsync(CertificateTemplateName name, CancellationToken cancellationToken)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | CertificateTemplateName Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateTemplate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplateName name = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]");
// Make the request
CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name);
GetCertificateTemplateAsync(GetCertificateTemplateRequest, CallSettings)
public virtual Task<CertificateTemplate> GetCertificateTemplateAsync(GetCertificateTemplateRequest request, CallSettings callSettings = null)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | GetCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateTemplate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateTemplateRequest request = new GetCertificateTemplateRequest
{
CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
};
// Make the request
CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(request);
GetCertificateTemplateAsync(GetCertificateTemplateRequest, CancellationToken)
public virtual Task<CertificateTemplate> GetCertificateTemplateAsync(GetCertificateTemplateRequest request, CancellationToken cancellationToken)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | GetCertificateTemplateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateTemplate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
GetCertificateTemplateRequest request = new GetCertificateTemplateRequest
{
CertificateTemplateName = CertificateTemplateName.FromProjectLocationCertificateTemplate("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]"),
};
// Make the request
CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(request);
GetCertificateTemplateAsync(string, CallSettings)
public virtual Task<CertificateTemplate> GetCertificateTemplateAsync(string name, CallSettings callSettings = null)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] to get. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificateTemplate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name);
GetCertificateTemplateAsync(string, CancellationToken)
public virtual Task<CertificateTemplate> GetCertificateTemplateAsync(string name, CancellationToken cancellationToken)
Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
name | string Required. The [name][google.cloud.security.privateca.v1.CertificateTemplate.name] of the [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] to get. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificateTemplate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateTemplates/[CERTIFICATE_TEMPLATE]";
// Make the request
CertificateTemplate response = await certificateAuthorityServiceClient.GetCertificateTemplateAsync(name);
ListCaPools(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListCaPoolsResponse, CaPool> ListCaPools(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CaPools][google.cloud.security.privateca.v1.CaPool], in the format
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCaPoolsResponseCaPool | A pageable sequence of CaPool resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCaPoolsResponse, CaPool> response = certificateAuthorityServiceClient.ListCaPools(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CaPool item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCaPoolsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CaPool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CaPool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CaPool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCaPools(ListCaPoolsRequest, CallSettings)
public virtual PagedEnumerable<ListCaPoolsResponse, CaPool> ListCaPools(ListCaPoolsRequest request, CallSettings callSettings = null)
Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | ListCaPoolsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCaPoolsResponseCaPool | A pageable sequence of CaPool resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCaPoolsRequest request = new ListCaPoolsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCaPoolsResponse, CaPool> response = certificateAuthorityServiceClient.ListCaPools(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CaPool item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCaPoolsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CaPool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CaPool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CaPool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCaPools(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListCaPoolsResponse, CaPool> ListCaPools(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CaPools][google.cloud.security.privateca.v1.CaPool], in the format
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCaPoolsResponseCaPool | A pageable sequence of CaPool resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCaPoolsResponse, CaPool> response = certificateAuthorityServiceClient.ListCaPools(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CaPool item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCaPoolsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CaPool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CaPool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CaPool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCaPoolsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCaPoolsResponse, CaPool> ListCaPoolsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CaPools][google.cloud.security.privateca.v1.CaPool], in the format
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCaPoolsResponseCaPool | A pageable asynchronous sequence of CaPool resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCaPoolsResponse, CaPool> response = certificateAuthorityServiceClient.ListCaPoolsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CaPool item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCaPoolsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CaPool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CaPool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CaPool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCaPoolsAsync(ListCaPoolsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCaPoolsResponse, CaPool> ListCaPoolsAsync(ListCaPoolsRequest request, CallSettings callSettings = null)
Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | ListCaPoolsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCaPoolsResponseCaPool | A pageable asynchronous sequence of CaPool resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCaPoolsRequest request = new ListCaPoolsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCaPoolsResponse, CaPool> response = certificateAuthorityServiceClient.ListCaPoolsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CaPool item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCaPoolsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CaPool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CaPool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CaPool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCaPoolsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCaPoolsResponse, CaPool> ListCaPoolsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CaPools][google.cloud.security.privateca.v1.CaPool], in the format
|
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCaPoolsResponseCaPool | A pageable asynchronous sequence of CaPool resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCaPoolsResponse, CaPool> response = certificateAuthorityServiceClient.ListCaPoolsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CaPool item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCaPoolsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CaPool item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CaPool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CaPool item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateAuthorities(CaPoolName, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(CaPoolName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateAuthoritiesResponseCertificateAuthority | A pageable sequence of CertificateAuthority resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateAuthority item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateAuthoritiesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateAuthority item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateAuthorities(ListCertificateAuthoritiesRequest, CallSettings)
public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(ListCertificateAuthoritiesRequest request, CallSettings callSettings = null)
Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | ListCertificateAuthoritiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateAuthoritiesResponseCertificateAuthority | A pageable sequence of CertificateAuthority resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthorities(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateAuthority item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateAuthoritiesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateAuthority item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateAuthorities(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthorities(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateAuthoritiesResponseCertificateAuthority | A pageable sequence of CertificateAuthority resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
PagedEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthorities(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateAuthority item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateAuthoritiesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateAuthority item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateAuthoritiesAsync(CaPoolName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(CaPoolName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateAuthoritiesResponseCertificateAuthority | A pageable asynchronous sequence of CertificateAuthority resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateAuthority item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateAuthoritiesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateAuthority item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(ListCertificateAuthoritiesRequest request, CallSettings callSettings = null)
Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | ListCertificateAuthoritiesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateAuthoritiesResponseCertificateAuthority | A pageable asynchronous sequence of CertificateAuthority resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificateAuthoritiesRequest request = new ListCertificateAuthoritiesRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateAuthority item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateAuthoritiesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateAuthority item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateAuthoritiesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> ListCertificateAuthoritiesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the
[CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
[CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateAuthoritiesResponseCertificateAuthority | A pageable asynchronous sequence of CertificateAuthority resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
PagedAsyncEnumerable<ListCertificateAuthoritiesResponse, CertificateAuthority> response = certificateAuthorityServiceClient.ListCertificateAuthoritiesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateAuthority item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateAuthoritiesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateAuthority item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateAuthority> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateAuthority item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateRevocationLists(CertificateAuthorityName, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
parent | CertificateAuthorityName Required. The resource name of the location associated with the
[CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateRevocationListsResponseCertificateRevocationList | A pageable sequence of CertificateRevocationList resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateRevocationList item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateRevocationListsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateRevocationList item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateRevocationLists(ListCertificateRevocationListsRequest, CallSettings)
public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(ListCertificateRevocationListsRequest request, CallSettings callSettings = null)
Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | ListCertificateRevocationListsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateRevocationListsResponseCertificateRevocationList | A pageable sequence of CertificateRevocationList resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest
{
ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationLists(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateRevocationList item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateRevocationListsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateRevocationList item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateRevocationLists(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationLists(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateRevocationListsResponseCertificateRevocationList | A pageable sequence of CertificateRevocationList resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
PagedEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationLists(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateRevocationList item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateRevocationListsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateRevocationList item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateRevocationListsAsync(CertificateAuthorityName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(CertificateAuthorityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
parent | CertificateAuthorityName Required. The resource name of the location associated with the
[CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateRevocationListsResponseCertificateRevocationList | A pageable asynchronous sequence of CertificateRevocationList resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName parent = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateRevocationList item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateRevocationListsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateRevocationList item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(ListCertificateRevocationListsRequest request, CallSettings callSettings = null)
Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | ListCertificateRevocationListsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateRevocationListsResponseCertificateRevocationList | A pageable asynchronous sequence of CertificateRevocationList resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificateRevocationListsRequest request = new ListCertificateRevocationListsRequest
{
ParentAsCertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateRevocationList item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateRevocationListsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateRevocationList item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateRevocationListsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> ListCertificateRevocationListsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateRevocationListsResponseCertificateRevocationList | A pageable asynchronous sequence of CertificateRevocationList resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
PagedAsyncEnumerable<ListCertificateRevocationListsResponse, CertificateRevocationList> response = certificateAuthorityServiceClient.ListCertificateRevocationListsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateRevocationList item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateRevocationListsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateRevocationList item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateRevocationList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateRevocationList item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateTemplates(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> ListCertificateTemplates(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateTemplatesResponseCertificateTemplate | A pageable sequence of CertificateTemplate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> response = certificateAuthorityServiceClient.ListCertificateTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateTemplates(ListCertificateTemplatesRequest, CallSettings)
public virtual PagedEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> ListCertificateTemplates(ListCertificateTemplatesRequest request, CallSettings callSettings = null)
Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | ListCertificateTemplatesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateTemplatesResponseCertificateTemplate | A pageable sequence of CertificateTemplate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> response = certificateAuthorityServiceClient.ListCertificateTemplates(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateTemplates(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> ListCertificateTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificateTemplatesResponseCertificateTemplate | A pageable sequence of CertificateTemplate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> response = certificateAuthorityServiceClient.ListCertificateTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateTemplate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificateTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateTemplate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateTemplatesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> ListCertificateTemplatesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The resource name of the location associated with the
[CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateTemplatesResponseCertificateTemplate | A pageable asynchronous sequence of CertificateTemplate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateTemplatesAsync(ListCertificateTemplatesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> ListCertificateTemplatesAsync(ListCertificateTemplatesRequest request, CallSettings callSettings = null)
Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | ListCertificateTemplatesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateTemplatesResponseCertificateTemplate | A pageable asynchronous sequence of CertificateTemplate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificateTemplatesRequest request = new ListCertificateTemplatesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificateTemplatesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> ListCertificateTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate],
in the format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificateTemplatesResponseCertificateTemplate | A pageable asynchronous sequence of CertificateTemplate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCertificateTemplatesResponse, CertificateTemplate> response = certificateAuthorityServiceClient.ListCertificateTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateTemplate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificateTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateTemplate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CertificateTemplate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CertificateTemplate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificates(CaPoolName, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(CaPoolName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the location associated with the
[Certificates][google.cloud.security.privateca.v1.Certificate], in the
format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificatesResponseCertificate | A pageable sequence of Certificate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificates(ListCertificatesRequest, CallSettings)
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(ListCertificatesRequest request, CallSettings callSettings = null)
Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | ListCertificatesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificatesResponseCertificate | A pageable sequence of Certificate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
ListCertificatesRequest request = new ListCertificatesRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificates(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificates(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[Certificates][google.cloud.security.privateca.v1.Certificate], in the
format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListCertificatesResponseCertificate | A pageable sequence of Certificate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificatesAsync(CaPoolName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(CaPoolName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
parent | CaPoolName Required. The resource name of the location associated with the
[Certificates][google.cloud.security.privateca.v1.Certificate], in the
format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificatesResponseCertificate | A pageable asynchronous sequence of Certificate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPoolName parent = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]");
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificatesAsync(ListCertificatesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(ListCertificatesRequest request, CallSettings callSettings = null)
Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | ListCertificatesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificatesResponseCertificate | A pageable asynchronous sequence of Certificate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
ListCertificatesRequest request = new ListCertificatesRequest
{
ParentAsCaPoolName = CaPoolName.FromProjectLocationCaPool("[PROJECT]", "[LOCATION]", "[CA_POOL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificatesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificatesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the location associated with the
[Certificates][google.cloud.security.privateca.v1.Certificate], in the
format |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListCertificatesResponseCertificate | A pageable asynchronous sequence of Certificate resources. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]";
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateAuthorityServiceClient.ListCertificatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceActivateCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceActivateCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
ActivateCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceActivateCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceActivateCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ActivateCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceCreateCaPool(string, CallSettings)
public virtual Operation<CaPool, OperationMetadata> PollOnceCreateCaPool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateCaPool
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The result of polling the operation. |
PollOnceCreateCaPoolAsync(string, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> PollOnceCreateCaPoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCaPool
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A task representing the result of polling the operation. |
PollOnceCreateCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceCreateCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceCreateCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceCreateCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceCreateCertificateTemplate(string, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> PollOnceCreateCertificateTemplate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateCertificateTemplate
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The result of polling the operation. |
PollOnceCreateCertificateTemplateAsync(string, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> PollOnceCreateCertificateTemplateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCertificateTemplate
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A task representing the result of polling the operation. |
PollOnceDeleteCaPool(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteCaPool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteCaPool
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The result of polling the operation. |
PollOnceDeleteCaPoolAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteCaPoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCaPool
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A task representing the result of polling the operation. |
PollOnceDeleteCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceDeleteCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceDeleteCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceDeleteCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceDeleteCertificateTemplate(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteCertificateTemplate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateTemplate
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The result of polling the operation. |
PollOnceDeleteCertificateTemplateAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteCertificateTemplateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateTemplate
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A task representing the result of polling the operation. |
PollOnceDisableCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceDisableCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DisableCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceDisableCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceDisableCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DisableCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceEnableCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceEnableCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
EnableCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceEnableCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceEnableCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
EnableCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceUndeleteCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceUndeleteCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UndeleteCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceUndeleteCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceUndeleteCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UndeleteCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdateCaPool(string, CallSettings)
public virtual Operation<CaPool, OperationMetadata> PollOnceUpdateCaPool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateCaPool
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The result of polling the operation. |
PollOnceUpdateCaPoolAsync(string, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> PollOnceUpdateCaPoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCaPool
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdateCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> PollOnceUpdateCertificateAuthority(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The result of polling the operation. |
PollOnceUpdateCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> PollOnceUpdateCertificateAuthorityAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateAuthority
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdateCertificateRevocationList(string, CallSettings)
public virtual Operation<CertificateRevocationList, OperationMetadata> PollOnceUpdateCertificateRevocationList(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateRevocationList
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateRevocationListOperationMetadata | The result of polling the operation. |
PollOnceUpdateCertificateRevocationListAsync(string, CallSettings)
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> PollOnceUpdateCertificateRevocationListAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateRevocationList
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateRevocationListOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdateCertificateTemplate(string, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> PollOnceUpdateCertificateTemplate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateTemplate
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The result of polling the operation. |
PollOnceUpdateCertificateTemplateAsync(string, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> PollOnceUpdateCertificateTemplateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateTemplate
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A task representing the result of polling the operation. |
RevokeCertificate(CertificateName, CallSettings)
public virtual Certificate RevokeCertificate(CertificateName name, CallSettings callSettings = null)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]");
// Make the request
Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name);
RevokeCertificate(RevokeCertificateRequest, CallSettings)
public virtual Certificate RevokeCertificate(RevokeCertificateRequest request, CallSettings callSettings = null)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | RevokeCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
RevokeCertificateRequest request = new RevokeCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"),
Reason = RevocationReason.Unspecified,
RequestId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.RevokeCertificate(request);
RevokeCertificate(string, CallSettings)
public virtual Certificate RevokeCertificate(string name, CallSettings callSettings = null)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = certificateAuthorityServiceClient.RevokeCertificate(name);
RevokeCertificateAsync(CertificateName, CallSettings)
public virtual Task<Certificate> RevokeCertificateAsync(CertificateName name, CallSettings callSettings = null)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);
RevokeCertificateAsync(CertificateName, CancellationToken)
public virtual Task<Certificate> RevokeCertificateAsync(CertificateName name, CancellationToken cancellationToken)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);
RevokeCertificateAsync(RevokeCertificateRequest, CallSettings)
public virtual Task<Certificate> RevokeCertificateAsync(RevokeCertificateRequest request, CallSettings callSettings = null)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | RevokeCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
RevokeCertificateRequest request = new RevokeCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"),
Reason = RevocationReason.Unspecified,
RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(request);
RevokeCertificateAsync(RevokeCertificateRequest, CancellationToken)
public virtual Task<Certificate> RevokeCertificateAsync(RevokeCertificateRequest request, CancellationToken cancellationToken)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
request | RevokeCertificateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
RevokeCertificateRequest request = new RevokeCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCaPoolCertificate("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE]"),
Reason = RevocationReason.Unspecified,
RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(request);
RevokeCertificateAsync(string, CallSettings)
public virtual Task<Certificate> RevokeCertificateAsync(string name, CallSettings callSettings = null)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);
RevokeCertificateAsync(string, CancellationToken)
public virtual Task<Certificate> RevokeCertificateAsync(string name, CancellationToken cancellationToken)
Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[Certificate][google.cloud.security.privateca.v1.Certificate] in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateAuthorityServiceClient.RevokeCertificateAsync(name);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UndeleteCertificateAuthority(CertificateAuthorityName, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> UndeleteCertificateAuthority(CertificateAuthorityName name, CallSettings callSettings = null)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(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.PollOnceUndeleteCertificateAuthority(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;
}
UndeleteCertificateAuthority(UndeleteCertificateAuthorityRequest, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> UndeleteCertificateAuthority(UndeleteCertificateAuthorityRequest request, CallSettings callSettings = null)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
request | UndeleteCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(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.PollOnceUndeleteCertificateAuthority(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;
}
UndeleteCertificateAuthority(string, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> UndeleteCertificateAuthority(string name, CallSettings callSettings = null)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UndeleteCertificateAuthority(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.PollOnceUndeleteCertificateAuthority(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;
}
UndeleteCertificateAuthorityAsync(CertificateAuthorityName, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UndeleteCertificateAuthorityAsync(CertificateAuthorityName name, CallSettings callSettings = null)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(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.PollOnceUndeleteCertificateAuthorityAsync(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;
}
UndeleteCertificateAuthorityAsync(CertificateAuthorityName, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UndeleteCertificateAuthorityAsync(CertificateAuthorityName name, CancellationToken cancellationToken)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
name | CertificateAuthorityName Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthorityName name = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]");
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(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.PollOnceUndeleteCertificateAuthorityAsync(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;
}
UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest request, CallSettings callSettings = null)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
request | UndeleteCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(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.PollOnceUndeleteCertificateAuthorityAsync(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;
}
UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UndeleteCertificateAuthorityAsync(UndeleteCertificateAuthorityRequest request, CancellationToken cancellationToken)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
request | UndeleteCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UndeleteCertificateAuthorityRequest request = new UndeleteCertificateAuthorityRequest
{
CertificateAuthorityName = CertificateAuthorityName.FromProjectLocationCaPoolCertificateAuthority("[PROJECT]", "[LOCATION]", "[CA_POOL]", "[CERTIFICATE_AUTHORITY]"),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(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.PollOnceUndeleteCertificateAuthorityAsync(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;
}
UndeleteCertificateAuthorityAsync(string, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UndeleteCertificateAuthorityAsync(string name, CallSettings callSettings = null)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(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.PollOnceUndeleteCertificateAuthorityAsync(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;
}
UndeleteCertificateAuthorityAsync(string, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UndeleteCertificateAuthorityAsync(string name, CancellationToken cancellationToken)
Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name for this
[CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
in the format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/caPools/[CA_POOL]/certificateAuthorities/[CERTIFICATE_AUTHORITY]";
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UndeleteCertificateAuthorityAsync(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.PollOnceUndeleteCertificateAuthorityAsync(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;
}
UpdateCaPool(CaPool, FieldMask, CallSettings)
public virtual Operation<CaPool, OperationMetadata> UpdateCaPool(CaPool caPool, FieldMask updateMask, CallSettings callSettings = null)
Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | CaPool Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CaPool caPool = new CaPool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCaPool(caPool, updateMask);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
UpdateCaPool(UpdateCaPoolRequest, CallSettings)
public virtual Operation<CaPool, OperationMetadata> UpdateCaPool(UpdateCaPoolRequest request, CallSettings callSettings = null)
Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | UpdateCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCaPoolOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCaPoolRequest request = new UpdateCaPoolRequest
{
CaPool = new CaPool(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCaPool(request);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCaPool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
UpdateCaPoolAsync(CaPool, FieldMask, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> UpdateCaPoolAsync(CaPool caPool, FieldMask updateMask, CallSettings callSettings = null)
Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | CaPool Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPool caPool = new CaPool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(caPool, updateMask);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
UpdateCaPoolAsync(CaPool, FieldMask, CancellationToken)
public virtual Task<Operation<CaPool, OperationMetadata>> UpdateCaPoolAsync(CaPool caPool, FieldMask updateMask, CancellationToken cancellationToken)
Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
caPool | CaPool Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CaPool caPool = new CaPool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(caPool, updateMask);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
UpdateCaPoolAsync(UpdateCaPoolRequest, CallSettings)
public virtual Task<Operation<CaPool, OperationMetadata>> UpdateCaPoolAsync(UpdateCaPoolRequest request, CallSettings callSettings = null)
Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | UpdateCaPoolRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCaPoolRequest request = new UpdateCaPoolRequest
{
CaPool = new CaPool(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
UpdateCaPoolAsync(UpdateCaPoolRequest, CancellationToken)
public virtual Task<Operation<CaPool, OperationMetadata>> UpdateCaPoolAsync(UpdateCaPoolRequest request, CancellationToken cancellationToken)
Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
Parameters | |
---|---|
Name | Description |
request | UpdateCaPoolRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCaPoolOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCaPoolRequest request = new UpdateCaPoolRequest
{
CaPool = new CaPool(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CaPool, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCaPoolAsync(request);
// Poll until the returned long-running operation is complete
Operation<CaPool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CaPool result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CaPool, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCaPoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CaPool retrievedResult = retrievedResponse.Result;
}
UpdateCertificate(Certificate, FieldMask, CallSettings)
public virtual Certificate UpdateCertificate(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)
Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
Parameters | |
---|---|
Name | Description |
certificate | Certificate Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = certificateAuthorityServiceClient.UpdateCertificate(certificate, updateMask);
UpdateCertificate(UpdateCertificateRequest, CallSettings)
public virtual Certificate UpdateCertificate(UpdateCertificateRequest request, CallSettings callSettings = null)
Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
Certificate = new Certificate(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Certificate response = certificateAuthorityServiceClient.UpdateCertificate(request);
UpdateCertificateAsync(Certificate, FieldMask, CallSettings)
public virtual Task<Certificate> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)
Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
Parameters | |
---|---|
Name | Description |
certificate | Certificate Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask);
UpdateCertificateAsync(Certificate, FieldMask, CancellationToken)
public virtual Task<Certificate> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CancellationToken cancellationToken)
Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
Parameters | |
---|---|
Name | Description |
certificate | Certificate Required. [Certificate][google.cloud.security.privateca.v1.Certificate] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(certificate, updateMask);
UpdateCertificateAsync(UpdateCertificateRequest, CallSettings)
public virtual Task<Certificate> UpdateCertificateAsync(UpdateCertificateRequest request, CallSettings callSettings = null)
Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
Certificate = new Certificate(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request);
UpdateCertificateAsync(UpdateCertificateRequest, CancellationToken)
public virtual Task<Certificate> UpdateCertificateAsync(UpdateCertificateRequest request, CancellationToken cancellationToken)
Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCertificate | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
Certificate = new Certificate(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Certificate response = await certificateAuthorityServiceClient.UpdateCertificateAsync(request);
UpdateCertificateAuthority(CertificateAuthority, FieldMask, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> UpdateCertificateAuthority(CertificateAuthority certificateAuthority, FieldMask updateMask, CallSettings callSettings = null)
Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
certificateAuthority | CertificateAuthority Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateAuthority certificateAuthority = new CertificateAuthority();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateAuthority(certificateAuthority, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
UpdateCertificateAuthority(UpdateCertificateAuthorityRequest, CallSettings)
public virtual Operation<CertificateAuthority, OperationMetadata> UpdateCertificateAuthority(UpdateCertificateAuthorityRequest request, CallSettings callSettings = null)
Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateAuthorityOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest
{
CertificateAuthority = new CertificateAuthority(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateAuthority(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthority(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
UpdateCertificateAuthorityAsync(CertificateAuthority, FieldMask, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, FieldMask updateMask, CallSettings callSettings = null)
Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
certificateAuthority | CertificateAuthority Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthority certificateAuthority = new CertificateAuthority();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(certificateAuthority, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
UpdateCertificateAuthorityAsync(CertificateAuthority, FieldMask, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(CertificateAuthority certificateAuthority, FieldMask updateMask, CancellationToken cancellationToken)
Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
certificateAuthority | CertificateAuthority Required. [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateAuthority certificateAuthority = new CertificateAuthority();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(certificateAuthority, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest, CallSettings)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, CallSettings callSettings = null)
Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest
{
CertificateAuthority = new CertificateAuthority(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest, CancellationToken)
public virtual Task<Operation<CertificateAuthority, OperationMetadata>> UpdateCertificateAuthorityAsync(UpdateCertificateAuthorityRequest request, CancellationToken cancellationToken)
Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateAuthorityRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateAuthorityOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateAuthorityRequest request = new UpdateCertificateAuthorityRequest
{
CertificateAuthority = new CertificateAuthority(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateAuthority, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateAuthorityAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateAuthority, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateAuthority result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateAuthority, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateAuthorityAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateAuthority retrievedResult = retrievedResponse.Result;
}
UpdateCertificateRevocationList(CertificateRevocationList, FieldMask, CallSettings)
public virtual Operation<CertificateRevocationList, OperationMetadata> UpdateCertificateRevocationList(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CallSettings callSettings = null)
Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
certificateRevocationList | CertificateRevocationList Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateRevocationListOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateRevocationList certificateRevocationList = new CertificateRevocationList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(certificateRevocationList, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateRevocationList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateRevocationList result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateRevocationList, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateRevocationList retrievedResult = retrievedResponse.Result;
}
UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest, CallSettings)
public virtual Operation<CertificateRevocationList, OperationMetadata> UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest request, CallSettings callSettings = null)
Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateRevocationListRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateRevocationListOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest
{
CertificateRevocationList = new CertificateRevocationList(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateRevocationList(request);
// Poll until the returned long-running operation is complete
Operation<CertificateRevocationList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateRevocationList result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateRevocationList, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateRevocationList retrievedResult = retrievedResponse.Result;
}
UpdateCertificateRevocationListAsync(CertificateRevocationList, FieldMask, CallSettings)
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CallSettings callSettings = null)
Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
certificateRevocationList | CertificateRevocationList Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateRevocationListOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationList certificateRevocationList = new CertificateRevocationList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateRevocationList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateRevocationList result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateRevocationList, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateRevocationList retrievedResult = retrievedResponse.Result;
}
UpdateCertificateRevocationListAsync(CertificateRevocationList, FieldMask, CancellationToken)
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(CertificateRevocationList certificateRevocationList, FieldMask updateMask, CancellationToken cancellationToken)
Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
certificateRevocationList | CertificateRevocationList Required. [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateRevocationListOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateRevocationList certificateRevocationList = new CertificateRevocationList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(certificateRevocationList, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateRevocationList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateRevocationList result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateRevocationList, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateRevocationList retrievedResult = retrievedResponse.Result;
}
UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest, CallSettings)
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, CallSettings callSettings = null)
Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateRevocationListRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateRevocationListOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest
{
CertificateRevocationList = new CertificateRevocationList(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateRevocationList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateRevocationList result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateRevocationList, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateRevocationList retrievedResult = retrievedResponse.Result;
}
UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest, CancellationToken)
public virtual Task<Operation<CertificateRevocationList, OperationMetadata>> UpdateCertificateRevocationListAsync(UpdateCertificateRevocationListRequest request, CancellationToken cancellationToken)
Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateRevocationListRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateRevocationListOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRevocationListRequest request = new UpdateCertificateRevocationListRequest
{
CertificateRevocationList = new CertificateRevocationList(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateRevocationList, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateRevocationListAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateRevocationList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateRevocationList result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateRevocationList, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateRevocationListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateRevocationList retrievedResult = retrievedResponse.Result;
}
UpdateCertificateTemplate(CertificateTemplate, FieldMask, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> UpdateCertificateTemplate(CertificateTemplate certificateTemplate, FieldMask updateMask, CallSettings callSettings = null)
Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
certificateTemplate | CertificateTemplate Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
CertificateTemplate certificateTemplate = new CertificateTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateTemplate(certificateTemplate, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
UpdateCertificateTemplate(UpdateCertificateTemplateRequest, CallSettings)
public virtual Operation<CertificateTemplate, OperationMetadata> UpdateCertificateTemplate(UpdateCertificateTemplateRequest request, CallSettings callSettings = null)
Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationCertificateTemplateOperationMetadata | The RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = CertificateAuthorityServiceClient.Create();
// Initialize request argument(s)
UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest
{
CertificateTemplate = new CertificateTemplate(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = certificateAuthorityServiceClient.UpdateCertificateTemplate(request);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
UpdateCertificateTemplateAsync(CertificateTemplate, FieldMask, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> UpdateCertificateTemplateAsync(CertificateTemplate certificateTemplate, FieldMask updateMask, CallSettings callSettings = null)
Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
certificateTemplate | CertificateTemplate Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplate certificateTemplate = new CertificateTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(certificateTemplate, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
UpdateCertificateTemplateAsync(CertificateTemplate, FieldMask, CancellationToken)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> UpdateCertificateTemplateAsync(CertificateTemplate certificateTemplate, FieldMask updateMask, CancellationToken cancellationToken)
Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
certificateTemplate | CertificateTemplate Required. [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] with updated values. |
updateMask | FieldMask Required. A list of fields to be updated in this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
CertificateTemplate certificateTemplate = new CertificateTemplate();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(certificateTemplate, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest, CallSettings)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest request, CallSettings callSettings = null)
Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateTemplateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest
{
CertificateTemplate = new CertificateTemplate(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}
UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest, CancellationToken)
public virtual Task<Operation<CertificateTemplate, OperationMetadata>> UpdateCertificateTemplateAsync(UpdateCertificateTemplateRequest request, CancellationToken cancellationToken)
Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateTemplateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationCertificateTemplateOperationMetadata | A Task containing the RPC response. |
// Create client
CertificateAuthorityServiceClient certificateAuthorityServiceClient = await CertificateAuthorityServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateTemplateRequest request = new UpdateCertificateTemplateRequest
{
CertificateTemplate = new CertificateTemplate(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<CertificateTemplate, OperationMetadata> response = await certificateAuthorityServiceClient.UpdateCertificateTemplateAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateTemplate, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CertificateTemplate result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CertificateTemplate, OperationMetadata> retrievedResponse = await certificateAuthorityServiceClient.PollOnceUpdateCertificateTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
CertificateTemplate retrievedResult = retrievedResponse.Result;
}