@Generated(value="by gapic-generator-java") public class CertificateManagerClient extends Object implements com.google.api.gax.core.BackgroundResource
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, CertificateMap and CertificateMapEntry IDs have to fully match the regexp `[a-z0-9-]{1,63}`. In other words, - only lower case letters, digits, and hyphen are allowed - length of the resource ID has to be in [1,63] range.
Provides methods to manage Cloud Certificate Manager entities.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
Certificate response = certificateManagerClient.getCertificate(name);
}
Note: close() needs to be called on the CertificateManagerClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
| ListCertificates | Lists Certificates in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| GetCertificate | Gets details of a single Certificate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| CreateCertificate | Creates a new Certificate in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| UpdateCertificate | Updates a Certificate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| DeleteCertificate | Deletes a single Certificate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| ListCertificateMaps | Lists CertificateMaps in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| GetCertificateMap | Gets details of a single CertificateMap. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| CreateCertificateMap | Creates a new CertificateMap in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| UpdateCertificateMap | Updates a CertificateMap. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| DeleteCertificateMap | 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. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| ListCertificateMapEntries | Lists CertificateMapEntries in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| GetCertificateMapEntry | Gets details of a single CertificateMapEntry. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| CreateCertificateMapEntry | Creates a new CertificateMapEntry in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| UpdateCertificateMapEntry | Updates a CertificateMapEntry. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| DeleteCertificateMapEntry | Deletes a single CertificateMapEntry. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| ListDnsAuthorizations | Lists DnsAuthorizations in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| GetDnsAuthorization | Gets details of a single DnsAuthorization. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| CreateDnsAuthorization | Creates a new DnsAuthorization in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| UpdateDnsAuthorization | Updates a DnsAuthorization. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| DeleteDnsAuthorization | Deletes a single DnsAuthorization. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| ListCertificateIssuanceConfigs | Lists CertificateIssuanceConfigs in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| GetCertificateIssuanceConfig | Gets details of a single CertificateIssuanceConfig. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| CreateCertificateIssuanceConfig | Creates a new CertificateIssuanceConfig in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| DeleteCertificateIssuanceConfig | Deletes a single CertificateIssuanceConfig. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| ListLocations | Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
| GetLocation | Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of CertificateManagerSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CertificateManagerSettings certificateManagerSettings =
CertificateManagerSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
CertificateManagerClient certificateManagerClient =
CertificateManagerClient.create(certificateManagerSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CertificateManagerSettings certificateManagerSettings =
CertificateManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
CertificateManagerClient certificateManagerClient =
CertificateManagerClient.create(certificateManagerSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CertificateManagerSettings certificateManagerSettings =
CertificateManagerSettings.newHttpJsonBuilder().build();
CertificateManagerClient certificateManagerClient =
CertificateManagerClient.create(certificateManagerSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
| Modifier | Constructor and Description |
|---|---|
protected |
CertificateManagerClient(CertificateManagerSettings settings)
Constructs an instance of CertificateManagerClient, using the given settings.
|
protected |
CertificateManagerClient(CertificateManagerStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static CertificateManagerClient |
create()
Constructs an instance of CertificateManagerClient with default settings.
|
static CertificateManagerClient |
create(CertificateManagerSettings settings)
Constructs an instance of CertificateManagerClient, using the given settings.
|
static CertificateManagerClient |
create(CertificateManagerStub stub)
Constructs an instance of CertificateManagerClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> |
createCertificateAsync(CreateCertificateRequest request)
Creates a new Certificate in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> |
createCertificateAsync(LocationName parent,
Certificate certificate,
String certificateId)
Creates a new Certificate in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> |
createCertificateAsync(String parent,
Certificate certificate,
String certificateId)
Creates a new Certificate in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateCertificateRequest,com.google.longrunning.Operation> |
createCertificateCallable()
Creates a new Certificate in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateIssuanceConfig,OperationMetadata> |
createCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest request)
Creates a new CertificateIssuanceConfig in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateIssuanceConfig,OperationMetadata> |
createCertificateIssuanceConfigAsync(LocationName parent,
CertificateIssuanceConfig certificateIssuanceConfig,
String certificateIssuanceConfigId)
Creates a new CertificateIssuanceConfig in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateIssuanceConfig,OperationMetadata> |
createCertificateIssuanceConfigAsync(String parent,
CertificateIssuanceConfig certificateIssuanceConfig,
String certificateIssuanceConfigId)
Creates a new CertificateIssuanceConfig in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateCertificateIssuanceConfigRequest,com.google.longrunning.Operation> |
createCertificateIssuanceConfigCallable()
Creates a new CertificateIssuanceConfig in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateCertificateIssuanceConfigRequest,CertificateIssuanceConfig,OperationMetadata> |
createCertificateIssuanceConfigOperationCallable()
Creates a new CertificateIssuanceConfig in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> |
createCertificateMapAsync(CreateCertificateMapRequest request)
Creates a new CertificateMap in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> |
createCertificateMapAsync(LocationName parent,
CertificateMap certificateMap,
String certificateMapId)
Creates a new CertificateMap in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> |
createCertificateMapAsync(String parent,
CertificateMap certificateMap,
String certificateMapId)
Creates a new CertificateMap in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateCertificateMapRequest,com.google.longrunning.Operation> |
createCertificateMapCallable()
Creates a new CertificateMap in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> |
createCertificateMapEntryAsync(CertificateMapName parent,
CertificateMapEntry certificateMapEntry,
String certificateMapEntryId)
Creates a new CertificateMapEntry in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> |
createCertificateMapEntryAsync(CreateCertificateMapEntryRequest request)
Creates a new CertificateMapEntry in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> |
createCertificateMapEntryAsync(String parent,
CertificateMapEntry certificateMapEntry,
String certificateMapEntryId)
Creates a new CertificateMapEntry in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateCertificateMapEntryRequest,com.google.longrunning.Operation> |
createCertificateMapEntryCallable()
Creates a new CertificateMapEntry in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateCertificateMapEntryRequest,CertificateMapEntry,OperationMetadata> |
createCertificateMapEntryOperationCallable()
Creates a new CertificateMapEntry in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateCertificateMapRequest,CertificateMap,OperationMetadata> |
createCertificateMapOperationCallable()
Creates a new CertificateMap in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateCertificateRequest,Certificate,OperationMetadata> |
createCertificateOperationCallable()
Creates a new Certificate in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> |
createDnsAuthorizationAsync(CreateDnsAuthorizationRequest request)
Creates a new DnsAuthorization in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> |
createDnsAuthorizationAsync(LocationName parent,
DnsAuthorization dnsAuthorization,
String dnsAuthorizationId)
Creates a new DnsAuthorization in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> |
createDnsAuthorizationAsync(String parent,
DnsAuthorization dnsAuthorization,
String dnsAuthorizationId)
Creates a new DnsAuthorization in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<CreateDnsAuthorizationRequest,com.google.longrunning.Operation> |
createDnsAuthorizationCallable()
Creates a new DnsAuthorization in a given project and location.
|
com.google.api.gax.rpc.OperationCallable<CreateDnsAuthorizationRequest,DnsAuthorization,OperationMetadata> |
createDnsAuthorizationOperationCallable()
Creates a new DnsAuthorization in a given project and location.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateAsync(CertificateName name)
Deletes a single Certificate.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateAsync(DeleteCertificateRequest request)
Deletes a single Certificate.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateAsync(String name)
Deletes a single Certificate.
|
com.google.api.gax.rpc.UnaryCallable<DeleteCertificateRequest,com.google.longrunning.Operation> |
deleteCertificateCallable()
Deletes a single Certificate.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateIssuanceConfigAsync(CertificateIssuanceConfigName name)
Deletes a single CertificateIssuanceConfig.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateIssuanceConfigAsync(DeleteCertificateIssuanceConfigRequest request)
Deletes a single CertificateIssuanceConfig.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateIssuanceConfigAsync(String name)
Deletes a single CertificateIssuanceConfig.
|
com.google.api.gax.rpc.UnaryCallable<DeleteCertificateIssuanceConfigRequest,com.google.longrunning.Operation> |
deleteCertificateIssuanceConfigCallable()
Deletes a single CertificateIssuanceConfig.
|
com.google.api.gax.rpc.OperationCallable<DeleteCertificateIssuanceConfigRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateIssuanceConfigOperationCallable()
Deletes a single CertificateIssuanceConfig.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapAsync(CertificateMapName name)
Deletes a single CertificateMap.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapAsync(DeleteCertificateMapRequest request)
Deletes a single CertificateMap.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapAsync(String name)
Deletes a single CertificateMap.
|
com.google.api.gax.rpc.UnaryCallable<DeleteCertificateMapRequest,com.google.longrunning.Operation> |
deleteCertificateMapCallable()
Deletes a single CertificateMap.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapEntryAsync(CertificateMapEntryName name)
Deletes a single CertificateMapEntry.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapEntryAsync(DeleteCertificateMapEntryRequest request)
Deletes a single CertificateMapEntry.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapEntryAsync(String name)
Deletes a single CertificateMapEntry.
|
com.google.api.gax.rpc.UnaryCallable<DeleteCertificateMapEntryRequest,com.google.longrunning.Operation> |
deleteCertificateMapEntryCallable()
Deletes a single CertificateMapEntry.
|
com.google.api.gax.rpc.OperationCallable<DeleteCertificateMapEntryRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapEntryOperationCallable()
Deletes a single CertificateMapEntry.
|
com.google.api.gax.rpc.OperationCallable<DeleteCertificateMapRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateMapOperationCallable()
Deletes a single CertificateMap.
|
com.google.api.gax.rpc.OperationCallable<DeleteCertificateRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteCertificateOperationCallable()
Deletes a single Certificate.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteDnsAuthorizationAsync(DeleteDnsAuthorizationRequest request)
Deletes a single DnsAuthorization.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteDnsAuthorizationAsync(DnsAuthorizationName name)
Deletes a single DnsAuthorization.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteDnsAuthorizationAsync(String name)
Deletes a single DnsAuthorization.
|
com.google.api.gax.rpc.UnaryCallable<DeleteDnsAuthorizationRequest,com.google.longrunning.Operation> |
deleteDnsAuthorizationCallable()
Deletes a single DnsAuthorization.
|
com.google.api.gax.rpc.OperationCallable<DeleteDnsAuthorizationRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteDnsAuthorizationOperationCallable()
Deletes a single DnsAuthorization.
|
Certificate |
getCertificate(CertificateName name)
Gets details of a single Certificate.
|
Certificate |
getCertificate(GetCertificateRequest request)
Gets details of a single Certificate.
|
Certificate |
getCertificate(String name)
Gets details of a single Certificate.
|
com.google.api.gax.rpc.UnaryCallable<GetCertificateRequest,Certificate> |
getCertificateCallable()
Gets details of a single Certificate.
|
CertificateIssuanceConfig |
getCertificateIssuanceConfig(CertificateIssuanceConfigName name)
Gets details of a single CertificateIssuanceConfig.
|
CertificateIssuanceConfig |
getCertificateIssuanceConfig(GetCertificateIssuanceConfigRequest request)
Gets details of a single CertificateIssuanceConfig.
|
CertificateIssuanceConfig |
getCertificateIssuanceConfig(String name)
Gets details of a single CertificateIssuanceConfig.
|
com.google.api.gax.rpc.UnaryCallable<GetCertificateIssuanceConfigRequest,CertificateIssuanceConfig> |
getCertificateIssuanceConfigCallable()
Gets details of a single CertificateIssuanceConfig.
|
CertificateMap |
getCertificateMap(CertificateMapName name)
Gets details of a single CertificateMap.
|
CertificateMap |
getCertificateMap(GetCertificateMapRequest request)
Gets details of a single CertificateMap.
|
CertificateMap |
getCertificateMap(String name)
Gets details of a single CertificateMap.
|
com.google.api.gax.rpc.UnaryCallable<GetCertificateMapRequest,CertificateMap> |
getCertificateMapCallable()
Gets details of a single CertificateMap.
|
CertificateMapEntry |
getCertificateMapEntry(CertificateMapEntryName name)
Gets details of a single CertificateMapEntry.
|
CertificateMapEntry |
getCertificateMapEntry(GetCertificateMapEntryRequest request)
Gets details of a single CertificateMapEntry.
|
CertificateMapEntry |
getCertificateMapEntry(String name)
Gets details of a single CertificateMapEntry.
|
com.google.api.gax.rpc.UnaryCallable<GetCertificateMapEntryRequest,CertificateMapEntry> |
getCertificateMapEntryCallable()
Gets details of a single CertificateMapEntry.
|
DnsAuthorization |
getDnsAuthorization(DnsAuthorizationName name)
Gets details of a single DnsAuthorization.
|
DnsAuthorization |
getDnsAuthorization(GetDnsAuthorizationRequest request)
Gets details of a single DnsAuthorization.
|
DnsAuthorization |
getDnsAuthorization(String name)
Gets details of a single DnsAuthorization.
|
com.google.api.gax.rpc.UnaryCallable<GetDnsAuthorizationRequest,DnsAuthorization> |
getDnsAuthorizationCallable()
Gets details of a single DnsAuthorization.
|
com.google.api.gax.httpjson.longrunning.OperationsClient |
getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
com.google.cloud.location.Location |
getLocation(com.google.cloud.location.GetLocationRequest request)
Gets information about a location.
|
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationCallable()
Gets information about a location.
|
com.google.longrunning.OperationsClient |
getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
CertificateManagerSettings |
getSettings() |
CertificateManagerStub |
getStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse |
listCertificateIssuanceConfigs(ListCertificateIssuanceConfigsRequest request)
Lists CertificateIssuanceConfigs in a given project and location.
|
CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse |
listCertificateIssuanceConfigs(LocationName parent)
Lists CertificateIssuanceConfigs in a given project and location.
|
CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse |
listCertificateIssuanceConfigs(String parent)
Lists CertificateIssuanceConfigs in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificateIssuanceConfigsRequest,ListCertificateIssuanceConfigsResponse> |
listCertificateIssuanceConfigsCallable()
Lists CertificateIssuanceConfigs in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificateIssuanceConfigsRequest,CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse> |
listCertificateIssuanceConfigsPagedCallable()
Lists CertificateIssuanceConfigs in a given project and location.
|
CertificateManagerClient.ListCertificateMapEntriesPagedResponse |
listCertificateMapEntries(CertificateMapName parent)
Lists CertificateMapEntries in a given project and location.
|
CertificateManagerClient.ListCertificateMapEntriesPagedResponse |
listCertificateMapEntries(ListCertificateMapEntriesRequest request)
Lists CertificateMapEntries in a given project and location.
|
CertificateManagerClient.ListCertificateMapEntriesPagedResponse |
listCertificateMapEntries(String parent)
Lists CertificateMapEntries in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificateMapEntriesRequest,ListCertificateMapEntriesResponse> |
listCertificateMapEntriesCallable()
Lists CertificateMapEntries in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificateMapEntriesRequest,CertificateManagerClient.ListCertificateMapEntriesPagedResponse> |
listCertificateMapEntriesPagedCallable()
Lists CertificateMapEntries in a given project and location.
|
CertificateManagerClient.ListCertificateMapsPagedResponse |
listCertificateMaps(ListCertificateMapsRequest request)
Lists CertificateMaps in a given project and location.
|
CertificateManagerClient.ListCertificateMapsPagedResponse |
listCertificateMaps(LocationName parent)
Lists CertificateMaps in a given project and location.
|
CertificateManagerClient.ListCertificateMapsPagedResponse |
listCertificateMaps(String parent)
Lists CertificateMaps in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificateMapsRequest,ListCertificateMapsResponse> |
listCertificateMapsCallable()
Lists CertificateMaps in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificateMapsRequest,CertificateManagerClient.ListCertificateMapsPagedResponse> |
listCertificateMapsPagedCallable()
Lists CertificateMaps in a given project and location.
|
CertificateManagerClient.ListCertificatesPagedResponse |
listCertificates(ListCertificatesRequest request)
Lists Certificates in a given project and location.
|
CertificateManagerClient.ListCertificatesPagedResponse |
listCertificates(LocationName parent)
Lists Certificates in a given project and location.
|
CertificateManagerClient.ListCertificatesPagedResponse |
listCertificates(String parent)
Lists Certificates in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificatesRequest,ListCertificatesResponse> |
listCertificatesCallable()
Lists Certificates in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCertificatesRequest,CertificateManagerClient.ListCertificatesPagedResponse> |
listCertificatesPagedCallable()
Lists Certificates in a given project and location.
|
CertificateManagerClient.ListDnsAuthorizationsPagedResponse |
listDnsAuthorizations(ListDnsAuthorizationsRequest request)
Lists DnsAuthorizations in a given project and location.
|
CertificateManagerClient.ListDnsAuthorizationsPagedResponse |
listDnsAuthorizations(LocationName parent)
Lists DnsAuthorizations in a given project and location.
|
CertificateManagerClient.ListDnsAuthorizationsPagedResponse |
listDnsAuthorizations(String parent)
Lists DnsAuthorizations in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListDnsAuthorizationsRequest,ListDnsAuthorizationsResponse> |
listDnsAuthorizationsCallable()
Lists DnsAuthorizations in a given project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListDnsAuthorizationsRequest,CertificateManagerClient.ListDnsAuthorizationsPagedResponse> |
listDnsAuthorizationsPagedCallable()
Lists DnsAuthorizations in a given project and location.
|
CertificateManagerClient.ListLocationsPagedResponse |
listLocations(com.google.cloud.location.ListLocationsRequest request)
Lists information about the supported locations for this service.
|
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsCallable()
Lists information about the supported locations for this service.
|
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CertificateManagerClient.ListLocationsPagedResponse> |
listLocationsPagedCallable()
Lists information about the supported locations for this service.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> |
updateCertificateAsync(Certificate certificate,
com.google.protobuf.FieldMask updateMask)
Updates a Certificate.
|
com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> |
updateCertificateAsync(UpdateCertificateRequest request)
Updates a Certificate.
|
com.google.api.gax.rpc.UnaryCallable<UpdateCertificateRequest,com.google.longrunning.Operation> |
updateCertificateCallable()
Updates a Certificate.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> |
updateCertificateMapAsync(CertificateMap certificateMap,
com.google.protobuf.FieldMask updateMask)
Updates a CertificateMap.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> |
updateCertificateMapAsync(UpdateCertificateMapRequest request)
Updates a CertificateMap.
|
com.google.api.gax.rpc.UnaryCallable<UpdateCertificateMapRequest,com.google.longrunning.Operation> |
updateCertificateMapCallable()
Updates a CertificateMap.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> |
updateCertificateMapEntryAsync(CertificateMapEntry certificateMapEntry,
com.google.protobuf.FieldMask updateMask)
Updates a CertificateMapEntry.
|
com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> |
updateCertificateMapEntryAsync(UpdateCertificateMapEntryRequest request)
Updates a CertificateMapEntry.
|
com.google.api.gax.rpc.UnaryCallable<UpdateCertificateMapEntryRequest,com.google.longrunning.Operation> |
updateCertificateMapEntryCallable()
Updates a CertificateMapEntry.
|
com.google.api.gax.rpc.OperationCallable<UpdateCertificateMapEntryRequest,CertificateMapEntry,OperationMetadata> |
updateCertificateMapEntryOperationCallable()
Updates a CertificateMapEntry.
|
com.google.api.gax.rpc.OperationCallable<UpdateCertificateMapRequest,CertificateMap,OperationMetadata> |
updateCertificateMapOperationCallable()
Updates a CertificateMap.
|
com.google.api.gax.rpc.OperationCallable<UpdateCertificateRequest,Certificate,OperationMetadata> |
updateCertificateOperationCallable()
Updates a Certificate.
|
com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> |
updateDnsAuthorizationAsync(DnsAuthorization dnsAuthorization,
com.google.protobuf.FieldMask updateMask)
Updates a DnsAuthorization.
|
com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> |
updateDnsAuthorizationAsync(UpdateDnsAuthorizationRequest request)
Updates a DnsAuthorization.
|
com.google.api.gax.rpc.UnaryCallable<UpdateDnsAuthorizationRequest,com.google.longrunning.Operation> |
updateDnsAuthorizationCallable()
Updates a DnsAuthorization.
|
com.google.api.gax.rpc.OperationCallable<UpdateDnsAuthorizationRequest,DnsAuthorization,OperationMetadata> |
updateDnsAuthorizationOperationCallable()
Updates a DnsAuthorization.
|
protected CertificateManagerClient(CertificateManagerSettings settings) throws IOException
IOExceptionprotected CertificateManagerClient(CertificateManagerStub stub)
public static final CertificateManagerClient create() throws IOException
IOExceptionpublic static final CertificateManagerClient create(CertificateManagerSettings settings) throws IOException
IOExceptionpublic static final CertificateManagerClient create(CertificateManagerStub stub)
public final CertificateManagerSettings getSettings()
public CertificateManagerStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
@BetaApi public final com.google.api.gax.httpjson.longrunning.OperationsClient getHttpJsonOperationsClient()
public final CertificateManagerClient.ListCertificatesPagedResponse listCertificates(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Certificate element : certificateManagerClient.listCertificates(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the certificate should be listed,
specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificatesPagedResponse listCertificates(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Certificate element : certificateManagerClient.listCertificates(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the certificate should be listed,
specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificatesPagedResponse listCertificates(ListCertificatesRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificatesRequest request =
ListCertificatesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Certificate element : certificateManagerClient.listCertificates(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListCertificatesRequest,CertificateManagerClient.ListCertificatesPagedResponse> listCertificatesPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificatesRequest request =
ListCertificatesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Certificate> future =
certificateManagerClient.listCertificatesPagedCallable().futureCall(request);
// Do something.
for (Certificate element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListCertificatesRequest,ListCertificatesResponse> listCertificatesCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificatesRequest request =
ListCertificatesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListCertificatesResponse response =
certificateManagerClient.listCertificatesCallable().call(request);
for (Certificate element : response.getCertificatesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final Certificate getCertificate(CertificateName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
Certificate response = certificateManagerClient.getCertificate(name);
}
name - Required. A name of the certificate to describe. Must be in the format
`projects/*/locations/*/certificates/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Certificate getCertificate(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString();
Certificate response = certificateManagerClient.getCertificate(name);
}
name - Required. A name of the certificate to describe. Must be in the format
`projects/*/locations/*/certificates/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Certificate getCertificate(GetCertificateRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateRequest request =
GetCertificateRequest.newBuilder()
.setName(CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString())
.build();
Certificate response = certificateManagerClient.getCertificate(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetCertificateRequest,Certificate> getCertificateCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateRequest request =
GetCertificateRequest.newBuilder()
.setName(CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString())
.build();
ApiFuture<Certificate> future =
certificateManagerClient.getCertificateCallable().futureCall(request);
// Do something.
Certificate response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> createCertificateAsync(LocationName parent, Certificate certificate, String certificateId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Certificate certificate = Certificate.newBuilder().build();
String certificateId = "certificateId-644529902";
Certificate response =
certificateManagerClient.createCertificateAsync(parent, certificate, certificateId).get();
}
parent - Required. The parent resource of the certificate. Must be in the format
`projects/*/locations/*`.certificate - Required. A definition of the certificate to create.certificateId - Required. A user-provided name of the certificate.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> createCertificateAsync(String parent, Certificate certificate, String certificateId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Certificate certificate = Certificate.newBuilder().build();
String certificateId = "certificateId-644529902";
Certificate response =
certificateManagerClient.createCertificateAsync(parent, certificate, certificateId).get();
}
parent - Required. The parent resource of the certificate. Must be in the format
`projects/*/locations/*`.certificate - Required. A definition of the certificate to create.certificateId - Required. A user-provided name of the certificate.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> createCertificateAsync(CreateCertificateRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateRequest request =
CreateCertificateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateId("certificateId-644529902")
.setCertificate(Certificate.newBuilder().build())
.build();
Certificate response = certificateManagerClient.createCertificateAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateCertificateRequest,Certificate,OperationMetadata> createCertificateOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateRequest request =
CreateCertificateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateId("certificateId-644529902")
.setCertificate(Certificate.newBuilder().build())
.build();
OperationFuture<Certificate, OperationMetadata> future =
certificateManagerClient.createCertificateOperationCallable().futureCall(request);
// Do something.
Certificate response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateCertificateRequest,com.google.longrunning.Operation> createCertificateCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateRequest request =
CreateCertificateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateId("certificateId-644529902")
.setCertificate(Certificate.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.createCertificateCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> updateCertificateAsync(Certificate certificate, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
Certificate certificate = Certificate.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Certificate response =
certificateManagerClient.updateCertificateAsync(certificate, updateMask).get();
}
certificate - Required. A definition of the certificate to update.updateMask - Required. The update mask applies to the resource. For the `FieldMask`
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Certificate,OperationMetadata> updateCertificateAsync(UpdateCertificateRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateRequest request =
UpdateCertificateRequest.newBuilder()
.setCertificate(Certificate.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Certificate response = certificateManagerClient.updateCertificateAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateCertificateRequest,Certificate,OperationMetadata> updateCertificateOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateRequest request =
UpdateCertificateRequest.newBuilder()
.setCertificate(Certificate.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<Certificate, OperationMetadata> future =
certificateManagerClient.updateCertificateOperationCallable().futureCall(request);
// Do something.
Certificate response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateCertificateRequest,com.google.longrunning.Operation> updateCertificateCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateRequest request =
UpdateCertificateRequest.newBuilder()
.setCertificate(Certificate.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.updateCertificateCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateAsync(CertificateName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateName name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]");
certificateManagerClient.deleteCertificateAsync(name).get();
}
name - Required. A name of the certificate to delete. Must be in the format
`projects/*/locations/*/certificates/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name = CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString();
certificateManagerClient.deleteCertificateAsync(name).get();
}
name - Required. A name of the certificate to delete. Must be in the format
`projects/*/locations/*/certificates/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateAsync(DeleteCertificateRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateRequest request =
DeleteCertificateRequest.newBuilder()
.setName(CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString())
.build();
certificateManagerClient.deleteCertificateAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteCertificateRequest,com.google.protobuf.Empty,OperationMetadata> deleteCertificateOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateRequest request =
DeleteCertificateRequest.newBuilder()
.setName(CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
certificateManagerClient.deleteCertificateOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteCertificateRequest,com.google.longrunning.Operation> deleteCertificateCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateRequest request =
DeleteCertificateRequest.newBuilder()
.setName(CertificateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE]").toString())
.build();
ApiFuture<Operation> future =
certificateManagerClient.deleteCertificateCallable().futureCall(request);
// Do something.
future.get();
}
public final CertificateManagerClient.ListCertificateMapsPagedResponse listCertificateMaps(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (CertificateMap element :
certificateManagerClient.listCertificateMaps(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the certificate maps should be
listed, specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificateMapsPagedResponse listCertificateMaps(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (CertificateMap element :
certificateManagerClient.listCertificateMaps(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the certificate maps should be
listed, specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificateMapsPagedResponse listCertificateMaps(ListCertificateMapsRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateMapsRequest request =
ListCertificateMapsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (CertificateMap element :
certificateManagerClient.listCertificateMaps(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListCertificateMapsRequest,CertificateManagerClient.ListCertificateMapsPagedResponse> listCertificateMapsPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateMapsRequest request =
ListCertificateMapsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<CertificateMap> future =
certificateManagerClient.listCertificateMapsPagedCallable().futureCall(request);
// Do something.
for (CertificateMap element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListCertificateMapsRequest,ListCertificateMapsResponse> listCertificateMapsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateMapsRequest request =
ListCertificateMapsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListCertificateMapsResponse response =
certificateManagerClient.listCertificateMapsCallable().call(request);
for (CertificateMap element : response.getCertificateMapsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final CertificateMap getCertificateMap(CertificateMapName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapName name =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
CertificateMap response = certificateManagerClient.getCertificateMap(name);
}
name - Required. A name of the certificate map to describe. Must be in the format
`projects/*/locations/*/certificateMaps/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateMap getCertificateMap(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString();
CertificateMap response = certificateManagerClient.getCertificateMap(name);
}
name - Required. A name of the certificate map to describe. Must be in the format
`projects/*/locations/*/certificateMaps/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateMap getCertificateMap(GetCertificateMapRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateMapRequest request =
GetCertificateMapRequest.newBuilder()
.setName(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.build();
CertificateMap response = certificateManagerClient.getCertificateMap(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetCertificateMapRequest,CertificateMap> getCertificateMapCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateMapRequest request =
GetCertificateMapRequest.newBuilder()
.setName(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.build();
ApiFuture<CertificateMap> future =
certificateManagerClient.getCertificateMapCallable().futureCall(request);
// Do something.
CertificateMap response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> createCertificateMapAsync(LocationName parent, CertificateMap certificateMap, String certificateMapId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
CertificateMap certificateMap = CertificateMap.newBuilder().build();
String certificateMapId = "certificateMapId1612184640";
CertificateMap response =
certificateManagerClient
.createCertificateMapAsync(parent, certificateMap, certificateMapId)
.get();
}
parent - Required. The parent resource of the certificate map. Must be in the format
`projects/*/locations/*`.certificateMap - Required. A definition of the certificate map to create.certificateMapId - Required. A user-provided name of the certificate map.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> createCertificateMapAsync(String parent, CertificateMap certificateMap, String certificateMapId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
CertificateMap certificateMap = CertificateMap.newBuilder().build();
String certificateMapId = "certificateMapId1612184640";
CertificateMap response =
certificateManagerClient
.createCertificateMapAsync(parent, certificateMap, certificateMapId)
.get();
}
parent - Required. The parent resource of the certificate map. Must be in the format
`projects/*/locations/*`.certificateMap - Required. A definition of the certificate map to create.certificateMapId - Required. A user-provided name of the certificate map.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> createCertificateMapAsync(CreateCertificateMapRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateMapRequest request =
CreateCertificateMapRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateMapId("certificateMapId1612184640")
.setCertificateMap(CertificateMap.newBuilder().build())
.build();
CertificateMap response = certificateManagerClient.createCertificateMapAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateCertificateMapRequest,CertificateMap,OperationMetadata> createCertificateMapOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateMapRequest request =
CreateCertificateMapRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateMapId("certificateMapId1612184640")
.setCertificateMap(CertificateMap.newBuilder().build())
.build();
OperationFuture<CertificateMap, OperationMetadata> future =
certificateManagerClient.createCertificateMapOperationCallable().futureCall(request);
// Do something.
CertificateMap response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateCertificateMapRequest,com.google.longrunning.Operation> createCertificateMapCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateMapRequest request =
CreateCertificateMapRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateMapId("certificateMapId1612184640")
.setCertificateMap(CertificateMap.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.createCertificateMapCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> updateCertificateMapAsync(CertificateMap certificateMap, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMap certificateMap = CertificateMap.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
CertificateMap response =
certificateManagerClient.updateCertificateMapAsync(certificateMap, updateMask).get();
}
certificateMap - Required. A definition of the certificate map to update.updateMask - Required. The update mask applies to the resource. For the `FieldMask`
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateMap,OperationMetadata> updateCertificateMapAsync(UpdateCertificateMapRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateMapRequest request =
UpdateCertificateMapRequest.newBuilder()
.setCertificateMap(CertificateMap.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
CertificateMap response = certificateManagerClient.updateCertificateMapAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateCertificateMapRequest,CertificateMap,OperationMetadata> updateCertificateMapOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateMapRequest request =
UpdateCertificateMapRequest.newBuilder()
.setCertificateMap(CertificateMap.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<CertificateMap, OperationMetadata> future =
certificateManagerClient.updateCertificateMapOperationCallable().futureCall(request);
// Do something.
CertificateMap response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateCertificateMapRequest,com.google.longrunning.Operation> updateCertificateMapCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateMapRequest request =
UpdateCertificateMapRequest.newBuilder()
.setCertificateMap(CertificateMap.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.updateCertificateMapCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapAsync(CertificateMapName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapName name =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
certificateManagerClient.deleteCertificateMapAsync(name).get();
}
name - Required. A name of the certificate map to delete. Must be in the format
`projects/*/locations/*/certificateMaps/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString();
certificateManagerClient.deleteCertificateMapAsync(name).get();
}
name - Required. A name of the certificate map to delete. Must be in the format
`projects/*/locations/*/certificateMaps/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapAsync(DeleteCertificateMapRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateMapRequest request =
DeleteCertificateMapRequest.newBuilder()
.setName(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.build();
certificateManagerClient.deleteCertificateMapAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteCertificateMapRequest,com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateMapRequest request =
DeleteCertificateMapRequest.newBuilder()
.setName(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
certificateManagerClient.deleteCertificateMapOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteCertificateMapRequest,com.google.longrunning.Operation> deleteCertificateMapCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateMapRequest request =
DeleteCertificateMapRequest.newBuilder()
.setName(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.build();
ApiFuture<Operation> future =
certificateManagerClient.deleteCertificateMapCallable().futureCall(request);
// Do something.
future.get();
}
public final CertificateManagerClient.ListCertificateMapEntriesPagedResponse listCertificateMapEntries(CertificateMapName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapName parent =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
for (CertificateMapEntry element :
certificateManagerClient.listCertificateMapEntries(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project, location and certificate map from which the certificate
map entries should be listed, specified in the format
`projects/*/locations/*/certificateMaps/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificateMapEntriesPagedResponse listCertificateMapEntries(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString();
for (CertificateMapEntry element :
certificateManagerClient.listCertificateMapEntries(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project, location and certificate map from which the certificate
map entries should be listed, specified in the format
`projects/*/locations/*/certificateMaps/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificateMapEntriesPagedResponse listCertificateMapEntries(ListCertificateMapEntriesRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateMapEntriesRequest request =
ListCertificateMapEntriesRequest.newBuilder()
.setParent(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (CertificateMapEntry element :
certificateManagerClient.listCertificateMapEntries(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListCertificateMapEntriesRequest,CertificateManagerClient.ListCertificateMapEntriesPagedResponse> listCertificateMapEntriesPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateMapEntriesRequest request =
ListCertificateMapEntriesRequest.newBuilder()
.setParent(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<CertificateMapEntry> future =
certificateManagerClient.listCertificateMapEntriesPagedCallable().futureCall(request);
// Do something.
for (CertificateMapEntry element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListCertificateMapEntriesRequest,ListCertificateMapEntriesResponse> listCertificateMapEntriesCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateMapEntriesRequest request =
ListCertificateMapEntriesRequest.newBuilder()
.setParent(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListCertificateMapEntriesResponse response =
certificateManagerClient.listCertificateMapEntriesCallable().call(request);
for (CertificateMapEntry element : response.getCertificateMapEntriesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final CertificateMapEntry getCertificateMapEntry(CertificateMapEntryName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapEntryName name =
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
CertificateMapEntry response = certificateManagerClient.getCertificateMapEntry(name);
}
name - Required. A name of the certificate map entry to describe. Must be in the format
`projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateMapEntry getCertificateMapEntry(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString();
CertificateMapEntry response = certificateManagerClient.getCertificateMapEntry(name);
}
name - Required. A name of the certificate map entry to describe. Must be in the format
`projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateMapEntry getCertificateMapEntry(GetCertificateMapEntryRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateMapEntryRequest request =
GetCertificateMapEntryRequest.newBuilder()
.setName(
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString())
.build();
CertificateMapEntry response = certificateManagerClient.getCertificateMapEntry(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetCertificateMapEntryRequest,CertificateMapEntry> getCertificateMapEntryCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateMapEntryRequest request =
GetCertificateMapEntryRequest.newBuilder()
.setName(
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString())
.build();
ApiFuture<CertificateMapEntry> future =
certificateManagerClient.getCertificateMapEntryCallable().futureCall(request);
// Do something.
CertificateMapEntry response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> createCertificateMapEntryAsync(CertificateMapName parent, CertificateMapEntry certificateMapEntry, String certificateMapEntryId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapName parent =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]");
CertificateMapEntry certificateMapEntry = CertificateMapEntry.newBuilder().build();
String certificateMapEntryId = "certificateMapEntryId-859079384";
CertificateMapEntry response =
certificateManagerClient
.createCertificateMapEntryAsync(parent, certificateMapEntry, certificateMapEntryId)
.get();
}
parent - Required. The parent resource of the certificate map entry. Must be in the format
`projects/*/locations/*/certificateMaps/*`.certificateMapEntry - Required. A definition of the certificate map entry to create.certificateMapEntryId - Required. A user-provided name of the certificate map entry.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> createCertificateMapEntryAsync(String parent, CertificateMapEntry certificateMapEntry, String certificateMapEntryId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent =
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString();
CertificateMapEntry certificateMapEntry = CertificateMapEntry.newBuilder().build();
String certificateMapEntryId = "certificateMapEntryId-859079384";
CertificateMapEntry response =
certificateManagerClient
.createCertificateMapEntryAsync(parent, certificateMapEntry, certificateMapEntryId)
.get();
}
parent - Required. The parent resource of the certificate map entry. Must be in the format
`projects/*/locations/*/certificateMaps/*`.certificateMapEntry - Required. A definition of the certificate map entry to create.certificateMapEntryId - Required. A user-provided name of the certificate map entry.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> createCertificateMapEntryAsync(CreateCertificateMapEntryRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateMapEntryRequest request =
CreateCertificateMapEntryRequest.newBuilder()
.setParent(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.setCertificateMapEntryId("certificateMapEntryId-859079384")
.setCertificateMapEntry(CertificateMapEntry.newBuilder().build())
.build();
CertificateMapEntry response =
certificateManagerClient.createCertificateMapEntryAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateCertificateMapEntryRequest,CertificateMapEntry,OperationMetadata> createCertificateMapEntryOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateMapEntryRequest request =
CreateCertificateMapEntryRequest.newBuilder()
.setParent(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.setCertificateMapEntryId("certificateMapEntryId-859079384")
.setCertificateMapEntry(CertificateMapEntry.newBuilder().build())
.build();
OperationFuture<CertificateMapEntry, OperationMetadata> future =
certificateManagerClient.createCertificateMapEntryOperationCallable().futureCall(request);
// Do something.
CertificateMapEntry response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateCertificateMapEntryRequest,com.google.longrunning.Operation> createCertificateMapEntryCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateMapEntryRequest request =
CreateCertificateMapEntryRequest.newBuilder()
.setParent(
CertificateMapName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]").toString())
.setCertificateMapEntryId("certificateMapEntryId-859079384")
.setCertificateMapEntry(CertificateMapEntry.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.createCertificateMapEntryCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> updateCertificateMapEntryAsync(CertificateMapEntry certificateMapEntry, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapEntry certificateMapEntry = CertificateMapEntry.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
CertificateMapEntry response =
certificateManagerClient
.updateCertificateMapEntryAsync(certificateMapEntry, updateMask)
.get();
}
certificateMapEntry - Required. A definition of the certificate map entry to create map
entry.updateMask - Required. The update mask applies to the resource. For the `FieldMask`
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateMapEntry,OperationMetadata> updateCertificateMapEntryAsync(UpdateCertificateMapEntryRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateMapEntryRequest request =
UpdateCertificateMapEntryRequest.newBuilder()
.setCertificateMapEntry(CertificateMapEntry.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
CertificateMapEntry response =
certificateManagerClient.updateCertificateMapEntryAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateCertificateMapEntryRequest,CertificateMapEntry,OperationMetadata> updateCertificateMapEntryOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateMapEntryRequest request =
UpdateCertificateMapEntryRequest.newBuilder()
.setCertificateMapEntry(CertificateMapEntry.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<CertificateMapEntry, OperationMetadata> future =
certificateManagerClient.updateCertificateMapEntryOperationCallable().futureCall(request);
// Do something.
CertificateMapEntry response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateCertificateMapEntryRequest,com.google.longrunning.Operation> updateCertificateMapEntryCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateCertificateMapEntryRequest request =
UpdateCertificateMapEntryRequest.newBuilder()
.setCertificateMapEntry(CertificateMapEntry.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.updateCertificateMapEntryCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapEntryAsync(CertificateMapEntryName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateMapEntryName name =
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]");
certificateManagerClient.deleteCertificateMapEntryAsync(name).get();
}
name - Required. A name of the certificate map entry to delete. Must be in the format
`projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapEntryAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString();
certificateManagerClient.deleteCertificateMapEntryAsync(name).get();
}
name - Required. A name of the certificate map entry to delete. Must be in the format
`projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapEntryAsync(DeleteCertificateMapEntryRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateMapEntryRequest request =
DeleteCertificateMapEntryRequest.newBuilder()
.setName(
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString())
.build();
certificateManagerClient.deleteCertificateMapEntryAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteCertificateMapEntryRequest,com.google.protobuf.Empty,OperationMetadata> deleteCertificateMapEntryOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateMapEntryRequest request =
DeleteCertificateMapEntryRequest.newBuilder()
.setName(
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
certificateManagerClient.deleteCertificateMapEntryOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteCertificateMapEntryRequest,com.google.longrunning.Operation> deleteCertificateMapEntryCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateMapEntryRequest request =
DeleteCertificateMapEntryRequest.newBuilder()
.setName(
CertificateMapEntryName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_MAP]", "[CERTIFICATE_MAP_ENTRY]")
.toString())
.build();
ApiFuture<Operation> future =
certificateManagerClient.deleteCertificateMapEntryCallable().futureCall(request);
// Do something.
future.get();
}
public final CertificateManagerClient.ListDnsAuthorizationsPagedResponse listDnsAuthorizations(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (DnsAuthorization element :
certificateManagerClient.listDnsAuthorizations(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the dns authorizations should be
listed, specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListDnsAuthorizationsPagedResponse listDnsAuthorizations(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (DnsAuthorization element :
certificateManagerClient.listDnsAuthorizations(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the dns authorizations should be
listed, specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListDnsAuthorizationsPagedResponse listDnsAuthorizations(ListDnsAuthorizationsRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListDnsAuthorizationsRequest request =
ListDnsAuthorizationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (DnsAuthorization element :
certificateManagerClient.listDnsAuthorizations(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListDnsAuthorizationsRequest,CertificateManagerClient.ListDnsAuthorizationsPagedResponse> listDnsAuthorizationsPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListDnsAuthorizationsRequest request =
ListDnsAuthorizationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<DnsAuthorization> future =
certificateManagerClient.listDnsAuthorizationsPagedCallable().futureCall(request);
// Do something.
for (DnsAuthorization element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListDnsAuthorizationsRequest,ListDnsAuthorizationsResponse> listDnsAuthorizationsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListDnsAuthorizationsRequest request =
ListDnsAuthorizationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListDnsAuthorizationsResponse response =
certificateManagerClient.listDnsAuthorizationsCallable().call(request);
for (DnsAuthorization element : response.getDnsAuthorizationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final DnsAuthorization getDnsAuthorization(DnsAuthorizationName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DnsAuthorizationName name =
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
DnsAuthorization response = certificateManagerClient.getDnsAuthorization(name);
}
name - Required. A name of the dns authorization to describe. Must be in the format
`projects/*/locations/*/dnsAuthorizations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DnsAuthorization getDnsAuthorization(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]").toString();
DnsAuthorization response = certificateManagerClient.getDnsAuthorization(name);
}
name - Required. A name of the dns authorization to describe. Must be in the format
`projects/*/locations/*/dnsAuthorizations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final DnsAuthorization getDnsAuthorization(GetDnsAuthorizationRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetDnsAuthorizationRequest request =
GetDnsAuthorizationRequest.newBuilder()
.setName(
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]")
.toString())
.build();
DnsAuthorization response = certificateManagerClient.getDnsAuthorization(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetDnsAuthorizationRequest,DnsAuthorization> getDnsAuthorizationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetDnsAuthorizationRequest request =
GetDnsAuthorizationRequest.newBuilder()
.setName(
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]")
.toString())
.build();
ApiFuture<DnsAuthorization> future =
certificateManagerClient.getDnsAuthorizationCallable().futureCall(request);
// Do something.
DnsAuthorization response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> createDnsAuthorizationAsync(LocationName parent, DnsAuthorization dnsAuthorization, String dnsAuthorizationId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
DnsAuthorization dnsAuthorization = DnsAuthorization.newBuilder().build();
String dnsAuthorizationId = "dnsAuthorizationId-2054763765";
DnsAuthorization response =
certificateManagerClient
.createDnsAuthorizationAsync(parent, dnsAuthorization, dnsAuthorizationId)
.get();
}
parent - Required. The parent resource of the dns authorization. Must be in the format
`projects/*/locations/*`.dnsAuthorization - Required. A definition of the dns authorization to create.dnsAuthorizationId - Required. A user-provided name of the dns authorization.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> createDnsAuthorizationAsync(String parent, DnsAuthorization dnsAuthorization, String dnsAuthorizationId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
DnsAuthorization dnsAuthorization = DnsAuthorization.newBuilder().build();
String dnsAuthorizationId = "dnsAuthorizationId-2054763765";
DnsAuthorization response =
certificateManagerClient
.createDnsAuthorizationAsync(parent, dnsAuthorization, dnsAuthorizationId)
.get();
}
parent - Required. The parent resource of the dns authorization. Must be in the format
`projects/*/locations/*`.dnsAuthorization - Required. A definition of the dns authorization to create.dnsAuthorizationId - Required. A user-provided name of the dns authorization.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> createDnsAuthorizationAsync(CreateDnsAuthorizationRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateDnsAuthorizationRequest request =
CreateDnsAuthorizationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDnsAuthorizationId("dnsAuthorizationId-2054763765")
.setDnsAuthorization(DnsAuthorization.newBuilder().build())
.build();
DnsAuthorization response =
certificateManagerClient.createDnsAuthorizationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateDnsAuthorizationRequest,DnsAuthorization,OperationMetadata> createDnsAuthorizationOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateDnsAuthorizationRequest request =
CreateDnsAuthorizationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDnsAuthorizationId("dnsAuthorizationId-2054763765")
.setDnsAuthorization(DnsAuthorization.newBuilder().build())
.build();
OperationFuture<DnsAuthorization, OperationMetadata> future =
certificateManagerClient.createDnsAuthorizationOperationCallable().futureCall(request);
// Do something.
DnsAuthorization response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateDnsAuthorizationRequest,com.google.longrunning.Operation> createDnsAuthorizationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateDnsAuthorizationRequest request =
CreateDnsAuthorizationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDnsAuthorizationId("dnsAuthorizationId-2054763765")
.setDnsAuthorization(DnsAuthorization.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.createDnsAuthorizationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> updateDnsAuthorizationAsync(DnsAuthorization dnsAuthorization, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DnsAuthorization dnsAuthorization = DnsAuthorization.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
DnsAuthorization response =
certificateManagerClient.updateDnsAuthorizationAsync(dnsAuthorization, updateMask).get();
}
dnsAuthorization - Required. A definition of the dns authorization to update.updateMask - Required. The update mask applies to the resource. For the `FieldMask`
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DnsAuthorization,OperationMetadata> updateDnsAuthorizationAsync(UpdateDnsAuthorizationRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateDnsAuthorizationRequest request =
UpdateDnsAuthorizationRequest.newBuilder()
.setDnsAuthorization(DnsAuthorization.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
DnsAuthorization response =
certificateManagerClient.updateDnsAuthorizationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateDnsAuthorizationRequest,DnsAuthorization,OperationMetadata> updateDnsAuthorizationOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateDnsAuthorizationRequest request =
UpdateDnsAuthorizationRequest.newBuilder()
.setDnsAuthorization(DnsAuthorization.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<DnsAuthorization, OperationMetadata> future =
certificateManagerClient.updateDnsAuthorizationOperationCallable().futureCall(request);
// Do something.
DnsAuthorization response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateDnsAuthorizationRequest,com.google.longrunning.Operation> updateDnsAuthorizationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
UpdateDnsAuthorizationRequest request =
UpdateDnsAuthorizationRequest.newBuilder()
.setDnsAuthorization(DnsAuthorization.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.updateDnsAuthorizationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDnsAuthorizationAsync(DnsAuthorizationName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DnsAuthorizationName name =
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]");
certificateManagerClient.deleteDnsAuthorizationAsync(name).get();
}
name - Required. A name of the dns authorization to delete. Must be in the format
`projects/*/locations/*/dnsAuthorizations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDnsAuthorizationAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]").toString();
certificateManagerClient.deleteDnsAuthorizationAsync(name).get();
}
name - Required. A name of the dns authorization to delete. Must be in the format
`projects/*/locations/*/dnsAuthorizations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDnsAuthorizationAsync(DeleteDnsAuthorizationRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteDnsAuthorizationRequest request =
DeleteDnsAuthorizationRequest.newBuilder()
.setName(
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]")
.toString())
.build();
certificateManagerClient.deleteDnsAuthorizationAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteDnsAuthorizationRequest,com.google.protobuf.Empty,OperationMetadata> deleteDnsAuthorizationOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteDnsAuthorizationRequest request =
DeleteDnsAuthorizationRequest.newBuilder()
.setName(
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]")
.toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
certificateManagerClient.deleteDnsAuthorizationOperationCallable().futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteDnsAuthorizationRequest,com.google.longrunning.Operation> deleteDnsAuthorizationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteDnsAuthorizationRequest request =
DeleteDnsAuthorizationRequest.newBuilder()
.setName(
DnsAuthorizationName.of("[PROJECT]", "[LOCATION]", "[DNS_AUTHORIZATION]")
.toString())
.build();
ApiFuture<Operation> future =
certificateManagerClient.deleteDnsAuthorizationCallable().futureCall(request);
// Do something.
future.get();
}
public final CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (CertificateIssuanceConfig element :
certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the certificate should be listed,
specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (CertificateIssuanceConfig element :
certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent - Required. The project and location from which the certificate should be listed,
specified in the format `projects/*/locations/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs(ListCertificateIssuanceConfigsRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateIssuanceConfigsRequest request =
ListCertificateIssuanceConfigsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (CertificateIssuanceConfig element :
certificateManagerClient.listCertificateIssuanceConfigs(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListCertificateIssuanceConfigsRequest,CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse> listCertificateIssuanceConfigsPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateIssuanceConfigsRequest request =
ListCertificateIssuanceConfigsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<CertificateIssuanceConfig> future =
certificateManagerClient
.listCertificateIssuanceConfigsPagedCallable()
.futureCall(request);
// Do something.
for (CertificateIssuanceConfig element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListCertificateIssuanceConfigsRequest,ListCertificateIssuanceConfigsResponse> listCertificateIssuanceConfigsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListCertificateIssuanceConfigsRequest request =
ListCertificateIssuanceConfigsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListCertificateIssuanceConfigsResponse response =
certificateManagerClient.listCertificateIssuanceConfigsCallable().call(request);
for (CertificateIssuanceConfig element : response.getCertificateIssuanceConfigsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final CertificateIssuanceConfig getCertificateIssuanceConfig(CertificateIssuanceConfigName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateIssuanceConfigName name =
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]");
CertificateIssuanceConfig response =
certificateManagerClient.getCertificateIssuanceConfig(name);
}
name - Required. A name of the certificate issuance config to describe. Must be in the
format `projects/*/locations/*/certificateIssuanceConfigs/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateIssuanceConfig getCertificateIssuanceConfig(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString();
CertificateIssuanceConfig response =
certificateManagerClient.getCertificateIssuanceConfig(name);
}
name - Required. A name of the certificate issuance config to describe. Must be in the
format `projects/*/locations/*/certificateIssuanceConfigs/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CertificateIssuanceConfig getCertificateIssuanceConfig(GetCertificateIssuanceConfigRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateIssuanceConfigRequest request =
GetCertificateIssuanceConfigRequest.newBuilder()
.setName(
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString())
.build();
CertificateIssuanceConfig response =
certificateManagerClient.getCertificateIssuanceConfig(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetCertificateIssuanceConfigRequest,CertificateIssuanceConfig> getCertificateIssuanceConfigCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetCertificateIssuanceConfigRequest request =
GetCertificateIssuanceConfigRequest.newBuilder()
.setName(
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString())
.build();
ApiFuture<CertificateIssuanceConfig> future =
certificateManagerClient.getCertificateIssuanceConfigCallable().futureCall(request);
// Do something.
CertificateIssuanceConfig response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<CertificateIssuanceConfig,OperationMetadata> createCertificateIssuanceConfigAsync(LocationName parent, CertificateIssuanceConfig certificateIssuanceConfig, String certificateIssuanceConfigId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
CertificateIssuanceConfig certificateIssuanceConfig =
CertificateIssuanceConfig.newBuilder().build();
String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023";
CertificateIssuanceConfig response =
certificateManagerClient
.createCertificateIssuanceConfigAsync(
parent, certificateIssuanceConfig, certificateIssuanceConfigId)
.get();
}
parent - Required. The parent resource of the certificate issuance config. Must be in the
format `projects/*/locations/*`.certificateIssuanceConfig - Required. A definition of the certificate issuance config to
create.certificateIssuanceConfigId - Required. A user-provided name of the certificate config.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateIssuanceConfig,OperationMetadata> createCertificateIssuanceConfigAsync(String parent, CertificateIssuanceConfig certificateIssuanceConfig, String certificateIssuanceConfigId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
CertificateIssuanceConfig certificateIssuanceConfig =
CertificateIssuanceConfig.newBuilder().build();
String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023";
CertificateIssuanceConfig response =
certificateManagerClient
.createCertificateIssuanceConfigAsync(
parent, certificateIssuanceConfig, certificateIssuanceConfigId)
.get();
}
parent - Required. The parent resource of the certificate issuance config. Must be in the
format `projects/*/locations/*`.certificateIssuanceConfig - Required. A definition of the certificate issuance config to
create.certificateIssuanceConfigId - Required. A user-provided name of the certificate config.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CertificateIssuanceConfig,OperationMetadata> createCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateIssuanceConfigRequest request =
CreateCertificateIssuanceConfigRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
.setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
.build();
CertificateIssuanceConfig response =
certificateManagerClient.createCertificateIssuanceConfigAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateCertificateIssuanceConfigRequest,CertificateIssuanceConfig,OperationMetadata> createCertificateIssuanceConfigOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateIssuanceConfigRequest request =
CreateCertificateIssuanceConfigRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
.setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
.build();
OperationFuture<CertificateIssuanceConfig, OperationMetadata> future =
certificateManagerClient
.createCertificateIssuanceConfigOperationCallable()
.futureCall(request);
// Do something.
CertificateIssuanceConfig response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateCertificateIssuanceConfigRequest,com.google.longrunning.Operation> createCertificateIssuanceConfigCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CreateCertificateIssuanceConfigRequest request =
CreateCertificateIssuanceConfigRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
.setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
.build();
ApiFuture<Operation> future =
certificateManagerClient.createCertificateIssuanceConfigCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateIssuanceConfigAsync(CertificateIssuanceConfigName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
CertificateIssuanceConfigName name =
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]");
certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get();
}
name - Required. A name of the certificate issuance config to delete. Must be in the
format `projects/*/locations/*/certificateIssuanceConfigs/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateIssuanceConfigAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
String name =
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString();
certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get();
}
name - Required. A name of the certificate issuance config to delete. Must be in the
format `projects/*/locations/*/certificateIssuanceConfigs/*`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCertificateIssuanceConfigAsync(DeleteCertificateIssuanceConfigRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateIssuanceConfigRequest request =
DeleteCertificateIssuanceConfigRequest.newBuilder()
.setName(
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString())
.build();
certificateManagerClient.deleteCertificateIssuanceConfigAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteCertificateIssuanceConfigRequest,com.google.protobuf.Empty,OperationMetadata> deleteCertificateIssuanceConfigOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateIssuanceConfigRequest request =
DeleteCertificateIssuanceConfigRequest.newBuilder()
.setName(
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
certificateManagerClient
.deleteCertificateIssuanceConfigOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteCertificateIssuanceConfigRequest,com.google.longrunning.Operation> deleteCertificateIssuanceConfigCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
DeleteCertificateIssuanceConfigRequest request =
DeleteCertificateIssuanceConfigRequest.newBuilder()
.setName(
CertificateIssuanceConfigName.of(
"[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
.toString())
.build();
ApiFuture<Operation> future =
certificateManagerClient.deleteCertificateIssuanceConfigCallable().futureCall(request);
// Do something.
future.get();
}
public final CertificateManagerClient.ListLocationsPagedResponse listLocations(com.google.cloud.location.ListLocationsRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : certificateManagerClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CertificateManagerClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
certificateManagerClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response =
certificateManagerClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final com.google.cloud.location.Location getLocation(com.google.cloud.location.GetLocationRequest request)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = certificateManagerClient.getLocation(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future =
certificateManagerClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2024 Google LLC. All rights reserved.