class Google::Apis::PrivatecaV1beta1::Certificate

A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority.

Attributes

certificate_description[RW]

A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509. Corresponds to the JSON property `certificateDescription` @return [Google::Apis::PrivatecaV1beta1::CertificateDescription]

config[RW]

A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1. Corresponds to the JSON property `config` @return [Google::Apis::PrivatecaV1beta1::CertificateConfig]

create_time[RW]

Output only. The time at which this Certificate was created. Corresponds to the JSON property `createTime` @return [String]

labels[RW]

Optional. Labels with user-defined metadata. Corresponds to the JSON property `labels` @return [Hash<String,String>]

lifetime[RW]

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. Corresponds to the JSON property `lifetime` @return [String]

name[RW]

Output only. The resource path for this Certificate in the format `projects/*/ locations//certificateAuthorities//certificates/*`. Corresponds to the JSON property `name` @return [String]

pem_certificate[RW]

Output only. The pem-encoded, signed X.509 certificate. Corresponds to the JSON property `pemCertificate` @return [String]

pem_certificate_chain[RW]

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. Corresponds to the JSON property `pemCertificateChain` @return [Array<String>]

pem_csr[RW]

Immutable. A pem-encoded X.509 certificate signing request (CSR). Corresponds to the JSON property `pemCsr` @return [String]

revocation_details[RW]

Describes fields that are relavent to the revocation of a Certificate. Corresponds to the JSON property `revocationDetails` @return [Google::Apis::PrivatecaV1beta1::RevocationDetails]

update_time[RW]

Output only. The time at which this Certificate was updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/privateca_v1beta1/classes.rb, line 434
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/privateca_v1beta1/classes.rb, line 439
def update!(**args)
  @certificate_description = args[:certificate_description] if args.key?(:certificate_description)
  @config = args[:config] if args.key?(:config)
  @create_time = args[:create_time] if args.key?(:create_time)
  @labels = args[:labels] if args.key?(:labels)
  @lifetime = args[:lifetime] if args.key?(:lifetime)
  @name = args[:name] if args.key?(:name)
  @pem_certificate = args[:pem_certificate] if args.key?(:pem_certificate)
  @pem_certificate_chain = args[:pem_certificate_chain] if args.key?(:pem_certificate_chain)
  @pem_csr = args[:pem_csr] if args.key?(:pem_csr)
  @revocation_details = args[:revocation_details] if args.key?(:revocation_details)
  @update_time = args[:update_time] if args.key?(:update_time)
end