Class: Google::Apis::AdminDirectoryV1::UserEmail::PublicKeyEncryptionCertificates

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

Overview

Public Key Encryption Certificates. Current limit: 1 per email address, and 5 per user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PublicKeyEncryptionCertificates

Returns a new instance of PublicKeyEncryptionCertificates.



4978
4979
4980
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4978

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

Instance Attribute Details

#certificateString

X.509 encryption certificate in PEM format. Must only be an end-entity (leaf) certificate. Corresponds to the JSON property certificate

Returns:

  • (String)


4964
4965
4966
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4964

def certificate
  @certificate
end

#is_defaultBoolean Also known as: is_default?

Whether this is the default certificate for the given email address. Corresponds to the JSON property is_default

Returns:

  • (Boolean)


4969
4970
4971
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4969

def is_default
  @is_default
end

#stateString

Denotes the certificate's state in its lifecycle. Possible values are not_yet_validated, valid, invalid, expired, and revoked. Corresponds to the JSON property state

Returns:

  • (String)


4976
4977
4978
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4976

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4983
4984
4985
4986
4987
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4983

def update!(**args)
  @certificate = args[:certificate] if args.key?(:certificate)
  @is_default = args[:is_default] if args.key?(:is_default)
  @state = args[:state] if args.key?(:state)
end