NAME

Google::Cloud::Security::Privateca::V1::Resources - Compiled Protocol Buffers messages for google/cloud/security/privateca/v1/resources.proto

SYNOPSIS

use Google::Cloud::Security::Privateca::V1::Resources;

my $msg = Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority->new({
    name => $name,
    type => $type,
    config => $config,
    lifetime => $lifetime,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/security/privateca/v1/resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority

A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] represents an individual Certificate Authority. A [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] can be used to create [Certificates][google.cloud.security.privateca.v1.Certificate].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::CertificateAuthority::Type)

    Required. Immutable. The [Type][google.cloud.security.privateca.v1.CertificateAuthority.Type] of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateConfig)

    Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.

  • $msg->lifetime() / $msg->lifetime($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. Immutable. The desired lifetime of the CA certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate.

  • $msg->key_spec() / $msg->key_spec($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority::KeyVersionSpec)

    Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. If this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] is a self-signed CertificateAuthority, this key is also used to sign the self-signed CA certificate. Otherwise, it is used to sign a CSR.

  • $msg->subordinate_config() / $msg->subordinate_config($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::SubordinateConfig)

    Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], this field will be set with the subordinate configuration, which describes its issuers. This may be updated, but this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] must continue to validate.

  • $msg->tier() / $msg->tier($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::CaPool::Tier)

    Output only. The [CaPool.Tier][google.cloud.security.privateca.v1.CaPool.Tier] of the [CaPool][google.cloud.security.privateca.v1.CaPool] that includes this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::CertificateAuthority::State)

    Output only. The [State][google.cloud.security.privateca.v1.CertificateAuthority.State] for this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

  • $msg->pem_ca_certificates() / $msg->pem_ca_certificates($value)

    Type: String

    Output only. This [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate chain, including the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate. Ordered such that the root issuer is the final element (consistent with RFC 5246). For a self-signed CA, this will only list the current [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s certificate.

  • $msg->ca_certificate_descriptions() / $msg->ca_certificate_descriptions($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateDescription)

    Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and its issuers. Ordered as self-to-root.

  • $msg->gcs_bucket() / $msg->gcs_bucket($value)

    Type: String

    Immutable. The name of a Cloud Storage bucket where this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as `gs://`) or suffixes (such as `.googleapis.com`). For example, to use a bucket named `my-bucket`, you would simply specify `my-bucket`. If not specified, a managed bucket will be created.

  • $msg->access_urls() / $msg->access_urls($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority::AccessUrls)

    Output only. URLs for accessing content published by this CA, such as the CA certificate and CRLs.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was last updated.

  • $msg->delete_time() / $msg->delete_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] was soft deleted, if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] will be permanently purged, if it is in the [DELETED][google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED] state.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority::LabelsEntry)

    Optional. Labels with user-defined metadata.

  • $msg->user_defined_access_urls() / $msg->user_defined_access_urls($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateAuthority::UserDefinedAccessUrls)

    Optional. User-defined URLs for CA certificate and CRLs. The service does not publish content to these URLs. It is up to the user to mirror content to these URLs.

  • $msg->satisfies_pzs() / $msg->satisfies_pzs($value)

    Type: Bool

    Output only. Reserved for future use.

  • $msg->satisfies_pzi() / $msg->satisfies_pzi($value)

    Type: Bool

    Output only. Reserved for future use.

Enum: CertificateAuthority::Type

  • TYPE_UNSPECIFIED => 0

  • SELF_SIGNED => 1

  • SUBORDINATE => 2

Enum: CertificateAuthority::State

  • STATE_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

  • STAGED => 3

  • AWAITING_USER_ACTIVATION => 4

  • DELETED => 5

Enum: CertificateAuthority::SignHashAlgorithm

  • SIGN_HASH_ALGORITHM_UNSPECIFIED => 0

  • RSA_PSS_2048_SHA256 => 1

  • RSA_PSS_3072_SHA256 => 2

  • RSA_PSS_4096_SHA256 => 3

  • RSA_PKCS1_2048_SHA256 => 6

  • RSA_PKCS1_3072_SHA256 => 7

  • RSA_PKCS1_4096_SHA256 => 8

  • EC_P256_SHA256 => 4

  • EC_P384_SHA384 => 5

