Class: Google::Apis::AppengineV1::CertificateRawData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb

Overview

An SSL certificate obtained from a certificate authority.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CertificateRawData

Returns a new instance of CertificateRawData



490
491
492
# File 'generated/google/apis/appengine_v1/classes.rb', line 490

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#private_keyString

Unencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example:

 -----BEGIN RSA PRIVATE KEY----- <
unencrypted_key_value> -----END RSA PRIVATE KEY----- 
@InputOnly Corresponds to the JSON property privateKey

Returns:

  • (String)


481
482
483
# File 'generated/google/apis/appengine_v1/classes.rb', line 481

def private_key
  @private_key
end

#public_certificateString

PEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example:

 -----
BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- 
Corresponds to the JSON property publicCertificate

Returns:

  • (String)


488
489
490
# File 'generated/google/apis/appengine_v1/classes.rb', line 488

def public_certificate
  @public_certificate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



495
496
497
498
# File 'generated/google/apis/appengine_v1/classes.rb', line 495

def update!(**args)
  @private_key = args[:private_key] if args.key?(:private_key)
  @public_certificate = args[:public_certificate] if args.key?(:public_certificate)
end