NAME

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

SYNOPSIS

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

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

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/security/privateca/v1beta1/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::V1beta1::Resources::CertificateAuthority

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The resource name for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in the format `projects/*/locations/*/certificateAuthorities/*`.

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

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

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

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

    Type: Enum (Google::Cloud::Security::Privateca::V1beta1::CertificateAuthority::Tier)

    Required. Immutable. The [Tier][google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier] of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

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

    Type: Message (Google::Cloud::Security::Privateca::V1beta1::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. 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::V1beta1::Resources::CertificateAuthority::KeyVersionSpec)

    Required. Immutable. Used when issuing certificates for this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. If this [CertificateAuthority][google.cloud.security.privateca.v1beta1.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->certificate_policy() / $msg->certificate_policy($value)

    Type: Message (Google::Cloud::Security::Privateca::V1beta1::Resources::CertificateAuthority::CertificateAuthorityPolicy)

    Optional. The [CertificateAuthorityPolicy][google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy] to enforce when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

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

    Type: Message (Google::Cloud::Security::Privateca::V1beta1::Resources::CertificateAuthority::IssuingOptions)

    Optional. The [IssuingOptions][google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions] to follow when issuing [Certificates][google.cloud.security.privateca.v1beta1.Certificate] from this [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].

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

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

    Optional. If this is a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.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.v1beta1.CertificateAuthority] must continue to validate.

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

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

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

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

    Type: String

    Output only. This [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]'s certificate chain, including the current [CertificateAuthority][google.cloud.security.privateca.v1beta1.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.v1beta1.CertificateAuthority]'s certificate.

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

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

    Output only. A structured description of this [CertificateAuthority][google.cloud.security.privateca.v1beta1.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.v1beta1.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::V1beta1::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.v1beta1.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.v1beta1.CertificateAuthority] was 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.v1beta1.CertificateAuthority] will be deleted, if scheduled for deletion.

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

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

    Optional. Labels with user-defined metadata.

Enum: CertificateAuthority::Type

  • TYPE_UNSPECIFIED => 0

  • SELF_SIGNED => 1

  • SUBORDINATE => 2

Enum: CertificateAuthority::Tier

  • TIER_UNSPECIFIED => 0

  • ENTERPRISE => 1

  • DEVOPS => 2

Enum: CertificateAuthority::State

  • STATE_UNSPECIFIED => 0

  • ENABLED => 1

  • DISABLED => 2

  • PENDING_ACTIVATION => 3

  • PENDING_DELETION => 4

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::V1beta1::Resources::CertificateRevocationList

A [CertificateRevocationList][google.cloud.security.privateca.v1beta1.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

    Output only. The resource path for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList] in the format `projects/*/locations/*/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::V1beta1::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::V1beta1::CertificateRevocationList::State)

    Output only. The [State][google.cloud.security.privateca.v1beta1.CertificateRevocationList.State] for this [CertificateRevocationList][google.cloud.security.privateca.v1beta1.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.v1beta1.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.v1beta1.CertificateRevocationList] was updated.

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

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

    Optional. Labels with user-defined metadata.

Enum: CertificateRevocationList::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • SUPERSEDED => 2

Google::Cloud::Security::Privateca::V1beta1::Resources::Certificate

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The resource path for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in the format `projects/*/locations/*/certificateAuthorities/*/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::V1beta1::Resources::CertificateConfig)

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

  • $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->revocation_details() / $msg->revocation_details($value)

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

    Output only. Details regarding the revocation of this [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. This [Certificate][google.cloud.security.privateca.v1beta1.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::V1beta1::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.v1beta1.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.v1beta1.Certificate] was updated.

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

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

    Optional. Labels with user-defined metadata.

Google::Cloud::Security::Privateca::V1beta1::Resources::ReusableConfig

A [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] refers to a managed [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues]. Those, in turn, are 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

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

    Type: String

    Output only. The resource path for this [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format `projects/*/locations/*/reusableConfigs/*`.

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

    Type: Message (Google::Cloud::Security::Privateca::V1beta1::Resources::ReusableConfigValues)

    Required. The config values.

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

    Type: String

    Optional. A human-readable description of scenarios these ReusableConfigValues may be compatible with.

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

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

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

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

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

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

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

    Type: Message (Google::Cloud::Security::Privateca::V1beta1::Resources::ReusableConfig::LabelsEntry)

    Optional. Labels with user-defined metadata.

Google::Cloud::Security::Privateca::V1beta1::Resources::ReusableConfigValues

A [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues] 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::V1beta1::Resources::ReusableConfigWrapper

A [ReusableConfigWrapper][google.cloud.security.privateca.v1beta1.ReusableConfigWrapper] describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A resource path to a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig] in the format `projects/*/locations/*/reusableConfigs/*`.

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

    Type: Message (Google::Cloud::Security::Privateca::V1beta1::Resources::ReusableConfigValues)

    Required. A user-specified inline [ReusableConfigValues][google.cloud.security.privateca.v1beta1.ReusableConfigValues].

Google::Cloud::Security::Privateca::V1beta1::Resources::SubordinateConfig

Describes a subordinate CA's issuers. This is either a resource path to a known issuing [CertificateAuthority][google.cloud.security.privateca.v1beta1.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.v1beta1.CertificateAuthority] in the same project that was used to create a subordinate [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority]. This field is used for information and usability purposes only. The resource name is in the format `projects/*/locations/*/certificateAuthorities/*`.

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

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

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

Google::Cloud::Security::Privateca::V1beta1::Resources::PublicKey

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

Inherits from Protobuf::Message.

Accessors

Enum: PublicKey::KeyType

  • KEY_TYPE_UNSPECIFIED => 0

  • PEM_RSA_KEY => 1

  • PEM_EC_KEY => 2

Google::Cloud::Security::Privateca::V1beta1::Resources::CertificateConfig

A [CertificateConfig][google.cloud.security.privateca.v1beta1.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::V1beta1::Resources::CertificateDescription

A [CertificateDescription][google.cloud.security.privateca.v1beta1.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::V1beta1::Resources::ObjectId

An [ObjectId][google.cloud.security.privateca.v1beta1.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::V1beta1::Resources::X509Extension

An [X509Extension][google.cloud.security.privateca.v1beta1.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::V1beta1::Resources::ObjectId)

    Required. The OID for this X.509 extension.

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

    Type: Bool

    Required. 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::V1beta1::Resources::KeyUsage

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

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Security::Privateca::V1beta1::Resources::Subject

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

Inherits from Protobuf::Message.

Accessors

  • $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.

Google::Cloud::Security::Privateca::V1beta1::Resources::SubjectAltNames

[SubjectAltNames][google.cloud.security.privateca.v1beta1.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::V1beta1::Resources::X509Extension)

    Contains additional subject alternative name values.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.