Google::Cloud::Security::Privateca::V1::Resources::CaPool

A [CaPool][google.cloud.security.privateca.v1.CaPool] represents a group of [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority] that form a trust anchor. A [CaPool][google.cloud.security.privateca.v1.CaPool] can be used to manage issuance policies for one or more [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources and to rotate CA certificates in and out of the trust anchor.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name for this [CaPool][google.cloud.security.privateca.v1.CaPool] in the format `projects/*/locations/*/caPools/*`.

  • $msg->tier() / $msg->tier($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::CaPool::Tier)

    Required. Immutable. The [Tier][google.cloud.security.privateca.v1.CaPool.Tier] of this [CaPool][google.cloud.security.privateca.v1.CaPool].

  • $msg->issuance_policy() / $msg->issuance_policy($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CaPool::IssuancePolicy)

    Optional. The [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] to control how [Certificates][google.cloud.security.privateca.v1.Certificate] will be issued from this [CaPool][google.cloud.security.privateca.v1.CaPool].

  • $msg->publishing_options() / $msg->publishing_options($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CaPool::PublishingOptions)

    Optional. The [PublishingOptions][google.cloud.security.privateca.v1.CaPool.PublishingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1.Certificate] from any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in this [CaPool][google.cloud.security.privateca.v1.CaPool].

  • $msg->encryption_spec() / $msg->encryption_spec($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::EncryptionSpec)

    Optional. When [EncryptionSpec][google.cloud.security.privateca.v1.EncryptionSpec] is provided, the [Subject][google.cloud.security.privateca.v1.Subject], [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames], and the PEM-encoded certificate fields will be encrypted at rest.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CaPool::LabelsEntry)

    Optional. Labels with user-defined metadata.

Enum: CaPool::Tier

  • TIER_UNSPECIFIED => 0

  • ENTERPRISE => 1

  • DEVOPS => 2

Google::Cloud::Security::Privateca::V1::Resources::EncryptionSpec

The configuration used for encrypting data at rest.

Inherits from Protobuf::Message.

Accessors

  • $msg->cloud_kms_key() / $msg->cloud_kms_key($value)

    Type: String

    The resource name for a Cloud KMS key in the format `projects/*/locations/*/keyRings/*/cryptoKeys/*`.

Google::Cloud::Security::Privateca::V1::Resources::CertificateRevocationList

A [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] in the format `projects/*/locations/*/caPools/*certificateAuthorities/*/ certificateRevocationLists/*`.

  • $msg->sequence_number() / $msg->sequence_number($value)

    Type: Int64

    Output only. The CRL sequence number that appears in pem_crl.

  • $msg->revoked_certificates() / $msg->revoked_certificates($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateRevocationList::RevokedCertificate)

    Output only. The revoked serial numbers that appear in pem_crl.

  • $msg->pem_crl() / $msg->pem_crl($value)

    Type: String

    Output only. The PEM-encoded X.509 CRL.

  • $msg->access_url() / $msg->access_url($value)

    Type: String

    Output only. The location where 'pem_crl' can be accessed.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::CertificateRevocationList::State)

    Output only. The [State][google.cloud.security.privateca.v1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList] was updated.

  • $msg->revision_id() / $msg->revision_id($value)

    Type: String

    Output only. The revision ID of this [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList]. A new revision is committed whenever a new CRL is published. The format is an 8-character hexadecimal string.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateRevocationList::LabelsEntry)

    Optional. Labels with user-defined metadata.

Enum: CertificateRevocationList::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • SUPERSEDED => 2

Google::Cloud::Security::Privateca::V1::Resources::Certificate

