Class: Google::Apis::CloudkmsV1::Certificate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#issuerString

Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true. Corresponds to the JSON property issuer

Returns:

  • (String)


471
472
473
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 471

def issuer
  @issuer
end

#not_after_timeString

Output only. The certificate is not valid after this time. Only present if parsed is true. Corresponds to the JSON property notAfterTime

Returns:

  • (String)


477
478
479
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 477

def not_after_time
  @not_after_time
end

#not_before_timeString

Output only. The certificate is not valid before this time. Only present if parsed is true. Corresponds to the JSON property notBeforeTime

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 483

def not_before_time
  @not_before_time
end

#parsedBoolean Also known as: parsed?

Output only. True if the certificate was parsed successfully. Corresponds to the JSON property parsed

Returns:

  • (Boolean)


488
489
490
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 488

def parsed
  @parsed
end

#raw_derString

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.

Returns:

  • (String)


495
496
497
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 495

def raw_der
  @raw_der
end

#serial_numberString

Output only. The certificate serial number as a hex string. Only present if parsed is true. Corresponds to the JSON property serialNumber

Returns:

  • (String)


501
502
503
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 501

def serial_number
  @serial_number
end

#sha256_fingerprintString

Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true. Corresponds to the JSON property sha256Fingerprint

Returns:

  • (String)


507
508
509
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 507

def sha256_fingerprint
  @sha256_fingerprint
end

#subjectString

Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true. Corresponds to the JSON property subject

Returns:

  • (String)


513
514
515
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 513

def subject
  @subject
end

#subject_alternative_dns_namesArray<String>

Output only. The subject Alternative DNS names. Only present if parsed is true. Corresponds to the JSON property subjectAlternativeDnsNames

Returns:

  • (Array<String>)


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