Reference documentation and code samples for the Certificate Authority Service V1beta1 API class Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.
REST client for the CertificateAuthorityService service.
Certificate Authority Service manages private certificate authorities and issued certificates.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the CertificateAuthorityService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all CertificateAuthorityService clients ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.configure do |config| config.timeout = 10.0 end
#activate_certificate_authority
def activate_certificate_authority(request, options = nil) -> ::Gapic::Operation
def activate_certificate_authority(name: nil, pem_ca_certificate: nil, subordinate_config: nil, request_id: nil) -> ::Gapic::OperationActivate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.
def activate_certificate_authority(request, options = nil) -> ::Gapic::Operationactivate_certificate_authority via a request object, either of type
ActivateCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def activate_certificate_authority(name: nil, pem_ca_certificate: nil, subordinate_config: nil, request_id: nil) -> ::Gapic::Operationactivate_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this CertificateAuthority in the
format
projects/*/locations/*/certificateAuthorities/*. - pem_ca_certificate (::String) — Required. The signed CA certificate issued from FetchCertificateAuthorityCsrResponse.pem_csr.
- subordinate_config (::Google::Cloud::Security::PrivateCA::V1beta1::SubordinateConfig, ::Hash) — Required. Must include information about the issuer of 'pem_ca_certificate', and any further issuers until the self-signed CA.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the CertificateAuthorityService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_certificate
def create_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate
def create_certificate(parent: nil, certificate_id: nil, certificate: nil, request_id: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateCreate a new Certificate in a given Project, Location from a particular CertificateAuthority.
def create_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificatecreate_certificate via a request object, either of type
Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_certificate(parent: nil, certificate_id: nil, certificate: nil, request_id: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificatecreate_certificate via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location and CertificateAuthority
associated with the Certificate, in the format
projects/*/locations/*/certificateAuthorities/*. -
certificate_id (::String) — Optional. It must be unique within a location and match the regular
expression
[a-zA-Z0-9_-]{1,63}. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise. - certificate (::Google::Cloud::Security::PrivateCA::V1beta1::Certificate, ::Hash) — Required. A Certificate with initial field values.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::Certificate)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#create_certificate_authority
def create_certificate_authority(request, options = nil) -> ::Gapic::Operation
def create_certificate_authority(parent: nil, certificate_authority_id: nil, certificate_authority: nil, request_id: nil) -> ::Gapic::OperationCreate a new CertificateAuthority in a given Project and Location.
def create_certificate_authority(request, options = nil) -> ::Gapic::Operationcreate_certificate_authority via a request object, either of type
Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_certificate_authority(parent: nil, certificate_authority_id: nil, certificate_authority: nil, request_id: nil) -> ::Gapic::Operationcreate_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
CertificateAuthorities, in the format
projects/*/locations/*. -
certificate_authority_id (::String) — Required. It must be unique within a location and match the regular
expression
[a-zA-Z0-9_-]{1,63} - certificate_authority (::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority, ::Hash) — Required. A CertificateAuthority with initial field values.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#disable_certificate_authority
def disable_certificate_authority(request, options = nil) -> ::Gapic::Operation
def disable_certificate_authority(name: nil, request_id: nil) -> ::Gapic::OperationDisable a CertificateAuthority.
def disable_certificate_authority(request, options = nil) -> ::Gapic::Operationdisable_certificate_authority via a request object, either of type
DisableCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def disable_certificate_authority(name: nil, request_id: nil) -> ::Gapic::Operationdisable_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this CertificateAuthority in the
format
projects/*/locations/*/certificateAuthorities/*. -
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#enable_certificate_authority
def enable_certificate_authority(request, options = nil) -> ::Gapic::Operation
def enable_certificate_authority(name: nil, request_id: nil) -> ::Gapic::OperationEnable a CertificateAuthority.
def enable_certificate_authority(request, options = nil) -> ::Gapic::Operationenable_certificate_authority via a request object, either of type
EnableCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def enable_certificate_authority(name: nil, request_id: nil) -> ::Gapic::Operationenable_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this CertificateAuthority in the
format
projects/*/locations/*/certificateAuthorities/*. -
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#fetch_certificate_authority_csr
def fetch_certificate_authority_csr(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse
def fetch_certificate_authority_csr(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponseFetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.
def fetch_certificate_authority_csr(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponsefetch_certificate_authority_csr via a request object, either of type
FetchCertificateAuthorityCsrRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def fetch_certificate_authority_csr(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponsefetch_certificate_authority_csr via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this CertificateAuthority in the
format
projects/*/locations/*/certificateAuthorities/*.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_certificate
def get_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate
def get_certificate(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateReturns a Certificate.
def get_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificateget_certificate via a request object, either of type
GetCertificateRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_certificate(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificateget_certificate via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the Certificate to get.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::Certificate)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_certificate_authority
def get_certificate_authority(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority
def get_certificate_authority(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityReturns a CertificateAuthority.
def get_certificate_authority(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityget_certificate_authority via a request object, either of type
GetCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_certificate_authority(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityget_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the CertificateAuthority to get.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_certificate_revocation_list
def get_certificate_revocation_list(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList
def get_certificate_revocation_list(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationListReturns a CertificateRevocationList.
def get_certificate_revocation_list(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationListget_certificate_revocation_list via a request object, either of type
GetCertificateRevocationListRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_certificate_revocation_list(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationListget_certificate_revocation_list via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the CertificateRevocationList to get.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_reusable_config
def get_reusable_config(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig
def get_reusable_config(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigReturns a ReusableConfig.
def get_reusable_config(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigget_reusable_config via a request object, either of type
GetReusableConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_reusable_config(name: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigget_reusable_config via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The [name][ReusableConfigs.name] of the [ReusableConfigs][] to get.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#initialize
def initialize() { |config| ... } -> ClientCreate a new CertificateAuthorityService REST client object.
- (config) — Configure the CertificateAuthorityService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_certificate_authorities
def list_certificate_authorities(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse
def list_certificate_authorities(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponseLists CertificateAuthorities.
def list_certificate_authorities(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponselist_certificate_authorities via a request object, either of type
ListCertificateAuthoritiesRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_certificate_authorities(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponselist_certificate_authorities via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
CertificateAuthorities, in the format
projects/*/locations/*. - page_size (::Integer) — Optional. Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token.
- filter (::String) — Optional. Only include resources that match the filter in the response.
- order_by (::String) — Optional. Specify how the results should be sorted.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_certificate_revocation_lists
def list_certificate_revocation_lists(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse
def list_certificate_revocation_lists(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponseLists CertificateRevocationLists.
def list_certificate_revocation_lists(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponselist_certificate_revocation_lists via a request object, either of type
ListCertificateRevocationListsRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_certificate_revocation_lists(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponselist_certificate_revocation_lists via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
CertificateRevocationLists, in the format
projects/*/locations/*/certificateauthorities/*. - page_size (::Integer) — Optional. Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token.
- filter (::String) — Optional. Only include resources that match the filter in the response.
- order_by (::String) — Optional. Specify how the results should be sorted.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_certificates
def list_certificates(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse
def list_certificates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponseLists Certificates.
def list_certificates(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponselist_certificates via a request object, either of type
ListCertificatesRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_certificates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponselist_certificates via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
Certificates, in the format
projects/*/locations/*/certificateauthorities/*. - page_size (::Integer) — Optional. Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token.
- filter (::String) — Optional. Only include resources that match the filter in the response. For details on supported filters and syntax, see Certificates Filtering documentation.
- order_by (::String) — Optional. Specify how the results should be sorted. For details on supported fields and syntax, see Certificates Sorting documentation.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_reusable_configs
def list_reusable_configs(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse
def list_reusable_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponseLists ReusableConfigs.
def list_reusable_configs(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponselist_reusable_configs via a request object, either of type
ListReusableConfigsRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_reusable_configs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponselist_reusable_configs via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
ReusableConfigs, in the format
projects/*/locations/*. - page_size (::Integer) — Optional. Limit on the number of ReusableConfigs to include in the response. Further ReusableConfigs can subsequently be obtained by including the ListReusableConfigsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. Pagination token, returned earlier via ListReusableConfigsResponse.next_page_token.
- filter (::String) — Optional. Only include resources that match the filter in the response.
- order_by (::String) — Optional. Specify how the results should be sorted.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#operations_client
def operations_client() -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::OperationsGet the associated client for long-running operations.
#restore_certificate_authority
def restore_certificate_authority(request, options = nil) -> ::Gapic::Operation
def restore_certificate_authority(name: nil, request_id: nil) -> ::Gapic::OperationRestore a CertificateAuthority that is scheduled for deletion.
def restore_certificate_authority(request, options = nil) -> ::Gapic::Operationrestore_certificate_authority via a request object, either of type
RestoreCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def restore_certificate_authority(name: nil, request_id: nil) -> ::Gapic::Operationrestore_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this CertificateAuthority in the
format
projects/*/locations/*/certificateAuthorities/*. -
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#revoke_certificate
def revoke_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate
def revoke_certificate(name: nil, reason: nil, request_id: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevoke a Certificate.
def revoke_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificaterevoke_certificate via a request object, either of type
RevokeCertificateRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def revoke_certificate(name: nil, reason: nil, request_id: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificaterevoke_certificate via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this Certificate in the
format
projects/*/locations/*/certificateAuthorities/*/certificates/*. - reason (::Google::Cloud::Security::PrivateCA::V1beta1::RevocationReason) — Required. The RevocationReason for revoking this certificate.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::Certificate)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#schedule_delete_certificate_authority
def schedule_delete_certificate_authority(request, options = nil) -> ::Gapic::Operation
def schedule_delete_certificate_authority(name: nil, request_id: nil) -> ::Gapic::OperationSchedule a CertificateAuthority for deletion.
def schedule_delete_certificate_authority(request, options = nil) -> ::Gapic::Operationschedule_delete_certificate_authority via a request object, either of type
ScheduleDeleteCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def schedule_delete_certificate_authority(name: nil, request_id: nil) -> ::Gapic::Operationschedule_delete_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name for this CertificateAuthority in the
format
projects/*/locations/*/certificateAuthorities/*. -
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_certificate
def update_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate
def update_certificate(certificate: nil, update_mask: nil, request_id: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateUpdate a Certificate. Currently, the only field you can update is the labels field.
def update_certificate(request, options = nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificateupdate_certificate via a request object, either of type
UpdateCertificateRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_certificate(certificate: nil, update_mask: nil, request_id: nil) -> ::Google::Cloud::Security::PrivateCA::V1beta1::Certificateupdate_certificate via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- certificate (::Google::Cloud::Security::PrivateCA::V1beta1::Certificate, ::Hash) — Required. Certificate with updated values.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. A list of fields to be updated in this request.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Security::PrivateCA::V1beta1::Certificate)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_certificate_authority
def update_certificate_authority(request, options = nil) -> ::Gapic::Operation
def update_certificate_authority(certificate_authority: nil, update_mask: nil, request_id: nil) -> ::Gapic::OperationUpdate a CertificateAuthority.
def update_certificate_authority(request, options = nil) -> ::Gapic::Operationupdate_certificate_authority via a request object, either of type
UpdateCertificateAuthorityRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_certificate_authority(certificate_authority: nil, update_mask: nil, request_id: nil) -> ::Gapic::Operationupdate_certificate_authority via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- certificate_authority (::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority, ::Hash) — Required. CertificateAuthority with updated values.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. A list of fields to be updated in this request.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_certificate_revocation_list
def update_certificate_revocation_list(request, options = nil) -> ::Gapic::Operation
def update_certificate_revocation_list(certificate_revocation_list: nil, update_mask: nil, request_id: nil) -> ::Gapic::OperationUpdate a CertificateRevocationList.
def update_certificate_revocation_list(request, options = nil) -> ::Gapic::Operationupdate_certificate_revocation_list via a request object, either of type
UpdateCertificateRevocationListRequest or an equivalent Hash.
- request (::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_certificate_revocation_list(certificate_revocation_list: nil, update_mask: nil, request_id: nil) -> ::Gapic::Operationupdate_certificate_revocation_list via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- certificate_revocation_list (::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList, ::Hash) — Required. CertificateRevocationList with updated values.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. A list of fields to be updated in this request.
-
request_id (::String) — Optional. An ID to identify requests. Specify a unique request ID so that if you must
retry your request, the server will know to ignore the request if it has
already been completed. The server will guarantee that for at least 60
minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.