Class: Google::Apis::GmailV1::CseIdentity

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

Overview

The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client- side encrypted email messages, and to sign and send encrypted email messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CseIdentity

Returns a new instance of CseIdentity.



131
132
133
# File 'lib/google/apis/gmail_v1/classes.rb', line 131

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

Instance Attribute Details

#email_addressString

The email address for the sending identity. The email address must be the primary email address of the authenticated user. Corresponds to the JSON property emailAddress

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/gmail_v1/classes.rb', line 118

def email_address
  @email_address
end

#primary_key_pair_idString

If a key pair is associated, the ID of the key pair, CseKeyPair. Corresponds to the JSON property primaryKeyPairId

Returns:

  • (String)


123
124
125
# File 'lib/google/apis/gmail_v1/classes.rb', line 123

def primary_key_pair_id
  @primary_key_pair_id
end

#sign_and_encrypt_key_pairsGoogle::Apis::GmailV1::SignAndEncryptKeyPairs

The configuration of a CSE identity that uses different key pairs for signing and encryption. Corresponds to the JSON property signAndEncryptKeyPairs



129
130
131
# File 'lib/google/apis/gmail_v1/classes.rb', line 129

def sign_and_encrypt_key_pairs
  @sign_and_encrypt_key_pairs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



136
137
138
139
140
# File 'lib/google/apis/gmail_v1/classes.rb', line 136

def update!(**args)
  @email_address = args[:email_address] if args.key?(:email_address)
  @primary_key_pair_id = args[:primary_key_pair_id] if args.key?(:primary_key_pair_id)
  @sign_and_encrypt_key_pairs = args[:sign_and_encrypt_key_pairs] if args.key?(:sign_and_encrypt_key_pairs)
end