Class: Google::Apis::PrivatecaV1::CertificateAuthority
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::CertificateAuthority
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1/classes.rb,
lib/google/apis/privateca_v1/representations.rb,
lib/google/apis/privateca_v1/representations.rb
Overview
A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates.
Instance Attribute Summary collapse
-
#access_urls ⇒ Google::Apis::PrivatecaV1::AccessUrls
URLs where a CertificateAuthority will publish content.
-
#ca_certificate_descriptions ⇒ Array<Google::Apis::PrivatecaV1::CertificateDescription>
Output only.
-
#config ⇒ Google::Apis::PrivatecaV1::CertificateConfig
A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#gcs_bucket ⇒ String
Immutable.
-
#key_spec ⇒ Google::Apis::PrivatecaV1::KeyVersionSpec
A Cloud KMS key configuration that a CertificateAuthority will use.
-
#labels ⇒ Hash<String,String>
Optional.
-
#lifetime ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#pem_ca_certificates ⇒ Array<String>
Output only.
-
#satisfies_pzi ⇒ Boolean
(also: #satisfies_pzi?)
Output only.
-
#satisfies_pzs ⇒ Boolean
(also: #satisfies_pzs?)
Output only.
-
#state ⇒ String
Output only.
-
#subordinate_config ⇒ Google::Apis::PrivatecaV1::SubordinateConfig
Describes a subordinate CA's issuers.
-
#tier ⇒ String
Output only.
-
#type ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CertificateAuthority
constructor
A new instance of CertificateAuthority.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CertificateAuthority
Returns a new instance of CertificateAuthority.
639 640 641 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 639 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_urls ⇒ Google::Apis::PrivatecaV1::AccessUrls
URLs where a CertificateAuthority will publish content.
Corresponds to the JSON property accessUrls
529 530 531 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 529 def access_urls @access_urls end |
#ca_certificate_descriptions ⇒ Array<Google::Apis::PrivatecaV1::CertificateDescription>
Output only. A structured description of this CertificateAuthority's CA
certificate and its issuers. Ordered as self-to-root.
Corresponds to the JSON property caCertificateDescriptions
535 536 537 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 535 def ca_certificate_descriptions @ca_certificate_descriptions end |
#config ⇒ Google::Apis::PrivatecaV1::CertificateConfig
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
541 542 543 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 541 def config @config end |
#create_time ⇒ String
Output only. The time at which this CertificateAuthority was created.
Corresponds to the JSON property createTime
546 547 548 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 546 def create_time @create_time end |
#delete_time ⇒ String
Output only. The time at which this CertificateAuthority was soft deleted, if
it is in the DELETED state.
Corresponds to the JSON property deleteTime
552 553 554 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 552 def delete_time @delete_time end |
#expire_time ⇒ String
Output only. The time at which this CertificateAuthority will be permanently
purged, if it is in the DELETED state.
Corresponds to the JSON property expireTime
558 559 560 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 558 def expire_time @expire_time end |
#gcs_bucket ⇒ String
Immutable. The name of a Cloud Storage bucket where this 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.
Corresponds to the JSON property gcsBucket
567 568 569 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 567 def gcs_bucket @gcs_bucket end |
#key_spec ⇒ Google::Apis::PrivatecaV1::KeyVersionSpec
A Cloud KMS key configuration that a CertificateAuthority will use.
Corresponds to the JSON property keySpec
572 573 574 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 572 def key_spec @key_spec end |
#labels ⇒ Hash<String,String>
Optional. Labels with user-defined metadata.
Corresponds to the JSON property labels
577 578 579 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 577 def labels @labels end |
#lifetime ⇒ String
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.
Corresponds to the JSON property lifetime
584 585 586 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 584 def lifetime @lifetime end |
#name ⇒ String
Output only. The resource name for this CertificateAuthority in the format
projects/*/locations/*/caPools/*/certificateAuthorities/*
.
Corresponds to the JSON property name
590 591 592 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 590 def name @name end |
#pem_ca_certificates ⇒ Array<String>
Output only. This CertificateAuthority's certificate chain, including the
current 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's certificate.
Corresponds to the JSON property pemCaCertificates
598 599 600 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 598 def pem_ca_certificates @pem_ca_certificates end |
#satisfies_pzi ⇒ Boolean Also known as: satisfies_pzi?
Output only. Reserved for future use.
Corresponds to the JSON property satisfiesPzi
603 604 605 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 603 def satisfies_pzi @satisfies_pzi end |
#satisfies_pzs ⇒ Boolean Also known as: satisfies_pzs?
Output only. Reserved for future use.
Corresponds to the JSON property satisfiesPzs
609 610 611 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 609 def satisfies_pzs @satisfies_pzs end |
#state ⇒ String
Output only. The State for this CertificateAuthority.
Corresponds to the JSON property state
615 616 617 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 615 def state @state end |
#subordinate_config ⇒ Google::Apis::PrivatecaV1::SubordinateConfig
Describes a subordinate CA's issuers. This is either a resource name to a
known issuing CertificateAuthority, or a PEM issuer certificate chain.
Corresponds to the JSON property subordinateConfig
621 622 623 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 621 def subordinate_config @subordinate_config end |
#tier ⇒ String
Output only. The CaPool.Tier of the CaPool that includes this
CertificateAuthority.
Corresponds to the JSON property tier
627 628 629 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 627 def tier @tier end |
#type ⇒ String
Required. Immutable. The Type of this CertificateAuthority.
Corresponds to the JSON property type
632 633 634 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 632 def type @type end |
#update_time ⇒ String
Output only. The time at which this CertificateAuthority was last updated.
Corresponds to the JSON property updateTime
637 638 639 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 637 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 644 def update!(**args) @access_urls = args[:access_urls] if args.key?(:access_urls) @ca_certificate_descriptions = args[:ca_certificate_descriptions] if args.key?(:ca_certificate_descriptions) @config = args[:config] if args.key?(:config) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @expire_time = args[:expire_time] if args.key?(:expire_time) @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket) @key_spec = args[:key_spec] if args.key?(:key_spec) @labels = args[:labels] if args.key?(:labels) @lifetime = args[:lifetime] if args.key?(:lifetime) @name = args[:name] if args.key?(:name) @pem_ca_certificates = args[:pem_ca_certificates] if args.key?(:pem_ca_certificates) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @state = args[:state] if args.key?(:state) @subordinate_config = args[:subordinate_config] if args.key?(:subordinate_config) @tier = args[:tier] if args.key?(:tier) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |