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.



125
126
127
# File 'lib/google/apis/gmail_v1/classes.rb', line 125

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

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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)
end