public abstract class CertificateManagerClient
CertificateManager client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.CertificateManager.V1Assembly
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
which describes a single TLS certificate.CertificateMap
which describes a collection of certificates that can be attached to a target resource.CertificateMapEntry
which 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 match "^[a-z0-9-]{1,63}$" regexp, which means that
- 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
CreateCertificateMapEntryOperationsClient
public virtual OperationsClient CreateCertificateMapEntryOperationsClient { get; }
The long-running operations client for CreateCertificateMapEntry
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCertificateMapOperationsClient
public virtual OperationsClient CreateCertificateMapOperationsClient { get; }
The long-running operations client for CreateCertificateMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateCertificateOperationsClient
public virtual OperationsClient CreateCertificateOperationsClient { get; }
The long-running operations client for CreateCertificate
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateDnsAuthorizationOperationsClient
public virtual OperationsClient CreateDnsAuthorizationOperationsClient { get; }
The long-running operations client for CreateDnsAuthorization
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default CertificateManager scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default CertificateManager scopes are:
DeleteCertificateMapEntryOperationsClient
public virtual OperationsClient DeleteCertificateMapEntryOperationsClient { get; }
The long-running operations client for DeleteCertificateMapEntry
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteCertificateMapOperationsClient
public virtual OperationsClient DeleteCertificateMapOperationsClient { get; }
The long-running operations client for DeleteCertificateMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteCertificateOperationsClient
public virtual OperationsClient DeleteCertificateOperationsClient { get; }
The long-running operations client for DeleteCertificate
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteDnsAuthorizationOperationsClient
public virtual OperationsClient DeleteDnsAuthorizationOperationsClient { get; }
The long-running operations client for DeleteDnsAuthorization
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual CertificateManager.CertificateManagerClient GrpcClient { get; }
The underlying gRPC CertificateManager client
Property Value | |
---|---|
Type | Description |
CertificateManager.CertificateManagerClient |
UpdateCertificateMapEntryOperationsClient
public virtual OperationsClient UpdateCertificateMapEntryOperationsClient { get; }
The long-running operations client for UpdateCertificateMapEntry
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateCertificateMapOperationsClient
public virtual OperationsClient UpdateCertificateMapOperationsClient { get; }
The long-running operations client for UpdateCertificateMap
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateCertificateOperationsClient
public virtual OperationsClient UpdateCertificateOperationsClient { get; }
The long-running operations client for UpdateCertificate
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateDnsAuthorizationOperationsClient
public virtual OperationsClient UpdateDnsAuthorizationOperationsClient { get; }
The long-running operations client for UpdateDnsAuthorization
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CertificateManagerClient | The created CertificateManagerClient. |
CreateAsync(CancellationToken)
public static Task<CertificateManagerClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a CertificateManagerClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CertificateManagerClientBuilder .
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<CertificateManagerClient> | 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the certificate. Must be in the format
|
certificate | Certificate Required. A definition of the certificate to create. |
certificateId | String Required. A user-provided name of the certificate. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Certificate, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
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 |
Operation<Certificate, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate. Must be in the format
|
certificate | Certificate Required. A definition of the certificate to create. |
certificateId | String Required. A user-provided name of the certificate. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Certificate, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the certificate. Must be in the format
|
certificate | Certificate Required. A definition of the certificate to create. |
certificateId | String Required. A user-provided name of the certificate. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the certificate. Must be in the format
|
certificate | Certificate Required. A definition of the certificate to create. |
certificateId | String Required. A user-provided name of the certificate. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate. Must be in the format
|
certificate | Certificate Required. A definition of the certificate to create. |
certificateId | String Required. A user-provided name of the certificate. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate. Must be in the format
|
certificate | Certificate Required. A definition of the certificate to create. |
certificateId | String Required. A user-provided name of the certificate. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// 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;
}
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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the certificate map. Must be in the format
|
certificateMap | CertificateMap Required. A definition of the certificate map to create. |
certificateMapId | String Required. A user-provided name of the certificate map. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMap, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateCertificateMapRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMap, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate map. Must be in the format
|
certificateMap | CertificateMap Required. A definition of the certificate map to create. |
certificateMapId | String Required. A user-provided name of the certificate map. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMap, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the certificate map. Must be in the format
|
certificateMap | CertificateMap Required. A definition of the certificate map to create. |
certificateMapId | String Required. A user-provided name of the certificate map. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the certificate map. Must be in the format
|
certificateMap | CertificateMap Required. A definition of the certificate map to create. |
certificateMapId | String Required. A user-provided name of the certificate map. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateCertificateMapRequest 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 |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateCertificateMapRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate map. Must be in the format
|
certificateMap | CertificateMap Required. A definition of the certificate map to create. |
certificateMapId | String Required. A user-provided name of the certificate map. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate map. Must be in the format
|
certificateMap | CertificateMap Required. A definition of the certificate map to create. |
certificateMapId | String Required. A user-provided name of the certificate map. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | CertificateMapName Required. The parent resource of the certificate map entry. Must be in the
format |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create. |
certificateMapEntryId | String Required. A user-provided name of the certificate map entry. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMapEntry, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMapEntry, OperationMetadata> | The RPC response. |
// 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)
public virtual Operation<CertificateMapEntry, OperationMetadata> CreateCertificateMapEntry(string parent, CertificateMapEntry certificateMapEntry, string certificateMapEntryId, CallSettings callSettings = null)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate map entry. Must be in the
format |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create. |
certificateMapEntryId | String Required. A user-provided name of the certificate map entry. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMapEntry, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[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;
}
CreateCertificateMapEntryAsync(CertificateMapName, CertificateMapEntry, String, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> CreateCertificateMapEntryAsync(CertificateMapName parent, CertificateMapEntry certificateMapEntry, string certificateMapEntryId, CallSettings callSettings = null)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | CertificateMapName Required. The parent resource of the certificate map entry. Must be in the
format |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create. |
certificateMapEntryId | String Required. A user-provided name of the certificate map entry. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// 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 = await certificateManagerClient.CreateCertificateMapEntryAsync(parent, certificateMapEntry, certificateMapEntryId);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceCreateCertificateMapEntryAsync(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;
}
CreateCertificateMapEntryAsync(CertificateMapName, CertificateMapEntry, String, CancellationToken)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> CreateCertificateMapEntryAsync(CertificateMapName parent, CertificateMapEntry certificateMapEntry, string certificateMapEntryId, CancellationToken cancellationToken)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | CertificateMapName Required. The parent resource of the certificate map entry. Must be in the
format |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create. |
certificateMapEntryId | String Required. A user-provided name of the certificate map entry. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// 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 = await certificateManagerClient.CreateCertificateMapEntryAsync(parent, certificateMapEntry, certificateMapEntryId);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceCreateCertificateMapEntryAsync(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;
}
CreateCertificateMapEntryAsync(CreateCertificateMapEntryRequest, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> CreateCertificateMapEntryAsync(CreateCertificateMapEntryRequest request, CallSettings callSettings = null)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateMapEntryRequest 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 |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// 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 = await certificateManagerClient.CreateCertificateMapEntryAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceCreateCertificateMapEntryAsync(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;
}
CreateCertificateMapEntryAsync(CreateCertificateMapEntryRequest, CancellationToken)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> CreateCertificateMapEntryAsync(CreateCertificateMapEntryRequest request, CancellationToken cancellationToken)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// 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 = await certificateManagerClient.CreateCertificateMapEntryAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceCreateCertificateMapEntryAsync(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;
}
CreateCertificateMapEntryAsync(String, CertificateMapEntry, String, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> CreateCertificateMapEntryAsync(string parent, CertificateMapEntry certificateMapEntry, string certificateMapEntryId, CallSettings callSettings = null)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate map entry. Must be in the
format |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create. |
certificateMapEntryId | String Required. A user-provided name of the certificate map entry. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
CertificateMapEntry certificateMapEntry = new CertificateMapEntry();
string certificateMapEntryId = "";
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapEntryAsync(parent, certificateMapEntry, certificateMapEntryId);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceCreateCertificateMapEntryAsync(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;
}
CreateCertificateMapEntryAsync(String, CertificateMapEntry, String, CancellationToken)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> CreateCertificateMapEntryAsync(string parent, CertificateMapEntry certificateMapEntry, string certificateMapEntryId, CancellationToken cancellationToken)
Creates a new CertificateMapEntry in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource of the certificate map entry. Must be in the
format |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create. |
certificateMapEntryId | String Required. A user-provided name of the certificate map entry. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
CertificateMapEntry certificateMapEntry = new CertificateMapEntry();
string certificateMapEntryId = "";
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = await certificateManagerClient.CreateCertificateMapEntryAsync(parent, certificateMapEntry, certificateMapEntryId);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceCreateCertificateMapEntryAsync(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;
}
CreateDnsAuthorization(LocationName, DnsAuthorization, String, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> CreateDnsAuthorization(LocationName parent, DnsAuthorization dnsAuthorization, string dnsAuthorizationId, CallSettings callSettings = null)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the dns authorization. Must be in the format
|
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to create. |
dnsAuthorizationId | String Required. A user-provided name of the dns authorization. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<DnsAuthorization, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DnsAuthorization dnsAuthorization = new DnsAuthorization();
string dnsAuthorizationId = "";
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = certificateManagerClient.CreateDnsAuthorization(parent, dnsAuthorization, dnsAuthorizationId);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = certificateManagerClient.PollOnceCreateDnsAuthorization(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorization(CreateDnsAuthorizationRequest, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> CreateDnsAuthorization(CreateDnsAuthorizationRequest request, CallSettings callSettings = null)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<DnsAuthorization, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CreateDnsAuthorizationRequest request = new CreateDnsAuthorizationRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DnsAuthorizationId = "",
DnsAuthorization = new DnsAuthorization(),
};
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = certificateManagerClient.CreateDnsAuthorization(request);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = certificateManagerClient.PollOnceCreateDnsAuthorization(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorization(String, DnsAuthorization, String, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> CreateDnsAuthorization(string parent, DnsAuthorization dnsAuthorization, string dnsAuthorizationId, CallSettings callSettings = null)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource of the dns authorization. Must be in the format
|
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to create. |
dnsAuthorizationId | String Required. A user-provided name of the dns authorization. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<DnsAuthorization, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DnsAuthorization dnsAuthorization = new DnsAuthorization();
string dnsAuthorizationId = "";
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = certificateManagerClient.CreateDnsAuthorization(parent, dnsAuthorization, dnsAuthorizationId);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = certificateManagerClient.PollOnceCreateDnsAuthorization(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorizationAsync(LocationName, DnsAuthorization, String, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> CreateDnsAuthorizationAsync(LocationName parent, DnsAuthorization dnsAuthorization, string dnsAuthorizationId, CallSettings callSettings = null)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the dns authorization. Must be in the format
|
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to create. |
dnsAuthorizationId | String Required. A user-provided name of the dns authorization. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DnsAuthorization dnsAuthorization = new DnsAuthorization();
string dnsAuthorizationId = "";
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.CreateDnsAuthorizationAsync(parent, dnsAuthorization, dnsAuthorizationId);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceCreateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorizationAsync(LocationName, DnsAuthorization, String, CancellationToken)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> CreateDnsAuthorizationAsync(LocationName parent, DnsAuthorization dnsAuthorization, string dnsAuthorizationId, CancellationToken cancellationToken)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource of the dns authorization. Must be in the format
|
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to create. |
dnsAuthorizationId | String Required. A user-provided name of the dns authorization. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DnsAuthorization dnsAuthorization = new DnsAuthorization();
string dnsAuthorizationId = "";
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.CreateDnsAuthorizationAsync(parent, dnsAuthorization, dnsAuthorizationId);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceCreateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorizationAsync(CreateDnsAuthorizationRequest, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> CreateDnsAuthorizationAsync(CreateDnsAuthorizationRequest request, CallSettings callSettings = null)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateDnsAuthorizationRequest 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 |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateDnsAuthorizationRequest request = new CreateDnsAuthorizationRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DnsAuthorizationId = "",
DnsAuthorization = new DnsAuthorization(),
};
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.CreateDnsAuthorizationAsync(request);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceCreateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorizationAsync(CreateDnsAuthorizationRequest, CancellationToken)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> CreateDnsAuthorizationAsync(CreateDnsAuthorizationRequest request, CancellationToken cancellationToken)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
request | CreateDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CreateDnsAuthorizationRequest request = new CreateDnsAuthorizationRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DnsAuthorizationId = "",
DnsAuthorization = new DnsAuthorization(),
};
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.CreateDnsAuthorizationAsync(request);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceCreateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorizationAsync(String, DnsAuthorization, String, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> CreateDnsAuthorizationAsync(string parent, DnsAuthorization dnsAuthorization, string dnsAuthorizationId, CallSettings callSettings = null)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource of the dns authorization. Must be in the format
|
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to create. |
dnsAuthorizationId | String Required. A user-provided name of the dns authorization. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DnsAuthorization dnsAuthorization = new DnsAuthorization();
string dnsAuthorizationId = "";
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.CreateDnsAuthorizationAsync(parent, dnsAuthorization, dnsAuthorizationId);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceCreateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
CreateDnsAuthorizationAsync(String, DnsAuthorization, String, CancellationToken)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> CreateDnsAuthorizationAsync(string parent, DnsAuthorization dnsAuthorization, string dnsAuthorizationId, CancellationToken cancellationToken)
Creates a new DnsAuthorization in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource of the dns authorization. Must be in the format
|
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to create. |
dnsAuthorizationId | String Required. A user-provided name of the dns authorization. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DnsAuthorization dnsAuthorization = new DnsAuthorization();
string dnsAuthorizationId = "";
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.CreateDnsAuthorizationAsync(parent, dnsAuthorization, dnsAuthorizationId);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceCreateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
DeleteCertificate(CertificateName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificate(CertificateName name, CallSettings callSettings = null)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. A name of the certificate to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificate(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 = certificateManagerClient.PollOnceDeleteCertificate(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;
}
DeleteCertificate(DeleteCertificateRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificate(DeleteCertificateRequest request, CallSettings callSettings = null)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DeleteCertificateRequest request = new DeleteCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificate(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 = certificateManagerClient.PollOnceDeleteCertificate(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;
}
DeleteCertificate(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificate(string name, CallSettings callSettings = null)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificates/[CERTIFICATE]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificate(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 = certificateManagerClient.PollOnceDeleteCertificate(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;
}
DeleteCertificateAsync(CertificateName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateAsync(CertificateName name, CallSettings callSettings = null)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. A name of the certificate to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateAsync(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 certificateManagerClient.PollOnceDeleteCertificateAsync(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;
}
DeleteCertificateAsync(CertificateName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateAsync(CertificateName name, CancellationToken cancellationToken)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. A name of the certificate to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateAsync(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 certificateManagerClient.PollOnceDeleteCertificateAsync(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;
}
DeleteCertificateAsync(DeleteCertificateRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateAsync(DeleteCertificateRequest request, CallSettings callSettings = null)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateRequest 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 |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateRequest request = new DeleteCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateAsync(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 certificateManagerClient.PollOnceDeleteCertificateAsync(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;
}
DeleteCertificateAsync(DeleteCertificateRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateAsync(DeleteCertificateRequest request, CancellationToken cancellationToken)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateRequest request = new DeleteCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateAsync(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 certificateManagerClient.PollOnceDeleteCertificateAsync(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;
}
DeleteCertificateAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateAsync(string name, CallSettings callSettings = null)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificates/[CERTIFICATE]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateAsync(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 certificateManagerClient.PollOnceDeleteCertificateAsync(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;
}
DeleteCertificateAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateAsync(string name, CancellationToken cancellationToken)
Deletes a single Certificate.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificates/[CERTIFICATE]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateAsync(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 certificateManagerClient.PollOnceDeleteCertificateAsync(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;
}
DeleteCertificateMap(CertificateMapName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateMap(CertificateMapName name, CallSettings callSettings = null)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
name | CertificateMapName Required. A name of the certificate map to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapName name = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificateMap(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 = certificateManagerClient.PollOnceDeleteCertificateMap(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;
}
DeleteCertificateMap(DeleteCertificateMapRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateMap(DeleteCertificateMapRequest request, CallSettings callSettings = null)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateMapRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DeleteCertificateMapRequest request = new DeleteCertificateMapRequest
{
CertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificateMap(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 = certificateManagerClient.PollOnceDeleteCertificateMap(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;
}
DeleteCertificateMap(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateMap(string name, CallSettings callSettings = null)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificateMap(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 = certificateManagerClient.PollOnceDeleteCertificateMap(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;
}
DeleteCertificateMapAsync(CertificateMapName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapAsync(CertificateMapName name, CallSettings callSettings = null)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
name | CertificateMapName Required. A name of the certificate map to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapName name = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapAsync(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;
}
DeleteCertificateMapAsync(CertificateMapName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapAsync(CertificateMapName name, CancellationToken cancellationToken)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
name | CertificateMapName Required. A name of the certificate map to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapName name = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapAsync(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;
}
DeleteCertificateMapAsync(DeleteCertificateMapRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapAsync(DeleteCertificateMapRequest request, CallSettings callSettings = null)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateMapRequest 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 |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateMapRequest request = new DeleteCertificateMapRequest
{
CertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapAsync(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;
}
DeleteCertificateMapAsync(DeleteCertificateMapRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapAsync(DeleteCertificateMapRequest request, CancellationToken cancellationToken)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateMapRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateMapRequest request = new DeleteCertificateMapRequest
{
CertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapAsync(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;
}
DeleteCertificateMapAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapAsync(string name, CallSettings callSettings = null)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapAsync(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;
}
DeleteCertificateMapAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapAsync(string name, CancellationToken cancellationToken)
Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapAsync(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;
}
DeleteCertificateMapEntry(CertificateMapEntryName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateMapEntry(CertificateMapEntryName name, CallSettings callSettings = null)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | CertificateMapEntryName Required. A name of the certificate map entry to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapEntryName name = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificateMapEntry(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 = certificateManagerClient.PollOnceDeleteCertificateMapEntry(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;
}
DeleteCertificateMapEntry(DeleteCertificateMapEntryRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateMapEntry(DeleteCertificateMapEntryRequest request, CallSettings callSettings = null)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DeleteCertificateMapEntryRequest request = new DeleteCertificateMapEntryRequest
{
CertificateMapEntryName = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificateMapEntry(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 = certificateManagerClient.PollOnceDeleteCertificateMapEntry(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;
}
DeleteCertificateMapEntry(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCertificateMapEntry(string name, CallSettings callSettings = null)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map entry to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]/certificateMapEntries/[CERTIFICATE_MAP_ENTRY]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteCertificateMapEntry(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 = certificateManagerClient.PollOnceDeleteCertificateMapEntry(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;
}
DeleteCertificateMapEntryAsync(CertificateMapEntryName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapEntryAsync(CertificateMapEntryName name, CallSettings callSettings = null)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | CertificateMapEntryName Required. A name of the certificate map entry to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapEntryName name = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapEntryAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapEntryAsync(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;
}
DeleteCertificateMapEntryAsync(CertificateMapEntryName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapEntryAsync(CertificateMapEntryName name, CancellationToken cancellationToken)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | CertificateMapEntryName Required. A name of the certificate map entry to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapEntryName name = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapEntryAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapEntryAsync(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;
}
DeleteCertificateMapEntryAsync(DeleteCertificateMapEntryRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapEntryAsync(DeleteCertificateMapEntryRequest request, CallSettings callSettings = null)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateMapEntryRequest 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 |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateMapEntryRequest request = new DeleteCertificateMapEntryRequest
{
CertificateMapEntryName = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapEntryAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapEntryAsync(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;
}
DeleteCertificateMapEntryAsync(DeleteCertificateMapEntryRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapEntryAsync(DeleteCertificateMapEntryRequest request, CancellationToken cancellationToken)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | DeleteCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteCertificateMapEntryRequest request = new DeleteCertificateMapEntryRequest
{
CertificateMapEntryName = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapEntryAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapEntryAsync(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;
}
DeleteCertificateMapEntryAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapEntryAsync(string name, CallSettings callSettings = null)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map entry to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]/certificateMapEntries/[CERTIFICATE_MAP_ENTRY]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapEntryAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapEntryAsync(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;
}
DeleteCertificateMapEntryAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteCertificateMapEntryAsync(string name, CancellationToken cancellationToken)
Deletes a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map entry to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]/certificateMapEntries/[CERTIFICATE_MAP_ENTRY]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteCertificateMapEntryAsync(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 certificateManagerClient.PollOnceDeleteCertificateMapEntryAsync(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;
}
DeleteDnsAuthorization(DeleteDnsAuthorizationRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDnsAuthorization(DeleteDnsAuthorizationRequest request, CallSettings callSettings = null)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | DeleteDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DeleteDnsAuthorizationRequest request = new DeleteDnsAuthorizationRequest
{
DnsAuthorizationName = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteDnsAuthorization(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 = certificateManagerClient.PollOnceDeleteDnsAuthorization(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;
}
DeleteDnsAuthorization(DnsAuthorizationName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDnsAuthorization(DnsAuthorizationName name, CallSettings callSettings = null)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | DnsAuthorizationName Required. A name of the dns authorization to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DnsAuthorizationName name = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteDnsAuthorization(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 = certificateManagerClient.PollOnceDeleteDnsAuthorization(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;
}
DeleteDnsAuthorization(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDnsAuthorization(string name, CallSettings callSettings = null)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the dns authorization to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dnsAuthorizations/[DNS_AUTHORIZATION]";
// Make the request
Operation<Empty, OperationMetadata> response = certificateManagerClient.DeleteDnsAuthorization(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 = certificateManagerClient.PollOnceDeleteDnsAuthorization(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;
}
DeleteDnsAuthorizationAsync(DeleteDnsAuthorizationRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDnsAuthorizationAsync(DeleteDnsAuthorizationRequest request, CallSettings callSettings = null)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | DeleteDnsAuthorizationRequest 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 |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteDnsAuthorizationRequest request = new DeleteDnsAuthorizationRequest
{
DnsAuthorizationName = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteDnsAuthorizationAsync(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 certificateManagerClient.PollOnceDeleteDnsAuthorizationAsync(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;
}
DeleteDnsAuthorizationAsync(DeleteDnsAuthorizationRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDnsAuthorizationAsync(DeleteDnsAuthorizationRequest request, CancellationToken cancellationToken)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | DeleteDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteDnsAuthorizationRequest request = new DeleteDnsAuthorizationRequest
{
DnsAuthorizationName = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteDnsAuthorizationAsync(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 certificateManagerClient.PollOnceDeleteDnsAuthorizationAsync(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;
}
DeleteDnsAuthorizationAsync(DnsAuthorizationName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDnsAuthorizationAsync(DnsAuthorizationName name, CallSettings callSettings = null)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | DnsAuthorizationName Required. A name of the dns authorization to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DnsAuthorizationName name = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteDnsAuthorizationAsync(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 certificateManagerClient.PollOnceDeleteDnsAuthorizationAsync(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;
}
DeleteDnsAuthorizationAsync(DnsAuthorizationName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDnsAuthorizationAsync(DnsAuthorizationName name, CancellationToken cancellationToken)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | DnsAuthorizationName Required. A name of the dns authorization to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DnsAuthorizationName name = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteDnsAuthorizationAsync(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 certificateManagerClient.PollOnceDeleteDnsAuthorizationAsync(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;
}
DeleteDnsAuthorizationAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDnsAuthorizationAsync(string name, CallSettings callSettings = null)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the dns authorization to delete. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dnsAuthorizations/[DNS_AUTHORIZATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteDnsAuthorizationAsync(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 certificateManagerClient.PollOnceDeleteDnsAuthorizationAsync(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;
}
DeleteDnsAuthorizationAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDnsAuthorizationAsync(string name, CancellationToken cancellationToken)
Deletes a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the dns authorization to delete. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dnsAuthorizations/[DNS_AUTHORIZATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await certificateManagerClient.DeleteDnsAuthorizationAsync(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 certificateManagerClient.PollOnceDeleteDnsAuthorizationAsync(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;
}
GetCertificate(CertificateName, CallSettings)
public virtual Certificate GetCertificate(CertificateName name, CallSettings callSettings = null)
Gets details of a single Certificate.
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. A name of the certificate to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
// Make the request
Certificate response = certificateManagerClient.GetCertificate(name);
GetCertificate(GetCertificateRequest, CallSettings)
public virtual Certificate GetCertificate(GetCertificateRequest request, CallSettings callSettings = null)
Gets details of a single 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
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]"),
};
// Make the request
Certificate response = certificateManagerClient.GetCertificate(request);
GetCertificate(String, CallSettings)
public virtual Certificate GetCertificate(string name, CallSettings callSettings = null)
Gets details of a single Certificate.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Certificate | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = certificateManagerClient.GetCertificate(name);
GetCertificateAsync(CertificateName, CallSettings)
public virtual Task<Certificate> GetCertificateAsync(CertificateName name, CallSettings callSettings = null)
Gets details of a single Certificate.
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. A name of the certificate to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Certificate> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateManagerClient.GetCertificateAsync(name);
GetCertificateAsync(CertificateName, CancellationToken)
public virtual Task<Certificate> GetCertificateAsync(CertificateName name, CancellationToken cancellationToken)
Gets details of a single Certificate.
Parameters | |
---|---|
Name | Description |
name | CertificateName Required. A name of the certificate to describe. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Certificate> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateName name = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
// Make the request
Certificate response = await certificateManagerClient.GetCertificateAsync(name);
GetCertificateAsync(GetCertificateRequest, CallSettings)
public virtual Task<Certificate> GetCertificateAsync(GetCertificateRequest request, CallSettings callSettings = null)
Gets details of a single 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 |
Task<Certificate> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]"),
};
// Make the request
Certificate response = await certificateManagerClient.GetCertificateAsync(request);
GetCertificateAsync(GetCertificateRequest, CancellationToken)
public virtual Task<Certificate> GetCertificateAsync(GetCertificateRequest request, CancellationToken cancellationToken)
Gets details of a single 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 |
Task<Certificate> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetCertificateRequest request = new GetCertificateRequest
{
CertificateName = CertificateName.FromProjectLocationCertificate("[PROJECT]", "[LOCATION]", "[CERTIFICATE]"),
};
// Make the request
Certificate response = await certificateManagerClient.GetCertificateAsync(request);
GetCertificateAsync(String, CallSettings)
public virtual Task<Certificate> GetCertificateAsync(string name, CallSettings callSettings = null)
Gets details of a single Certificate.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Certificate> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateManagerClient.GetCertificateAsync(name);
GetCertificateAsync(String, CancellationToken)
public virtual Task<Certificate> GetCertificateAsync(string name, CancellationToken cancellationToken)
Gets details of a single Certificate.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate to describe. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Certificate> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificates/[CERTIFICATE]";
// Make the request
Certificate response = await certificateManagerClient.GetCertificateAsync(name);
GetCertificateMap(CertificateMapName, CallSettings)
public virtual CertificateMap GetCertificateMap(CertificateMapName name, CallSettings callSettings = null)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
name | CertificateMapName Required. A name of the certificate map to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateMap | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapName name = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
CertificateMap response = certificateManagerClient.GetCertificateMap(name);
GetCertificateMap(GetCertificateMapRequest, CallSettings)
public virtual CertificateMap GetCertificateMap(GetCertificateMapRequest request, CallSettings callSettings = null)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
request | GetCertificateMapRequest 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 |
CertificateMap | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
GetCertificateMapRequest request = new GetCertificateMapRequest
{
CertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
};
// Make the request
CertificateMap response = certificateManagerClient.GetCertificateMap(request);
GetCertificateMap(String, CallSettings)
public virtual CertificateMap GetCertificateMap(string name, CallSettings callSettings = null)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateMap | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
CertificateMap response = certificateManagerClient.GetCertificateMap(name);
GetCertificateMapAsync(CertificateMapName, CallSettings)
public virtual Task<CertificateMap> GetCertificateMapAsync(CertificateMapName name, CallSettings callSettings = null)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
name | CertificateMapName Required. A name of the certificate map to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CertificateMap> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapName name = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
CertificateMap response = await certificateManagerClient.GetCertificateMapAsync(name);
GetCertificateMapAsync(CertificateMapName, CancellationToken)
public virtual Task<CertificateMap> GetCertificateMapAsync(CertificateMapName name, CancellationToken cancellationToken)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
name | CertificateMapName Required. A name of the certificate map to describe. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CertificateMap> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapName name = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
CertificateMap response = await certificateManagerClient.GetCertificateMapAsync(name);
GetCertificateMapAsync(GetCertificateMapRequest, CallSettings)
public virtual Task<CertificateMap> GetCertificateMapAsync(GetCertificateMapRequest request, CallSettings callSettings = null)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
request | GetCertificateMapRequest 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 |
Task<CertificateMap> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetCertificateMapRequest request = new GetCertificateMapRequest
{
CertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
};
// Make the request
CertificateMap response = await certificateManagerClient.GetCertificateMapAsync(request);
GetCertificateMapAsync(GetCertificateMapRequest, CancellationToken)
public virtual Task<CertificateMap> GetCertificateMapAsync(GetCertificateMapRequest request, CancellationToken cancellationToken)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
request | GetCertificateMapRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CertificateMap> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetCertificateMapRequest request = new GetCertificateMapRequest
{
CertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
};
// Make the request
CertificateMap response = await certificateManagerClient.GetCertificateMapAsync(request);
GetCertificateMapAsync(String, CallSettings)
public virtual Task<CertificateMap> GetCertificateMapAsync(string name, CallSettings callSettings = null)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CertificateMap> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
CertificateMap response = await certificateManagerClient.GetCertificateMapAsync(name);
GetCertificateMapAsync(String, CancellationToken)
public virtual Task<CertificateMap> GetCertificateMapAsync(string name, CancellationToken cancellationToken)
Gets details of a single CertificateMap.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map to describe. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CertificateMap> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
CertificateMap response = await certificateManagerClient.GetCertificateMapAsync(name);
GetCertificateMapEntry(CertificateMapEntryName, CallSettings)
public virtual CertificateMapEntry GetCertificateMapEntry(CertificateMapEntryName name, CallSettings callSettings = null)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | CertificateMapEntryName Required. A name of the certificate map entry to describe. Must be in the
format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateMapEntry | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapEntryName name = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
// Make the request
CertificateMapEntry response = certificateManagerClient.GetCertificateMapEntry(name);
GetCertificateMapEntry(GetCertificateMapEntryRequest, CallSettings)
public virtual CertificateMapEntry GetCertificateMapEntry(GetCertificateMapEntryRequest request, CallSettings callSettings = null)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | GetCertificateMapEntryRequest 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 |
CertificateMapEntry | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
GetCertificateMapEntryRequest request = new GetCertificateMapEntryRequest
{
CertificateMapEntryName = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]"),
};
// Make the request
CertificateMapEntry response = certificateManagerClient.GetCertificateMapEntry(request);
GetCertificateMapEntry(String, CallSettings)
public virtual CertificateMapEntry GetCertificateMapEntry(string name, CallSettings callSettings = null)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map entry to describe. Must be in the
format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
CertificateMapEntry | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]/certificateMapEntries/[CERTIFICATE_MAP_ENTRY]";
// Make the request
CertificateMapEntry response = certificateManagerClient.GetCertificateMapEntry(name);
GetCertificateMapEntryAsync(CertificateMapEntryName, CallSettings)
public virtual Task<CertificateMapEntry> GetCertificateMapEntryAsync(CertificateMapEntryName name, CallSettings callSettings = null)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | CertificateMapEntryName Required. A name of the certificate map entry to describe. Must be in the
format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CertificateMapEntry> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapEntryName name = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
// Make the request
CertificateMapEntry response = await certificateManagerClient.GetCertificateMapEntryAsync(name);
GetCertificateMapEntryAsync(CertificateMapEntryName, CancellationToken)
public virtual Task<CertificateMapEntry> GetCertificateMapEntryAsync(CertificateMapEntryName name, CancellationToken cancellationToken)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | CertificateMapEntryName Required. A name of the certificate map entry to describe. Must be in the
format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CertificateMapEntry> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapEntryName name = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
// Make the request
CertificateMapEntry response = await certificateManagerClient.GetCertificateMapEntryAsync(name);
GetCertificateMapEntryAsync(GetCertificateMapEntryRequest, CallSettings)
public virtual Task<CertificateMapEntry> GetCertificateMapEntryAsync(GetCertificateMapEntryRequest request, CallSettings callSettings = null)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | GetCertificateMapEntryRequest 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 |
Task<CertificateMapEntry> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetCertificateMapEntryRequest request = new GetCertificateMapEntryRequest
{
CertificateMapEntryName = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]"),
};
// Make the request
CertificateMapEntry response = await certificateManagerClient.GetCertificateMapEntryAsync(request);
GetCertificateMapEntryAsync(GetCertificateMapEntryRequest, CancellationToken)
public virtual Task<CertificateMapEntry> GetCertificateMapEntryAsync(GetCertificateMapEntryRequest request, CancellationToken cancellationToken)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | GetCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CertificateMapEntry> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetCertificateMapEntryRequest request = new GetCertificateMapEntryRequest
{
CertificateMapEntryName = CertificateMapEntryName.FromProjectLocationCertificateMapCertificateMapEntry("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]"),
};
// Make the request
CertificateMapEntry response = await certificateManagerClient.GetCertificateMapEntryAsync(request);
GetCertificateMapEntryAsync(String, CallSettings)
public virtual Task<CertificateMapEntry> GetCertificateMapEntryAsync(string name, CallSettings callSettings = null)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map entry to describe. Must be in the
format |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<CertificateMapEntry> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]/certificateMapEntries/[CERTIFICATE_MAP_ENTRY]";
// Make the request
CertificateMapEntry response = await certificateManagerClient.GetCertificateMapEntryAsync(name);
GetCertificateMapEntryAsync(String, CancellationToken)
public virtual Task<CertificateMapEntry> GetCertificateMapEntryAsync(string name, CancellationToken cancellationToken)
Gets details of a single CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the certificate map entry to describe. Must be in the
format |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<CertificateMapEntry> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]/certificateMapEntries/[CERTIFICATE_MAP_ENTRY]";
// Make the request
CertificateMapEntry response = await certificateManagerClient.GetCertificateMapEntryAsync(name);
GetDnsAuthorization(DnsAuthorizationName, CallSettings)
public virtual DnsAuthorization GetDnsAuthorization(DnsAuthorizationName name, CallSettings callSettings = null)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | DnsAuthorizationName Required. A name of the dns authorization to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DnsAuthorization | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DnsAuthorizationName name = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
// Make the request
DnsAuthorization response = certificateManagerClient.GetDnsAuthorization(name);
GetDnsAuthorization(GetDnsAuthorizationRequest, CallSettings)
public virtual DnsAuthorization GetDnsAuthorization(GetDnsAuthorizationRequest request, CallSettings callSettings = null)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | GetDnsAuthorizationRequest 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 |
DnsAuthorization | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
GetDnsAuthorizationRequest request = new GetDnsAuthorizationRequest
{
DnsAuthorizationName = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]"),
};
// Make the request
DnsAuthorization response = certificateManagerClient.GetDnsAuthorization(request);
GetDnsAuthorization(String, CallSettings)
public virtual DnsAuthorization GetDnsAuthorization(string name, CallSettings callSettings = null)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the dns authorization to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DnsAuthorization | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dnsAuthorizations/[DNS_AUTHORIZATION]";
// Make the request
DnsAuthorization response = certificateManagerClient.GetDnsAuthorization(name);
GetDnsAuthorizationAsync(DnsAuthorizationName, CallSettings)
public virtual Task<DnsAuthorization> GetDnsAuthorizationAsync(DnsAuthorizationName name, CallSettings callSettings = null)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | DnsAuthorizationName Required. A name of the dns authorization to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DnsAuthorization> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DnsAuthorizationName name = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
// Make the request
DnsAuthorization response = await certificateManagerClient.GetDnsAuthorizationAsync(name);
GetDnsAuthorizationAsync(DnsAuthorizationName, CancellationToken)
public virtual Task<DnsAuthorization> GetDnsAuthorizationAsync(DnsAuthorizationName name, CancellationToken cancellationToken)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | DnsAuthorizationName Required. A name of the dns authorization to describe. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DnsAuthorization> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DnsAuthorizationName name = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
// Make the request
DnsAuthorization response = await certificateManagerClient.GetDnsAuthorizationAsync(name);
GetDnsAuthorizationAsync(GetDnsAuthorizationRequest, CallSettings)
public virtual Task<DnsAuthorization> GetDnsAuthorizationAsync(GetDnsAuthorizationRequest request, CallSettings callSettings = null)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | GetDnsAuthorizationRequest 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 |
Task<DnsAuthorization> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetDnsAuthorizationRequest request = new GetDnsAuthorizationRequest
{
DnsAuthorizationName = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]"),
};
// Make the request
DnsAuthorization response = await certificateManagerClient.GetDnsAuthorizationAsync(request);
GetDnsAuthorizationAsync(GetDnsAuthorizationRequest, CancellationToken)
public virtual Task<DnsAuthorization> GetDnsAuthorizationAsync(GetDnsAuthorizationRequest request, CancellationToken cancellationToken)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | GetDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DnsAuthorization> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
GetDnsAuthorizationRequest request = new GetDnsAuthorizationRequest
{
DnsAuthorizationName = DnsAuthorizationName.FromProjectLocationDnsAuthorization("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]"),
};
// Make the request
DnsAuthorization response = await certificateManagerClient.GetDnsAuthorizationAsync(request);
GetDnsAuthorizationAsync(String, CallSettings)
public virtual Task<DnsAuthorization> GetDnsAuthorizationAsync(string name, CallSettings callSettings = null)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the dns authorization to describe. Must be in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DnsAuthorization> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dnsAuthorizations/[DNS_AUTHORIZATION]";
// Make the request
DnsAuthorization response = await certificateManagerClient.GetDnsAuthorizationAsync(name);
GetDnsAuthorizationAsync(String, CancellationToken)
public virtual Task<DnsAuthorization> GetDnsAuthorizationAsync(string name, CancellationToken cancellationToken)
Gets details of a single DnsAuthorization.
Parameters | |
---|---|
Name | Description |
name | String Required. A name of the dns authorization to describe. Must be in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DnsAuthorization> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dnsAuthorizations/[DNS_AUTHORIZATION]";
// Make the request
DnsAuthorization response = await certificateManagerClient.GetDnsAuthorizationAsync(name);
ListCertificateMapEntries(CertificateMapName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> ListCertificateMapEntries(CertificateMapName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMapEntries in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | CertificateMapName Required. The project, location and certificate map from which the certificate map
entries should be listed, specified in the format
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> | A pageable sequence of CertificateMapEntry resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapName parent = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> response = certificateManagerClient.ListCertificateMapEntries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateMapEntry 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 (ListCertificateMapEntriesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMapEntry 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<CertificateMapEntry> 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 (CertificateMapEntry 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;
ListCertificateMapEntries(ListCertificateMapEntriesRequest, CallSettings)
public virtual PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> ListCertificateMapEntries(ListCertificateMapEntriesRequest request, CallSettings callSettings = null)
Lists CertificateMapEntries in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListCertificateMapEntriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> | A pageable sequence of CertificateMapEntry resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
ListCertificateMapEntriesRequest request = new ListCertificateMapEntriesRequest
{
ParentAsCertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> response = certificateManagerClient.ListCertificateMapEntries(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateMapEntry 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 (ListCertificateMapEntriesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMapEntry 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<CertificateMapEntry> 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 (CertificateMapEntry 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;
ListCertificateMapEntries(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> ListCertificateMapEntries(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMapEntries in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project, location and certificate map from which the certificate map
entries should be listed, specified in the format
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> | A pageable sequence of CertificateMapEntry resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
PagedEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> response = certificateManagerClient.ListCertificateMapEntries(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateMapEntry 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 (ListCertificateMapEntriesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMapEntry 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<CertificateMapEntry> 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 (CertificateMapEntry 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;
ListCertificateMapEntriesAsync(CertificateMapName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> ListCertificateMapEntriesAsync(CertificateMapName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMapEntries in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | CertificateMapName Required. The project, location and certificate map from which the certificate map
entries should be listed, specified in the format
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> | A pageable asynchronous sequence of CertificateMapEntry resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapName parent = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
// Make the request
PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> response = certificateManagerClient.ListCertificateMapEntriesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateMapEntry 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((ListCertificateMapEntriesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMapEntry 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<CertificateMapEntry> 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 (CertificateMapEntry 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;
ListCertificateMapEntriesAsync(ListCertificateMapEntriesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> ListCertificateMapEntriesAsync(ListCertificateMapEntriesRequest request, CallSettings callSettings = null)
Lists CertificateMapEntries in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListCertificateMapEntriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> | A pageable asynchronous sequence of CertificateMapEntry resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
ListCertificateMapEntriesRequest request = new ListCertificateMapEntriesRequest
{
ParentAsCertificateMapName = CertificateMapName.FromProjectLocationCertificateMap("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> response = certificateManagerClient.ListCertificateMapEntriesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateMapEntry 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((ListCertificateMapEntriesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMapEntry 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<CertificateMapEntry> 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 (CertificateMapEntry 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;
ListCertificateMapEntriesAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> ListCertificateMapEntriesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMapEntries in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project, location and certificate map from which the certificate map
entries should be listed, specified in the format
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> | A pageable asynchronous sequence of CertificateMapEntry resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/certificateMaps/[CERTIFICATE_MAP]";
// Make the request
PagedAsyncEnumerable<ListCertificateMapEntriesResponse, CertificateMapEntry> response = certificateManagerClient.ListCertificateMapEntriesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateMapEntry 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((ListCertificateMapEntriesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMapEntry 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<CertificateMapEntry> 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 (CertificateMapEntry 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;
ListCertificateMaps(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCertificateMapsResponse, CertificateMap> ListCertificateMaps(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location from which the certificate maps should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListCertificateMapsResponse, CertificateMap> | A pageable sequence of CertificateMap resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCertificateMapsResponse, CertificateMap> response = certificateManagerClient.ListCertificateMaps(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateMap 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 (ListCertificateMapsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMap 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<CertificateMap> 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 (CertificateMap 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;
ListCertificateMaps(ListCertificateMapsRequest, CallSettings)
public virtual PagedEnumerable<ListCertificateMapsResponse, CertificateMap> ListCertificateMaps(ListCertificateMapsRequest request, CallSettings callSettings = null)
Lists CertificateMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListCertificateMapsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListCertificateMapsResponse, CertificateMap> | A pageable sequence of CertificateMap resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
ListCertificateMapsRequest request = new ListCertificateMapsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificateMapsResponse, CertificateMap> response = certificateManagerClient.ListCertificateMaps(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateMap 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 (ListCertificateMapsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMap 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<CertificateMap> 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 (CertificateMap 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;
ListCertificateMaps(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCertificateMapsResponse, CertificateMap> ListCertificateMaps(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location from which the certificate maps should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListCertificateMapsResponse, CertificateMap> | A pageable sequence of CertificateMap resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCertificateMapsResponse, CertificateMap> response = certificateManagerClient.ListCertificateMaps(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CertificateMap 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 (ListCertificateMapsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMap 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<CertificateMap> 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 (CertificateMap 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;
ListCertificateMapsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> ListCertificateMapsAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location from which the certificate maps should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> | A pageable asynchronous sequence of CertificateMap resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> response = certificateManagerClient.ListCertificateMapsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateMap 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((ListCertificateMapsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMap 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<CertificateMap> 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 (CertificateMap 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;
ListCertificateMapsAsync(ListCertificateMapsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> ListCertificateMapsAsync(ListCertificateMapsRequest request, CallSettings callSettings = null)
Lists CertificateMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListCertificateMapsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> | A pageable asynchronous sequence of CertificateMap resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
ListCertificateMapsRequest request = new ListCertificateMapsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> response = certificateManagerClient.ListCertificateMapsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateMap 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((ListCertificateMapsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMap 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<CertificateMap> 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 (CertificateMap 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;
ListCertificateMapsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> ListCertificateMapsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists CertificateMaps in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location from which the certificate maps should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> | A pageable asynchronous sequence of CertificateMap resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCertificateMapsResponse, CertificateMap> response = certificateManagerClient.ListCertificateMapsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CertificateMap 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((ListCertificateMapsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CertificateMap 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<CertificateMap> 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 (CertificateMap 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(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Certificates in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location from which the certificate should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListCertificatesResponse, Certificate> | A pageable sequence of Certificate resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateManagerClient.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 in a given project and location.
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 |
PagedEnumerable<ListCertificatesResponse, Certificate> | A pageable sequence of Certificate resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
ListCertificatesRequest request = new ListCertificatesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateManagerClient.ListCertificates(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Certificate item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCertificatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificates(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListCertificatesResponse, Certificate> ListCertificates(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Certificates in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location from which the certificate should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListCertificatesResponse, Certificate> | A pageable sequence of Certificate resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListCertificatesResponse, Certificate> response = certificateManagerClient.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(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Certificates in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location from which the certificate should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> | A pageable asynchronous sequence of Certificate resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateManagerClient.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 in a given project and location.
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 |
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> | A pageable asynchronous sequence of Certificate resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
ListCertificatesRequest request = new ListCertificatesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateManagerClient.ListCertificatesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Certificate item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListCertificatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Certificate item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Certificate> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Certificate item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListCertificatesAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListCertificatesResponse, Certificate> ListCertificatesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Certificates in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location from which the certificate should be listed,
specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> | A pageable asynchronous sequence of Certificate resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListCertificatesResponse, Certificate> response = certificateManagerClient.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;
ListDnsAuthorizations(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> ListDnsAuthorizations(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists DnsAuthorizations in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location from which the dns authorizations should be
listed, specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> | A pageable sequence of DnsAuthorization resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> response = certificateManagerClient.ListDnsAuthorizations(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DnsAuthorization 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 (ListDnsAuthorizationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DnsAuthorization 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<DnsAuthorization> 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 (DnsAuthorization 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;
ListDnsAuthorizations(ListDnsAuthorizationsRequest, CallSettings)
public virtual PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> ListDnsAuthorizations(ListDnsAuthorizationsRequest request, CallSettings callSettings = null)
Lists DnsAuthorizations in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListDnsAuthorizationsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> | A pageable sequence of DnsAuthorization resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
ListDnsAuthorizationsRequest request = new ListDnsAuthorizationsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> response = certificateManagerClient.ListDnsAuthorizations(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DnsAuthorization 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 (ListDnsAuthorizationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DnsAuthorization 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<DnsAuthorization> 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 (DnsAuthorization 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;
ListDnsAuthorizations(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> ListDnsAuthorizations(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists DnsAuthorizations in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location from which the dns authorizations should be
listed, specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> | A pageable sequence of DnsAuthorization resources. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> response = certificateManagerClient.ListDnsAuthorizations(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DnsAuthorization 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 (ListDnsAuthorizationsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DnsAuthorization 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<DnsAuthorization> 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 (DnsAuthorization 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;
ListDnsAuthorizationsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> ListDnsAuthorizationsAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists DnsAuthorizations in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location from which the dns authorizations should be
listed, specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> | A pageable asynchronous sequence of DnsAuthorization resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> response = certificateManagerClient.ListDnsAuthorizationsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DnsAuthorization 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((ListDnsAuthorizationsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DnsAuthorization 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<DnsAuthorization> 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 (DnsAuthorization 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;
ListDnsAuthorizationsAsync(ListDnsAuthorizationsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> ListDnsAuthorizationsAsync(ListDnsAuthorizationsRequest request, CallSettings callSettings = null)
Lists DnsAuthorizations in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListDnsAuthorizationsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> | A pageable asynchronous sequence of DnsAuthorization resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
ListDnsAuthorizationsRequest request = new ListDnsAuthorizationsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> response = certificateManagerClient.ListDnsAuthorizationsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DnsAuthorization 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((ListDnsAuthorizationsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DnsAuthorization 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<DnsAuthorization> 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 (DnsAuthorization 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;
ListDnsAuthorizationsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> ListDnsAuthorizationsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists DnsAuthorizations in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location from which the dns authorizations should be
listed, specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> 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 |
PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> | A pageable asynchronous sequence of DnsAuthorization resources. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDnsAuthorizationsResponse, DnsAuthorization> response = certificateManagerClient.ListDnsAuthorizationsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DnsAuthorization 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((ListDnsAuthorizationsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DnsAuthorization 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<DnsAuthorization> 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 (DnsAuthorization 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;
PollOnceCreateCertificate(String, CallSettings)
public virtual Operation<Certificate, OperationMetadata> PollOnceCreateCertificate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateCertificate
.
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 |
Operation<Certificate, OperationMetadata> | The result of polling the operation. |
PollOnceCreateCertificateAsync(String, CallSettings)
public virtual Task<Operation<Certificate, OperationMetadata>> PollOnceCreateCertificateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCertificate
.
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 |
Task<Operation<Certificate, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateCertificateMap(String, CallSettings)
public virtual Operation<CertificateMap, OperationMetadata> PollOnceCreateCertificateMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateCertificateMap
.
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 |
Operation<CertificateMap, OperationMetadata> | The result of polling the operation. |
PollOnceCreateCertificateMapAsync(String, CallSettings)
public virtual Task<Operation<CertificateMap, OperationMetadata>> PollOnceCreateCertificateMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCertificateMap
.
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 |
Task<Operation<CertificateMap, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateCertificateMapEntry(String, CallSettings)
public virtual Operation<CertificateMapEntry, OperationMetadata> PollOnceCreateCertificateMapEntry(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateCertificateMapEntry
.
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 |
Operation<CertificateMapEntry, OperationMetadata> | The result of polling the operation. |
PollOnceCreateCertificateMapEntryAsync(String, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> PollOnceCreateCertificateMapEntryAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCertificateMapEntry
.
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 |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateDnsAuthorization(String, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> PollOnceCreateDnsAuthorization(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateDnsAuthorization
.
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 |
Operation<DnsAuthorization, OperationMetadata> | The result of polling the operation. |
PollOnceCreateDnsAuthorizationAsync(String, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> PollOnceCreateDnsAuthorizationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateDnsAuthorization
.
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 |
Task<Operation<DnsAuthorization, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteCertificate(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteCertificate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteCertificate
.
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 |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteCertificateAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteCertificateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCertificate
.
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 |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteCertificateMap(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteCertificateMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteCertificateMap
.
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 |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteCertificateMapAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteCertificateMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateMap
.
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 |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteCertificateMapEntry(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteCertificateMapEntry(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateMapEntry
.
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 |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteCertificateMapEntryAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteCertificateMapEntryAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCertificateMapEntry
.
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 |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteDnsAuthorization(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDnsAuthorization(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteDnsAuthorization
.
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 |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteDnsAuthorizationAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteDnsAuthorizationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteDnsAuthorization
.
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 |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateCertificate(String, CallSettings)
public virtual Operation<Certificate, OperationMetadata> PollOnceUpdateCertificate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateCertificate
.
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 |
Operation<Certificate, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateCertificateAsync(String, CallSettings)
public virtual Task<Operation<Certificate, OperationMetadata>> PollOnceUpdateCertificateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCertificate
.
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 |
Task<Operation<Certificate, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateCertificateMap(String, CallSettings)
public virtual Operation<CertificateMap, OperationMetadata> PollOnceUpdateCertificateMap(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateCertificateMap
.
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 |
Operation<CertificateMap, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateCertificateMapAsync(String, CallSettings)
public virtual Task<Operation<CertificateMap, OperationMetadata>> PollOnceUpdateCertificateMapAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateMap
.
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 |
Task<Operation<CertificateMap, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateCertificateMapEntry(String, CallSettings)
public virtual Operation<CertificateMapEntry, OperationMetadata> PollOnceUpdateCertificateMapEntry(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateMapEntry
.
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 |
Operation<CertificateMapEntry, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateCertificateMapEntryAsync(String, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> PollOnceUpdateCertificateMapEntryAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCertificateMapEntry
.
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 |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateDnsAuthorization(String, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> PollOnceUpdateDnsAuthorization(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateDnsAuthorization
.
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 |
Operation<DnsAuthorization, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateDnsAuthorizationAsync(String, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> PollOnceUpdateDnsAuthorizationAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateDnsAuthorization
.
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 |
Task<Operation<DnsAuthorization, OperationMetadata>> | A task representing the result of polling the operation. |
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.
UpdateCertificate(Certificate, FieldMask, CallSettings)
public virtual Operation<Certificate, OperationMetadata> UpdateCertificate(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)
Updates a Certificate.
Parameters | |
---|---|
Name | Description |
certificate | Certificate Required. A definition of the certificate to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Certificate, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Certificate, OperationMetadata> response = certificateManagerClient.UpdateCertificate(certificate, updateMask);
// 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.PollOnceUpdateCertificate(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;
}
UpdateCertificate(UpdateCertificateRequest, CallSettings)
public virtual Operation<Certificate, OperationMetadata> UpdateCertificate(UpdateCertificateRequest request, CallSettings callSettings = null)
Updates a Certificate.
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 |
Operation<Certificate, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
Certificate = new Certificate(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Certificate, OperationMetadata> response = certificateManagerClient.UpdateCertificate(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.PollOnceUpdateCertificate(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;
}
UpdateCertificateAsync(Certificate, FieldMask, CallSettings)
public virtual Task<Operation<Certificate, OperationMetadata>> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CallSettings callSettings = null)
Updates a Certificate.
Parameters | |
---|---|
Name | Description |
certificate | Certificate Required. A definition of the certificate to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.UpdateCertificateAsync(certificate, updateMask);
// 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.PollOnceUpdateCertificateAsync(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;
}
UpdateCertificateAsync(Certificate, FieldMask, CancellationToken)
public virtual Task<Operation<Certificate, OperationMetadata>> UpdateCertificateAsync(Certificate certificate, FieldMask updateMask, CancellationToken cancellationToken)
Updates a Certificate.
Parameters | |
---|---|
Name | Description |
certificate | Certificate Required. A definition of the certificate to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
Certificate certificate = new Certificate();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.UpdateCertificateAsync(certificate, updateMask);
// 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.PollOnceUpdateCertificateAsync(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;
}
UpdateCertificateAsync(UpdateCertificateRequest, CallSettings)
public virtual Task<Operation<Certificate, OperationMetadata>> UpdateCertificateAsync(UpdateCertificateRequest request, CallSettings callSettings = null)
Updates a Certificate.
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 |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
Certificate = new Certificate(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.UpdateCertificateAsync(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.PollOnceUpdateCertificateAsync(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;
}
UpdateCertificateAsync(UpdateCertificateRequest, CancellationToken)
public virtual Task<Operation<Certificate, OperationMetadata>> UpdateCertificateAsync(UpdateCertificateRequest request, CancellationToken cancellationToken)
Updates a Certificate.
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 |
Task<Operation<Certificate, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateRequest request = new UpdateCertificateRequest
{
Certificate = new Certificate(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Certificate, OperationMetadata> response = await certificateManagerClient.UpdateCertificateAsync(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.PollOnceUpdateCertificateAsync(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;
}
UpdateCertificateMap(CertificateMap, FieldMask, CallSettings)
public virtual Operation<CertificateMap, OperationMetadata> UpdateCertificateMap(CertificateMap certificateMap, FieldMask updateMask, CallSettings callSettings = null)
Updates a CertificateMap.
Parameters | |
---|---|
Name | Description |
certificateMap | CertificateMap Required. A definition of the certificate map to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMap, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMap certificateMap = new CertificateMap();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateMap, OperationMetadata> response = certificateManagerClient.UpdateCertificateMap(certificateMap, updateMask);
// 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.PollOnceUpdateCertificateMap(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;
}
UpdateCertificateMap(UpdateCertificateMapRequest, CallSettings)
public virtual Operation<CertificateMap, OperationMetadata> UpdateCertificateMap(UpdateCertificateMapRequest request, CallSettings callSettings = null)
Updates a CertificateMap.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateMapRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMap, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
UpdateCertificateMapRequest request = new UpdateCertificateMapRequest
{
CertificateMap = new CertificateMap(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<CertificateMap, OperationMetadata> response = certificateManagerClient.UpdateCertificateMap(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.PollOnceUpdateCertificateMap(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;
}
UpdateCertificateMapAsync(CertificateMap, FieldMask, CallSettings)
public virtual Task<Operation<CertificateMap, OperationMetadata>> UpdateCertificateMapAsync(CertificateMap certificateMap, FieldMask updateMask, CallSettings callSettings = null)
Updates a CertificateMap.
Parameters | |
---|---|
Name | Description |
certificateMap | CertificateMap Required. A definition of the certificate map to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMap certificateMap = new CertificateMap();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapAsync(certificateMap, updateMask);
// 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.PollOnceUpdateCertificateMapAsync(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;
}
UpdateCertificateMapAsync(CertificateMap, FieldMask, CancellationToken)
public virtual Task<Operation<CertificateMap, OperationMetadata>> UpdateCertificateMapAsync(CertificateMap certificateMap, FieldMask updateMask, CancellationToken cancellationToken)
Updates a CertificateMap.
Parameters | |
---|---|
Name | Description |
certificateMap | CertificateMap Required. A definition of the certificate map to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMap certificateMap = new CertificateMap();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapAsync(certificateMap, updateMask);
// 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.PollOnceUpdateCertificateMapAsync(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;
}
UpdateCertificateMapAsync(UpdateCertificateMapRequest, CallSettings)
public virtual Task<Operation<CertificateMap, OperationMetadata>> UpdateCertificateMapAsync(UpdateCertificateMapRequest request, CallSettings callSettings = null)
Updates a CertificateMap.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateMapRequest 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 |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateMapRequest request = new UpdateCertificateMapRequest
{
CertificateMap = new CertificateMap(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapAsync(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.PollOnceUpdateCertificateMapAsync(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;
}
UpdateCertificateMapAsync(UpdateCertificateMapRequest, CancellationToken)
public virtual Task<Operation<CertificateMap, OperationMetadata>> UpdateCertificateMapAsync(UpdateCertificateMapRequest request, CancellationToken cancellationToken)
Updates a CertificateMap.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateMapRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMap, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateMapRequest request = new UpdateCertificateMapRequest
{
CertificateMap = new CertificateMap(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<CertificateMap, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapAsync(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.PollOnceUpdateCertificateMapAsync(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;
}
UpdateCertificateMapEntry(CertificateMapEntry, FieldMask, CallSettings)
public virtual Operation<CertificateMapEntry, OperationMetadata> UpdateCertificateMapEntry(CertificateMapEntry certificateMapEntry, FieldMask updateMask, CallSettings callSettings = null)
Updates a CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create map entry. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMapEntry, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
CertificateMapEntry certificateMapEntry = new CertificateMapEntry();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = certificateManagerClient.UpdateCertificateMapEntry(certificateMapEntry, updateMask);
// 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.PollOnceUpdateCertificateMapEntry(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;
}
UpdateCertificateMapEntry(UpdateCertificateMapEntryRequest, CallSettings)
public virtual Operation<CertificateMapEntry, OperationMetadata> UpdateCertificateMapEntry(UpdateCertificateMapEntryRequest request, CallSettings callSettings = null)
Updates a CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<CertificateMapEntry, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
UpdateCertificateMapEntryRequest request = new UpdateCertificateMapEntryRequest
{
CertificateMapEntry = new CertificateMapEntry(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = certificateManagerClient.UpdateCertificateMapEntry(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.PollOnceUpdateCertificateMapEntry(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;
}
UpdateCertificateMapEntryAsync(CertificateMapEntry, FieldMask, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> UpdateCertificateMapEntryAsync(CertificateMapEntry certificateMapEntry, FieldMask updateMask, CallSettings callSettings = null)
Updates a CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create map entry. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapEntry certificateMapEntry = new CertificateMapEntry();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapEntryAsync(certificateMapEntry, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceUpdateCertificateMapEntryAsync(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;
}
UpdateCertificateMapEntryAsync(CertificateMapEntry, FieldMask, CancellationToken)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> UpdateCertificateMapEntryAsync(CertificateMapEntry certificateMapEntry, FieldMask updateMask, CancellationToken cancellationToken)
Updates a CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
certificateMapEntry | CertificateMapEntry Required. A definition of the certificate map entry to create map entry. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
CertificateMapEntry certificateMapEntry = new CertificateMapEntry();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapEntryAsync(certificateMapEntry, updateMask);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceUpdateCertificateMapEntryAsync(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;
}
UpdateCertificateMapEntryAsync(UpdateCertificateMapEntryRequest, CallSettings)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> UpdateCertificateMapEntryAsync(UpdateCertificateMapEntryRequest request, CallSettings callSettings = null)
Updates a CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateMapEntryRequest 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 |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateMapEntryRequest request = new UpdateCertificateMapEntryRequest
{
CertificateMapEntry = new CertificateMapEntry(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapEntryAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceUpdateCertificateMapEntryAsync(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;
}
UpdateCertificateMapEntryAsync(UpdateCertificateMapEntryRequest, CancellationToken)
public virtual Task<Operation<CertificateMapEntry, OperationMetadata>> UpdateCertificateMapEntryAsync(UpdateCertificateMapEntryRequest request, CancellationToken cancellationToken)
Updates a CertificateMapEntry.
Parameters | |
---|---|
Name | Description |
request | UpdateCertificateMapEntryRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<CertificateMapEntry, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateCertificateMapEntryRequest request = new UpdateCertificateMapEntryRequest
{
CertificateMapEntry = new CertificateMapEntry(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<CertificateMapEntry, OperationMetadata> response = await certificateManagerClient.UpdateCertificateMapEntryAsync(request);
// Poll until the returned long-running operation is complete
Operation<CertificateMapEntry, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// 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 = await certificateManagerClient.PollOnceUpdateCertificateMapEntryAsync(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;
}
UpdateDnsAuthorization(DnsAuthorization, FieldMask, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> UpdateDnsAuthorization(DnsAuthorization dnsAuthorization, FieldMask updateMask, CallSettings callSettings = null)
Updates a DnsAuthorization.
Parameters | |
---|---|
Name | Description |
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<DnsAuthorization, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
DnsAuthorization dnsAuthorization = new DnsAuthorization();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = certificateManagerClient.UpdateDnsAuthorization(dnsAuthorization, updateMask);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = certificateManagerClient.PollOnceUpdateDnsAuthorization(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
UpdateDnsAuthorization(UpdateDnsAuthorizationRequest, CallSettings)
public virtual Operation<DnsAuthorization, OperationMetadata> UpdateDnsAuthorization(UpdateDnsAuthorizationRequest request, CallSettings callSettings = null)
Updates a DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | UpdateDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<DnsAuthorization, OperationMetadata> | The RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = CertificateManagerClient.Create();
// Initialize request argument(s)
UpdateDnsAuthorizationRequest request = new UpdateDnsAuthorizationRequest
{
DnsAuthorization = new DnsAuthorization(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = certificateManagerClient.UpdateDnsAuthorization(request);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = certificateManagerClient.PollOnceUpdateDnsAuthorization(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
UpdateDnsAuthorizationAsync(DnsAuthorization, FieldMask, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> UpdateDnsAuthorizationAsync(DnsAuthorization dnsAuthorization, FieldMask updateMask, CallSettings callSettings = null)
Updates a DnsAuthorization.
Parameters | |
---|---|
Name | Description |
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DnsAuthorization dnsAuthorization = new DnsAuthorization();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.UpdateDnsAuthorizationAsync(dnsAuthorization, updateMask);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceUpdateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
UpdateDnsAuthorizationAsync(DnsAuthorization, FieldMask, CancellationToken)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> UpdateDnsAuthorizationAsync(DnsAuthorization dnsAuthorization, FieldMask updateMask, CancellationToken cancellationToken)
Updates a DnsAuthorization.
Parameters | |
---|---|
Name | Description |
dnsAuthorization | DnsAuthorization Required. A definition of the dns authorization to update. |
updateMask | FieldMask Required. The update mask applies to the resource. For the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
DnsAuthorization dnsAuthorization = new DnsAuthorization();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.UpdateDnsAuthorizationAsync(dnsAuthorization, updateMask);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceUpdateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
UpdateDnsAuthorizationAsync(UpdateDnsAuthorizationRequest, CallSettings)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> UpdateDnsAuthorizationAsync(UpdateDnsAuthorizationRequest request, CallSettings callSettings = null)
Updates a DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | UpdateDnsAuthorizationRequest 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 |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateDnsAuthorizationRequest request = new UpdateDnsAuthorizationRequest
{
DnsAuthorization = new DnsAuthorization(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.UpdateDnsAuthorizationAsync(request);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceUpdateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}
UpdateDnsAuthorizationAsync(UpdateDnsAuthorizationRequest, CancellationToken)
public virtual Task<Operation<DnsAuthorization, OperationMetadata>> UpdateDnsAuthorizationAsync(UpdateDnsAuthorizationRequest request, CancellationToken cancellationToken)
Updates a DnsAuthorization.
Parameters | |
---|---|
Name | Description |
request | UpdateDnsAuthorizationRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<DnsAuthorization, OperationMetadata>> | A Task containing the RPC response. |
// Create client
CertificateManagerClient certificateManagerClient = await CertificateManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateDnsAuthorizationRequest request = new UpdateDnsAuthorizationRequest
{
DnsAuthorization = new DnsAuthorization(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<DnsAuthorization, OperationMetadata> response = await certificateManagerClient.UpdateDnsAuthorizationAsync(request);
// Poll until the returned long-running operation is complete
Operation<DnsAuthorization, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
DnsAuthorization result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<DnsAuthorization, OperationMetadata> retrievedResponse = await certificateManagerClient.PollOnceUpdateDnsAuthorizationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
DnsAuthorization retrievedResult = retrievedResponse.Result;
}