Class: Google::Apis::CloudkmsV1::Certificate
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::Certificate
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudkms_v1/classes.rb,
lib/google/apis/cloudkms_v1/representations.rb,
lib/google/apis/cloudkms_v1/representations.rb
Overview
A Certificate represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.
Instance Attribute Summary collapse
-
#issuer ⇒ String
Output only.
-
#not_after_time ⇒ String
Output only.
-
#not_before_time ⇒ String
Output only.
-
#parsed ⇒ Boolean
(also: #parsed?)
Output only.
-
#raw_der ⇒ String
Required.
-
#serial_number ⇒ String
Output only.
-
#sha256_fingerprint ⇒ String
Output only.
-
#subject ⇒ String
Output only.
-
#subject_alternative_dns_names ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Certificate
constructor
A new instance of Certificate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Certificate
Returns a new instance of Certificate.
520 521 522 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#issuer ⇒ String
Output only. The issuer distinguished name in RFC 2253 format. Only present if
parsed is true.
Corresponds to the JSON property issuer
471 472 473 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 471 def issuer @issuer end |
#not_after_time ⇒ String
Output only. The certificate is not valid after this time. Only present if
parsed is true.
Corresponds to the JSON property notAfterTime
477 478 479 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 477 def not_after_time @not_after_time end |
#not_before_time ⇒ String
Output only. The certificate is not valid before this time. Only present if
parsed is true.
Corresponds to the JSON property notBeforeTime
483 484 485 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 483 def not_before_time @not_before_time end |
#parsed ⇒ Boolean Also known as: parsed?
Output only. True if the certificate was parsed successfully.
Corresponds to the JSON property parsed
488 489 490 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 488 def parsed @parsed end |
#raw_der ⇒ String
Required. The raw certificate bytes in DER format.
Corresponds to the JSON property rawDer
NOTE: Values are automatically base64 encoded/decoded in the client library.
495 496 497 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 495 def raw_der @raw_der end |
#serial_number ⇒ String
Output only. The certificate serial number as a hex string. Only present if
parsed is true.
Corresponds to the JSON property serialNumber
501 502 503 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 501 def serial_number @serial_number end |
#sha256_fingerprint ⇒ String
Output only. The SHA-256 certificate fingerprint as a hex string. Only present
if parsed is true.
Corresponds to the JSON property sha256Fingerprint
507 508 509 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 507 def sha256_fingerprint @sha256_fingerprint end |
#subject ⇒ String
Output only. The subject distinguished name in RFC 2253 format. Only present
if parsed is true.
Corresponds to the JSON property subject
513 514 515 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 513 def subject @subject end |
#subject_alternative_dns_names ⇒ Array<String>
Output only. The subject Alternative DNS names. Only present if parsed is true.
Corresponds to the JSON property subjectAlternativeDnsNames
518 519 520 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 518 def subject_alternative_dns_names @subject_alternative_dns_names end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 525 def update!(**args) @issuer = args[:issuer] if args.key?(:issuer) @not_after_time = args[:not_after_time] if args.key?(:not_after_time) @not_before_time = args[:not_before_time] if args.key?(:not_before_time) @parsed = args[:parsed] if args.key?(:parsed) @raw_der = args[:raw_der] if args.key?(:raw_der) @serial_number = args[:serial_number] if args.key?(:serial_number) @sha256_fingerprint = args[:sha256_fingerprint] if args.key?(:sha256_fingerprint) @subject = args[:subject] if args.key?(:subject) @subject_alternative_dns_names = args[:subject_alternative_dns_names] if args.key?(:subject_alternative_dns_names) end |