A [Certificate][google.cloud.security.privateca.v1.Certificate] corresponds to a signed X.509 certificate issued by a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name for this [Certificate][google.cloud.security.privateca.v1.Certificate] in the format `projects/*/locations/*/caPools/*/certificates/*`.

  • $msg->pem_csr() / $msg->pem_csr($value)

    Type: String

    Immutable. A pem-encoded X.509 certificate signing request (CSR).

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateConfig)

    Immutable. A description of the certificate and key that does not require X.509 or ASN.1.

  • $msg->issuer_certificate_authority() / $msg->issuer_certificate_authority($value)

    Type: String

    Output only. The resource name of the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.

  • $msg->lifetime() / $msg->lifetime($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. Immutable. The desired lifetime of a certificate. Used to create the "not_before_time" and "not_after_time" fields inside an X.509 certificate. Note that the lifetime may be truncated if it would extend past the life of any certificate authority in the issuing chain.

  • $msg->certificate_template() / $msg->certificate_template($value)

    Type: String

    Immutable. The resource name for a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] used to issue this certificate, in the format `projects/*/locations/*/certificateTemplates/*`. If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the [Certificate][google.cloud.security.privateca.v1.Certificate].

  • $msg->subject_mode() / $msg->subject_mode($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::SubjectRequestMode)

    Immutable. Specifies how the [Certificate][google.cloud.security.privateca.v1.Certificate]'s identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used.

  • $msg->revocation_details() / $msg->revocation_details($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::Certificate::RevocationDetails)

    Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This [Certificate][google.cloud.security.privateca.v1.Certificate] is considered revoked if and only if this field is present.

  • $msg->pem_certificate() / $msg->pem_certificate($value)

    Type: String

    Output only. The pem-encoded, signed X.509 certificate.

  • $msg->certificate_description() / $msg->certificate_description($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateDescription)

    Output only. A structured description of the issued X.509 certificate.

  • $msg->pem_certificate_chain() / $msg->pem_certificate_chain($value)

    Type: String

    Output only. The chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [Certificate][google.cloud.security.privateca.v1.Certificate] was updated.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::Certificate::LabelsEntry)

    Optional. Labels with user-defined metadata.

  • $msg->requested_not_before_time() / $msg->requested_not_before_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. The requested [not_before_time][google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription.not_before_time] of this [Certificate][google.cloud.security.privateca.v1.Certificate]. This field may only be set if the [CaPool.IssuancePolicy.allow_requester_specified_not_before_time][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.allow_requester_specified_not_before_time] field is set to true for the issuing [CaPool][google.cloud.security.privateca.v1.CaPool].

    If this field is specified, the certificate will be issued with this 'not_before_time'. If this is not specified, the 'not_before_time' will be set to the issuance time or issuance time minus [backdate_duration][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.backdate_duration] depending on the [CaPool][google.cloud.security.privateca.v1.CaPool] configuration.

Google::Cloud::Security::Privateca::V1::Resources::CertificateTemplate

A [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] refers to a managed template for certificate issuance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The resource name for this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in the format `projects/*/locations/*/certificateTemplates/*`.

  • $msg->maximum_lifetime() / $msg->maximum_lifetime($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Optional. The maximum lifetime allowed for issued [Certificates][google.cloud.security.privateca.v1.Certificate] that use this template. If the issuing [CaPool][google.cloud.security.privateca.v1.CaPool] resource's [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] specifies a [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime] the minimum of the two durations will be the maximum lifetime for issued [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that if the issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] expires before a [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested maximum_lifetime, the effective lifetime will be explicitly truncated to match it.

  • $msg->predefined_values() / $msg->predefined_values($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::X509Parameters)

    Optional. A set of X.509 values that will be applied to all issued certificates that use this template. If the certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If the issuing [CaPool][google.cloud.security.privateca.v1.CaPool]'s [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] defines conflicting [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values] for the same properties, the certificate issuance request will fail.

  • $msg->identity_constraints() / $msg->identity_constraints($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateIdentityConstraints)

    Optional. Describes constraints on identities that may be appear in [Certificates][google.cloud.security.privateca.v1.Certificate] issued using this template. If this is omitted, then this template will not add restrictions on a certificate's identity.

  • $msg->passthrough_extensions() / $msg->passthrough_extensions($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateExtensionConstraints)

    Optional. Describes the set of X.509 extensions that may appear in a [Certificate][google.cloud.security.privateca.v1.Certificate] issued using this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]. If a certificate request sets extensions that don't appear in the [passthrough_extensions][google.cloud.security.privateca.v1.CertificateTemplate.passthrough_extensions], those extensions will be dropped. If the issuing [CaPool][google.cloud.security.privateca.v1.CaPool]'s [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] defines [baseline_values][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.baseline_values] that don't appear here, the certificate issuance request will fail. If this is omitted, then this template will not add restrictions on a certificate's X.509 extensions. These constraints do not apply to X.509 extensions set in this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]'s [predefined_values][google.cloud.security.privateca.v1.CertificateTemplate.predefined_values].

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. A human-readable description of scenarios this template is intended for.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which this [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] was updated.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::CertificateTemplate::LabelsEntry)

    Optional. Labels with user-defined metadata.

Google::Cloud::Security::Privateca::V1::Resources::X509Parameters

An [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1::Resources::SubordinateConfig

Describes a subordinate CA's issuers. This is either a resource name to a known issuing [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], or a PEM issuer certificate chain.

Inherits from Protobuf::Message.

Accessors

  • $msg->certificate_authority() / $msg->certificate_authority($value)

    Type: String

    Required. This can refer to a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]. This field is used for information and usability purposes only. The resource name is in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.

  • $msg->pem_issuer_chain() / $msg->pem_issuer_chain($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::SubordinateConfig::SubordinateConfigChain)

    Required. Contains the PEM certificate chain for the issuers of this [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority], but not pem certificate for this CA itself.

Google::Cloud::Security::Privateca::V1::Resources::PublicKey

A [PublicKey][google.cloud.security.privateca.v1.PublicKey] describes a public key.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: Bytes

    Required. A public key. The padding and encoding must match with the `KeyFormat` value specified for the `format` field.

  • $msg->format() / $msg->format($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::PublicKey::KeyFormat)

    Required. The format of the public key.

Enum: PublicKey::KeyFormat

  • KEY_FORMAT_UNSPECIFIED => 0

  • PEM => 1

Google::Cloud::Security::Privateca::V1::Resources::CertificateConfig

A [CertificateConfig][google.cloud.security.privateca.v1.CertificateConfig] describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1::Resources::CertificateDescription

A [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription] describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1::Resources::ObjectId

An [ObjectId][google.cloud.security.privateca.v1.ObjectId] specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.

Inherits from Protobuf::Message.

Accessors

  • $msg->object_id_path() / $msg->object_id_path($value)

    Type: Int32

    Required. The parts of an OID path. The most significant parts of the path come first.

Google::Cloud::Security::Privateca::V1::Resources::X509Extension

An [X509Extension][google.cloud.security.privateca.v1.X509Extension] specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.

Inherits from Protobuf::Message.

Accessors

  • $msg->object_id() / $msg->object_id($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::ObjectId)

    Required. The OID for this X.509 extension.

  • $msg->critical() / $msg->critical($value)

    Type: Bool

    Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).

  • $msg->value() / $msg->value($value)

    Type: Bytes

    Required. The value of this X.509 extension.

Google::Cloud::Security::Privateca::V1::Resources::KeyUsage

A [KeyUsage][google.cloud.security.privateca.v1.KeyUsage] describes key usage values that may appear in an X.509 certificate.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1::Resources::AttributeTypeAndValue

[AttributeTypeAndValue][google.cloud.security.privateca.v1.AttributeTypeAndValue] specifies an attribute type and value. It can use either a OID or enum value to specify the attribute type.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1::Resources::RelativeDistinguishedName

[RelativeDistinguishedName][google.cloud.security.privateca.v1.RelativeDistinguishedName] specifies a relative distinguished name which will be used to build a distinguished name.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1::Resources::Subject

[Subject][google.cloud.security.privateca.v1.Subject] describes parts of a distinguished name that, in turn, describes the subject of the certificate.

Inherits from Protobuf::Message.

Accessors

  • $msg->common_name() / $msg->common_name($value)

    Type: String

    The "common name" of the subject.

  • $msg->country_code() / $msg->country_code($value)

    Type: String

    The country code of the subject.

  • $msg->organization() / $msg->organization($value)

    Type: String

    The organization of the subject.

  • $msg->organizational_unit() / $msg->organizational_unit($value)

    Type: String

    The organizational_unit of the subject.

  • $msg->locality() / $msg->locality($value)

    Type: String

    The locality or city of the subject.

  • $msg->province() / $msg->province($value)

    Type: String

    The province, territory, or regional state of the subject.

  • $msg->street_address() / $msg->street_address($value)

    Type: String

    The street address of the subject.

  • $msg->postal_code() / $msg->postal_code($value)

    Type: String

    The postal code of the subject.

  • $msg->rdn_sequence() / $msg->rdn_sequence($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::RelativeDistinguishedName)

    This field can be used in place of the named subject fields.

Google::Cloud::Security::Privateca::V1::Resources::SubjectAltNames

[SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name).

Inherits from Protobuf::Message.

Accessors

  • $msg->dns_names() / $msg->dns_names($value)

    Type: String

    Contains only valid, fully-qualified host names.

  • $msg->uris() / $msg->uris($value)

    Type: String

    Contains only valid RFC 3986 URIs.

  • $msg->email_addresses() / $msg->email_addresses($value)

    Type: String

    Contains only valid RFC 2822 E-mail addresses.

  • $msg->ip_addresses() / $msg->ip_addresses($value)

    Type: String

    Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.

  • $msg->custom_sans() / $msg->custom_sans($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::X509Extension)

    Contains additional subject alternative name values. For each custom_san, the `value` field must contain an ASN.1 encoded UTF8String.

Google::Cloud::Security::Privateca::V1::Resources::CertificateIdentityConstraints

Describes constraints on a [Certificate][google.cloud.security.privateca.v1.Certificate]'s [Subject][google.cloud.security.privateca.v1.Subject] and [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].

Inherits from Protobuf::Message.

Accessors

  • $msg->cel_expression() / $msg->cel_expression($value)

    Type: Message (Google::Type::Expr::Expr)

    Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel

  • $msg->allow_subject_passthrough() / $msg->allow_subject_passthrough($value)

    Type: Bool

    Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded.

  • $msg->allow_subject_alt_names_passthrough() / $msg->allow_subject_alt_names_passthrough($value)

    Type: Bool

    Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.

Google::Cloud::Security::Privateca::V1::Resources::CertificateExtensionConstraints

Describes a set of X.509 extensions that may be part of some certificate issuance controls.

Inherits from Protobuf::Message.

Accessors

  • $msg->known_extensions() / $msg->known_extensions($value)

    Type: Enum (Google::Cloud::Security::Privateca::V1::CertificateExtensionConstraints::KnownCertificateExtension)

    Optional. A set of named X.509 extensions. Will be combined with [additional_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.additional_extensions] to determine the full set of X.509 extensions.

  • $msg->additional_extensions() / $msg->additional_extensions($value)

    Type: Message (Google::Cloud::Security::Privateca::V1::Resources::ObjectId)

    Optional. A set of [ObjectIds][google.cloud.security.privateca.v1.ObjectId] identifying custom X.509 extensions. Will be combined with [known_extensions][google.cloud.security.privateca.v1.CertificateExtensionConstraints.known_extensions] to determine the full set of X.509 extensions.

Enum: CertificateExtensionConstraints::KnownCertificateExtension

  • KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED => 0

  • BASE_KEY_USAGE => 1

  • EXTENDED_KEY_USAGE => 2

  • CA_OPTIONS => 3

  • POLICY_IDS => 4

  • AIA_OCSP_SERVERS => 5

  • NAME_CONSTRAINTS => 6

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Security::Privateca::V1::Resources::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.