Public Certificate Authority V1beta1 API - Class Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client (v0.10.1)

Reference documentation and code samples for the Public Certificate Authority V1beta1 API class Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.

Client for the PublicCertificateAuthorityService service.

Manages the resources required for ACME external account binding for the public certificate authority service.

Inherits

  • Object

Methods

.configure

defself.configure(){|config|...}->Client::Configuration

Configure the PublicCertificateAuthorityService Client class.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter
Example
# Modify the configuration for all PublicCertificateAuthorityService clients
::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.configuredo|config|
config.timeout=10.0
end

#configure

defconfigure(){|config|...}->Client::Configuration

Configure the PublicCertificateAuthorityService 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.

Yields
  • (config) — Configure the Client client.
Yield Parameter

#create_external_account_key

defcreate_external_account_key(request,options=nil)->::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey
defcreate_external_account_key(parent:nil,external_account_key:nil)->::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey

Creates a new ExternalAccountKey bound to the project.

Overloads
defcreate_external_account_key(request,options=nil)->::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey
Pass arguments to create_external_account_key via a request object, either of type CreateExternalAccountKeyRequest or an equivalent Hash.
Parameters
defcreate_external_account_key(parent:nil,external_account_key:nil)->::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey
Pass arguments to create_external_account_key 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).
Parameters
  • parent (::String) — Required. The parent resource where this external_account_key will be created. Format: projects/[project_id]/locations/[location]. At present only the "global" location is supported.
  • external_account_key (::Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey, ::Hash) — Required. The external account key to create. This field only exists to future-proof the API. At present, all fields in ExternalAccountKey are output only and all values are ignored. For the purpose of the CreateExternalAccountKeyRequest, set it to a default/empty value.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require"google/cloud/security/public_ca/v1beta1"
# Create a client object. The client can be reused for multiple calls.
client=Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new
# Create a request. To set request fields, pass in keyword arguments.
request=Google::Cloud::Security::PublicCA::V1beta1::CreateExternalAccountKeyRequest.new
# Call the create_external_account_key method.
result=client.create_external_account_keyrequest
# The returned object is of type Google::Cloud::Security::PublicCA::V1beta1::ExternalAccountKey.
presult

#initialize

definitialize(){|config|...}->Client

Create a new PublicCertificateAuthorityService client object.

Yields
  • (config) — Configure the PublicCertificateAuthorityService client.
Yield Parameter
Returns
  • (Client) — a new instance of Client
Example
# Create a client using the default configuration
client=::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.new
# Create a client using a custom configuration
client=::Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client.newdo|config|
config.timeout=10.0
end

#logger

deflogger()->Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

defuniverse_domain()->String

The effective universe domain

Returns
  • (String)

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.