Certificate Manager v1 API - Class CertificateManagerClient (2.3.0)

public abstract class CertificateManagerClient

Reference documentation and code samples for the Certificate Manager v1 API class CertificateManagerClient.

CertificateManager client wrapper, for convenient use.

Inheritance

object > CertificateManagerClient

Namespace

GoogleCloudGoogle.Cloud.CertificateManagerV1

Assembly

Google.Cloud.CertificateManager.V1.dll

Remarks

API Overview

Certificates Manager API allows customers to see and manage all their TLS certificates.

Certificates Manager API service provides methods to manage certificates, group them into collections, and create serving configuration that can be easily applied to other Cloud resources e.g. Target Proxies.

Data Model

The Certificates Manager service exposes the following resources:

  • Certificate that describes a single TLS certificate.
  • CertificateMap that describes a collection of certificates that can be attached to a target resource.
  • CertificateMapEntry that describes a single configuration entry that consists of a SNI and a group of certificates. It's a subresource of CertificateMap.

Certificate, CertificateMap and CertificateMapEntry IDs have to fully match the regexp [a-z0-9-]{1,63}. In other words,

  • only lower case letters, digits, and hyphen are allowed
  • length of the resource ID has to be in [1,63] range.

Provides methods to manage Cloud Certificate Manager entities.

Properties

CreateCertificateIssuanceConfigOperationsClient

public virtual OperationsClient CreateCertificateIssuanceConfigOperationsClient { get; }

The long-running operations client for CreateCertificateIssuanceConfig.

Property Value
TypeDescription
OperationsClient

CreateCertificateMapEntryOperationsClient

public virtual OperationsClient CreateCertificateMapEntryOperationsClient { get; }

The long-running operations client for CreateCertificateMapEntry.

Property Value
TypeDescription
OperationsClient

CreateCertificateMapOperationsClient

public virtual OperationsClient CreateCertificateMapOperationsClient { get; }

The long-running operations client for CreateCertificateMap.

Property Value
TypeDescription
OperationsClient

CreateCertificateOperationsClient

public virtual OperationsClient CreateCertificateOperationsClient { get; }

The long-running operations client for CreateCertificate.

Property Value
TypeDescription
OperationsClient

CreateDnsAuthorizationOperationsClient

public virtual OperationsClient CreateDnsAuthorizationOperationsClient { get; }

The long-running operations client for CreateDnsAuthorization.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default CertificateManager scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default CertificateManager scopes are:

DeleteCertificateIssuanceConfigOperationsClient

public virtual OperationsClient DeleteCertificateIssuanceConfigOperationsClient { get; }

The long-running operations client for DeleteCertificateIssuanceConfig.

Property Value
TypeDescription
OperationsClient

DeleteCertificateMapEntryOperationsClient

public virtual OperationsClient DeleteCertificateMapEntryOperationsClient { get; }

The long-running operations client for DeleteCertificateMapEntry.

Property Value
TypeDescription
OperationsClient

DeleteCertificateMapOperationsClient

public virtual OperationsClient DeleteCertificateMapOperationsClient { get; }

The long-running operations client for DeleteCertificateMap.

Property Value
TypeDescription
OperationsClient

DeleteCertificateOperationsClient

public virtual OperationsClient DeleteCertificateOperationsClient { get; }

The long-running operations client for DeleteCertificate.

Property Value
TypeDescription
OperationsClient

DeleteDnsAuthorizationOperationsClient

public virtual OperationsClient DeleteDnsAuthorizationOperationsClient { get; }

The long-running operations client for DeleteDnsAuthorization.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual CertificateManager.CertificateManagerClient GrpcClient { get; }

The underlying gRPC CertificateManager client

Property Value
TypeDescription
CertificateManagerCertificateManagerClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateCertificateMapEntryOperationsClient

public virtual OperationsClient UpdateCertificateMapEntryOperationsClient { get; }

The long-running operations client for UpdateCertificateMapEntry.

Property Value
TypeDescription
OperationsClient

UpdateCertificateMapOperationsClient

public virtual OperationsClient UpdateCertificateMapOperationsClient { get; }

The long-running operations client for UpdateCertificateMap.

Property Value
TypeDescription
OperationsClient

UpdateCertificateOperationsClient

public virtual OperationsClient UpdateCertificateOperationsClient { get; }

The long-running operations client for UpdateCertificate.

Property Value
TypeDescription
OperationsClient

UpdateDnsAuthorizationOperationsClient

public virtual OperationsClient UpdateDnsAuthorizationOperationsClient { get; }

The long-running operations client for UpdateDnsAuthorization.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static CertificateManagerClient Create()

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

Returns
TypeDescription
CertificateManagerClient

The created CertificateManagerClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskCertificateManagerClient

The task representing the created CertificateManagerClient.

CreateCertificate(LocationName, Certificate, string, CallSettings)

public virtual Operation<Certificate, OperationMetadata> CreateCertificate(LocationName parent, Certificate certificate, string certificateId, CallSettings callSettings = null)

Creates a new Certificate in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate. Must be in the format projects/*/locations/*.

certificateCertificate

Required. A definition of the certificate to create.

certificateIdstring

Required. A user-provided name of the certificate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Operation<Certificate, OperationMetadata> response = certificateManagerClient.CreateCertificate(parent, certificate, certificateId);

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

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

CreateCertificate(CreateCertificateRequest, CallSettings)

public virtual Operation<Certificate, OperationMetadata> CreateCertificate(CreateCertificateRequest request, CallSettings callSettings = null)

Creates a new Certificate in a given project and location.

Parameters
NameDescription
requestCreateCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateId = "",
    Certificate = new Certificate(),
};
// Make the request
Operation<Certificate, OperationMetadata> response = certificateManagerClient.CreateCertificate(request);

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

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

CreateCertificate(string, Certificate, string, CallSettings)

public virtual Operation<Certificate, OperationMetadata> CreateCertificate(string parent, Certificate certificate, string certificateId, CallSettings callSettings = null)

Creates a new Certificate in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate. Must be in the format projects/*/locations/*.

certificateCertificate

Required. A definition of the certificate to create.

certificateIdstring

Required. A user-provided name of the certificate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Operation<Certificate, OperationMetadata> response = certificateManagerClient.CreateCertificate(parent, certificate, certificateId);

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

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

CreateCertificateAsync(LocationName, Certificate, string, CallSettings)

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

Creates a new Certificate in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate. Must be in the format projects/*/locations/*.

certificateCertificate

Required. A definition of the certificate to create.

certificateIdstring

Required. A user-provided name of the certificate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.CreateCertificateAsync(parent, certificate, certificateId);

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

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

CreateCertificateAsync(LocationName, Certificate, string, CancellationToken)

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

Creates a new Certificate in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate. Must be in the format projects/*/locations/*.

certificateCertificate

Required. A definition of the certificate to create.

certificateIdstring

Required. A user-provided name of the certificate.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.CreateCertificateAsync(parent, certificate, certificateId);

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

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

CreateCertificateAsync(CreateCertificateRequest, CallSettings)

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

Creates a new Certificate in a given project and location.

Parameters
NameDescription
requestCreateCertificateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateId = "",
    Certificate = new Certificate(),
};
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.CreateCertificateAsync(request);

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

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

CreateCertificateAsync(CreateCertificateRequest, CancellationToken)

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

Creates a new Certificate in a given project and location.

Parameters
NameDescription
requestCreateCertificateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateRequest request = new CreateCertificateRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateId = "",
    Certificate = new Certificate(),
};
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.CreateCertificateAsync(request);

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

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

CreateCertificateAsync(string, Certificate, string, CallSettings)

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

Creates a new Certificate in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate. Must be in the format projects/*/locations/*.

certificateCertificate

Required. A definition of the certificate to create.

certificateIdstring

Required. A user-provided name of the certificate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.CreateCertificateAsync(parent, certificate, certificateId);

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

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

CreateCertificateAsync(string, Certificate, string, CancellationToken)

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

Creates a new Certificate in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate. Must be in the format projects/*/locations/*.

certificateCertificate

Required. A definition of the certificate to create.

certificateIdstring

Required. A user-provided name of the certificate.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Certificate certificate = new Certificate();
string certificateId = "";
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.CreateCertificateAsync(parent, certificate, certificateId);

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

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

CreateCertificateIssuanceConfig(LocationName, CertificateIssuanceConfig, string, CallSettings)

public virtual Operation<CertificateIssuanceConfig, OperationMetadata> CreateCertificateIssuanceConfig(LocationName parent, CertificateIssuanceConfig certificateIssuanceConfig, string certificateIssuanceConfigId, CallSettings callSettings = null)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate issuance config. Must be in the format projects/*/locations/*.

certificateIssuanceConfigCertificateIssuanceConfig

Required. A definition of the certificate issuance config to create.

certificateIssuanceConfigIdstring

Required. A user-provided name of the certificate config.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateIssuanceConfigOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateIssuanceConfig certificateIssuanceConfig = new CertificateIssuanceConfig();
string certificateIssuanceConfigId = "";
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = certificateManagerClient.CreateCertificateIssuanceConfig(parent, certificateIssuanceConfig, certificateIssuanceConfigId);

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

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

CreateCertificateIssuanceConfig(CreateCertificateIssuanceConfigRequest, CallSettings)

public virtual Operation<CertificateIssuanceConfig, OperationMetadata> CreateCertificateIssuanceConfig(CreateCertificateIssuanceConfigRequest request, CallSettings callSettings = null)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
requestCreateCertificateIssuanceConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateIssuanceConfigOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CreateCertificateIssuanceConfigRequest request = new CreateCertificateIssuanceConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateIssuanceConfigId = "",
    CertificateIssuanceConfig = new CertificateIssuanceConfig(),
};
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = certificateManagerClient.CreateCertificateIssuanceConfig(request);

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

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

CreateCertificateIssuanceConfig(string, CertificateIssuanceConfig, string, CallSettings)

public virtual Operation<CertificateIssuanceConfig, OperationMetadata> CreateCertificateIssuanceConfig(string parent, CertificateIssuanceConfig certificateIssuanceConfig, string certificateIssuanceConfigId, CallSettings callSettings = null)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate issuance config. Must be in the format projects/*/locations/*.

certificateIssuanceConfigCertificateIssuanceConfig

Required. A definition of the certificate issuance config to create.

certificateIssuanceConfigIdstring

Required. A user-provided name of the certificate config.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateIssuanceConfigOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateIssuanceConfig certificateIssuanceConfig = new CertificateIssuanceConfig();
string certificateIssuanceConfigId = "";
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = certificateManagerClient.CreateCertificateIssuanceConfig(parent, certificateIssuanceConfig, certificateIssuanceConfigId);

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

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

CreateCertificateIssuanceConfigAsync(LocationName, CertificateIssuanceConfig, string, CallSettings)

public virtual Task<Operation<CertificateIssuanceConfig, OperationMetadata>> CreateCertificateIssuanceConfigAsync(LocationName parent, CertificateIssuanceConfig certificateIssuanceConfig, string certificateIssuanceConfigId, CallSettings callSettings = null)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate issuance config. Must be in the format projects/*/locations/*.

certificateIssuanceConfigCertificateIssuanceConfig

Required. A definition of the certificate issuance config to create.

certificateIssuanceConfigIdstring

Required. A user-provided name of the certificate config.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateIssuanceConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateIssuanceConfig certificateIssuanceConfig = new CertificateIssuanceConfig();
string certificateIssuanceConfigId = "";
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = await certificateManagerClient.CreateCertificateIssuanceConfigAsync(parent, certificateIssuanceConfig, certificateIssuanceConfigId);

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

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

CreateCertificateIssuanceConfigAsync(LocationName, CertificateIssuanceConfig, string, CancellationToken)

public virtual Task<Operation<CertificateIssuanceConfig, OperationMetadata>> CreateCertificateIssuanceConfigAsync(LocationName parent, CertificateIssuanceConfig certificateIssuanceConfig, string certificateIssuanceConfigId, CancellationToken cancellationToken)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate issuance config. Must be in the format projects/*/locations/*.

certificateIssuanceConfigCertificateIssuanceConfig

Required. A definition of the certificate issuance config to create.

certificateIssuanceConfigIdstring

Required. A user-provided name of the certificate config.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateIssuanceConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateIssuanceConfig certificateIssuanceConfig = new CertificateIssuanceConfig();
string certificateIssuanceConfigId = "";
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = await certificateManagerClient.CreateCertificateIssuanceConfigAsync(parent, certificateIssuanceConfig, certificateIssuanceConfigId);

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

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

CreateCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest, CallSettings)

public virtual Task<Operation<CertificateIssuanceConfig, OperationMetadata>> CreateCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest request, CallSettings callSettings = null)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
requestCreateCertificateIssuanceConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateIssuanceConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateIssuanceConfigRequest request = new CreateCertificateIssuanceConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateIssuanceConfigId = "",
    CertificateIssuanceConfig = new CertificateIssuanceConfig(),
};
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = await certificateManagerClient.CreateCertificateIssuanceConfigAsync(request);

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

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

CreateCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest, CancellationToken)

public virtual Task<Operation<CertificateIssuanceConfig, OperationMetadata>> CreateCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest request, CancellationToken cancellationToken)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
requestCreateCertificateIssuanceConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateIssuanceConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateIssuanceConfigRequest request = new CreateCertificateIssuanceConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateIssuanceConfigId = "",
    CertificateIssuanceConfig = new CertificateIssuanceConfig(),
};
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = await certificateManagerClient.CreateCertificateIssuanceConfigAsync(request);

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

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

CreateCertificateIssuanceConfigAsync(string, CertificateIssuanceConfig, string, CallSettings)

public virtual Task<Operation<CertificateIssuanceConfig, OperationMetadata>> CreateCertificateIssuanceConfigAsync(string parent, CertificateIssuanceConfig certificateIssuanceConfig, string certificateIssuanceConfigId, CallSettings callSettings = null)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate issuance config. Must be in the format projects/*/locations/*.

certificateIssuanceConfigCertificateIssuanceConfig

Required. A definition of the certificate issuance config to create.

certificateIssuanceConfigIdstring

Required. A user-provided name of the certificate config.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateIssuanceConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateIssuanceConfig certificateIssuanceConfig = new CertificateIssuanceConfig();
string certificateIssuanceConfigId = "";
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = await certificateManagerClient.CreateCertificateIssuanceConfigAsync(parent, certificateIssuanceConfig, certificateIssuanceConfigId);

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

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

CreateCertificateIssuanceConfigAsync(string, CertificateIssuanceConfig, string, CancellationToken)

public virtual Task<Operation<CertificateIssuanceConfig, OperationMetadata>> CreateCertificateIssuanceConfigAsync(string parent, CertificateIssuanceConfig certificateIssuanceConfig, string certificateIssuanceConfigId, CancellationToken cancellationToken)

Creates a new CertificateIssuanceConfig in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate issuance config. Must be in the format projects/*/locations/*.

certificateIssuanceConfigCertificateIssuanceConfig

Required. A definition of the certificate issuance config to create.

certificateIssuanceConfigIdstring

Required. A user-provided name of the certificate config.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateIssuanceConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateIssuanceConfig certificateIssuanceConfig = new CertificateIssuanceConfig();
string certificateIssuanceConfigId = "";
// Make the request
Operation<CertificateIssuanceConfig, OperationMetadata> response = await certificateManagerClient.CreateCertificateIssuanceConfigAsync(parent, certificateIssuanceConfig, certificateIssuanceConfigId);

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

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

CreateCertificateMap(LocationName, CertificateMap, string, CallSettings)

public virtual Operation<CertificateMap, OperationMetadata> CreateCertificateMap(LocationName parent, CertificateMap certificateMap, string certificateMapId, CallSettings callSettings = null)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate map. Must be in the format projects/*/locations/*.

certificateMapCertificateMap

Required. A definition of the certificate map to create.

certificateMapIdstring

Required. A user-provided name of the certificate map.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateMapOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateMap certificateMap = new CertificateMap();
string certificateMapId = "";
// Make the request
Operation<CertificateMap, OperationMetadata> response = certificateManagerClient.CreateCertificateMap(parent, certificateMap, certificateMapId);

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

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

CreateCertificateMap(CreateCertificateMapRequest, CallSettings)

public virtual Operation<CertificateMap, OperationMetadata> CreateCertificateMap(CreateCertificateMapRequest request, CallSettings callSettings = null)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
requestCreateCertificateMapRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateMapOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CreateCertificateMapRequest request = new CreateCertificateMapRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateMapId = "",
    CertificateMap = new CertificateMap(),
};
// Make the request
Operation<CertificateMap, OperationMetadata> response = certificateManagerClient.CreateCertificateMap(request);

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

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

CreateCertificateMap(string, CertificateMap, string, CallSettings)

public virtual Operation<CertificateMap, OperationMetadata> CreateCertificateMap(string parent, CertificateMap certificateMap, string certificateMapId, CallSettings callSettings = null)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate map. Must be in the format projects/*/locations/*.

certificateMapCertificateMap

Required. A definition of the certificate map to create.

certificateMapIdstring

Required. A user-provided name of the certificate map.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateMapOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateMap certificateMap = new CertificateMap();
string certificateMapId = "";
// Make the request
Operation<CertificateMap, OperationMetadata> response = certificateManagerClient.CreateCertificateMap(parent, certificateMap, certificateMapId);

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

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

CreateCertificateMapAsync(LocationName, CertificateMap, string, CallSettings)

public virtual Task<Operation<CertificateMap, OperationMetadata>> CreateCertificateMapAsync(LocationName parent, CertificateMap certificateMap, string certificateMapId, CallSettings callSettings = null)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate map. Must be in the format projects/*/locations/*.

certificateMapCertificateMap

Required. A definition of the certificate map to create.

certificateMapIdstring

Required. A user-provided name of the certificate map.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateMapOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateMap certificateMap = new CertificateMap();
string certificateMapId = "";
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapAsync(parent, certificateMap, certificateMapId);

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

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

CreateCertificateMapAsync(LocationName, CertificateMap, string, CancellationToken)

public virtual Task<Operation<CertificateMap, OperationMetadata>> CreateCertificateMapAsync(LocationName parent, CertificateMap certificateMap, string certificateMapId, CancellationToken cancellationToken)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
parentLocationName

Required. The parent resource of the certificate map. Must be in the format projects/*/locations/*.

certificateMapCertificateMap

Required. A definition of the certificate map to create.

certificateMapIdstring

Required. A user-provided name of the certificate map.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateMapOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
CertificateMap certificateMap = new CertificateMap();
string certificateMapId = "";
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapAsync(parent, certificateMap, certificateMapId);

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

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

CreateCertificateMapAsync(CreateCertificateMapRequest, CallSettings)

public virtual Task<Operation<CertificateMap, OperationMetadata>> CreateCertificateMapAsync(CreateCertificateMapRequest request, CallSettings callSettings = null)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
requestCreateCertificateMapRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateMapOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateMapRequest request = new CreateCertificateMapRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateMapId = "",
    CertificateMap = new CertificateMap(),
};
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapAsync(request);

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

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

CreateCertificateMapAsync(CreateCertificateMapRequest, CancellationToken)

public virtual Task<Operation<CertificateMap, OperationMetadata>> CreateCertificateMapAsync(CreateCertificateMapRequest request, CancellationToken cancellationToken)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
requestCreateCertificateMapRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateMapOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateCertificateMapRequest request = new CreateCertificateMapRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    CertificateMapId = "",
    CertificateMap = new CertificateMap(),
};
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapAsync(request);

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

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

CreateCertificateMapAsync(string, CertificateMap, string, CallSettings)

public virtual Task<Operation<CertificateMap, OperationMetadata>> CreateCertificateMapAsync(string parent, CertificateMap certificateMap, string certificateMapId, CallSettings callSettings = null)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate map. Must be in the format projects/*/locations/*.

certificateMapCertificateMap

Required. A definition of the certificate map to create.

certificateMapIdstring

Required. A user-provided name of the certificate map.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationCertificateMapOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateMap certificateMap = new CertificateMap();
string certificateMapId = "";
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapAsync(parent, certificateMap, certificateMapId);

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

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

CreateCertificateMapAsync(string, CertificateMap, string, CancellationToken)

public virtual Task<Operation<CertificateMap, OperationMetadata>> CreateCertificateMapAsync(string parent, CertificateMap certificateMap, string certificateMapId, CancellationToken cancellationToken)

Creates a new CertificateMap in a given project and location.

Parameters
NameDescription
parentstring

Required. The parent resource of the certificate map. Must be in the format projects/*/locations/*.

certificateMapCertificateMap

Required. A definition of the certificate map to create.

certificateMapIdstring

Required. A user-provided name of the certificate map.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationCertificateMapOperationMetadata

A Task containing the RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
CertificateMap certificateMap = new CertificateMap();
string certificateMapId = "";
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapAsync(parent, certificateMap, certificateMapId);

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

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

CreateCertificateMapEntry(CertificateMapName, CertificateMapEntry, string, CallSettings)

public virtual Operation<CertificateMapEntry, OperationMetadata> CreateCertificateMapEntry(CertificateMapName parent, CertificateMapEntry certificateMapEntry, string certificateMapEntryId, CallSettings callSettings = null)

Creates a new CertificateMapEntry in a given project and location.

Parameters
NameDescription
parentCertificateMapName

Required. The parent resource of the certificate map entry. Must be in the format projects/*/locations/*/certificateMaps/*.

certificateMapEntryCertificateMapEntry

Required. A definition of the certificate map entry to create.

certificateMapEntryIdstring

Required. A user-provided name of the certificate map entry.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateMapEntryOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapName parent = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
CertificateMapEntry certificateMapEntry = new CertificateMapEntry();
string certificateMapEntryId = "";
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = certificateManagerClient.CreateCertificateMapEntry(parent, certificateMapEntry, certificateMapEntryId);

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

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

CreateCertificateMapEntry(CreateCertificateMapEntryRequest, CallSettings)

public virtual Operation<CertificateMapEntry, OperationMetadata> CreateCertificateMapEntry(CreateCertificateMapEntryRequest request, CallSettings callSettings = null)

Creates a new CertificateMapEntry in a given project and location.

Parameters
NameDescription
requestCreateCertificateMapEntryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationCertificateMapEntryOperationMetadata

The RPC response.

Example
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CreateCertificateMapEntryRequest request = new CreateCertificateMapEntryRequest
{
    ParentAsCertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
    CertificateMapEntryId = "",
    CertificateMapEntry = new CertificateMapEntry(),
};
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = certificateManagerClient.CreateCertificateMapEntry(request);

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

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

CreateCertificateMapEntry(string, CertificateMapEntry, string, CallSettings)