Class: Google::Apis::GmailV1::SmimeInfo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GmailV1::SmimeInfo
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gmail_v1/classes.rb,
 generated/google/apis/gmail_v1/representations.rb,
 generated/google/apis/gmail_v1/representations.rb
Overview
An S/MIME email config.
Instance Attribute Summary collapse
- 
  
    
      #encrypted_key_password  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Encrypted key password, when key is encrypted. 
- 
  
    
      #expiration  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    When the certificate expires (in milliseconds since epoch). 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The immutable ID for the SmimeInfo. 
- 
  
    
      #is_default  ⇒ Boolean 
    
    
      (also: #is_default?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this SmimeInfo is the default one for this user's send-as address. 
- 
  
    
      #issuer_cn  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The S/MIME certificate issuer's common name. 
- 
  
    
      #pem  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    PEM formatted X509 concatenated certificate string (standard base64 encoding). 
- 
  
    
      #pkcs12  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    PKCS#12 format containing a single private/public key pair and certificate chain. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SmimeInfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SmimeInfo. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SmimeInfo
Returns a new instance of SmimeInfo
| 1277 1278 1279 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1277 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#encrypted_key_password ⇒ String
Encrypted key password, when key is encrypted.
Corresponds to the JSON property encryptedKeyPassword
| 1237 1238 1239 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1237 def encrypted_key_password @encrypted_key_password end | 
#expiration ⇒ Fixnum
When the certificate expires (in milliseconds since epoch).
Corresponds to the JSON property expiration
| 1242 1243 1244 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1242 def expiration @expiration end | 
#id ⇒ String
The immutable ID for the SmimeInfo.
Corresponds to the JSON property id
| 1247 1248 1249 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1247 def id @id end | 
#is_default ⇒ Boolean Also known as: is_default?
Whether this SmimeInfo is the default one for this user's send-as address.
Corresponds to the JSON property isDefault
| 1252 1253 1254 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1252 def is_default @is_default end | 
#issuer_cn ⇒ String
The S/MIME certificate issuer's common name.
Corresponds to the JSON property issuerCn
| 1258 1259 1260 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1258 def issuer_cn @issuer_cn end | 
#pem ⇒ String
PEM formatted X509 concatenated certificate string (standard base64 encoding).
Format used for returning key, which includes public key as well as
certificate chain (not private key).
Corresponds to the JSON property pem
| 1265 1266 1267 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1265 def pem @pem end | 
#pkcs12 ⇒ String
PKCS#12 format containing a single private/public key pair and certificate
chain. This format is only accepted from client for creating a new SmimeInfo
and is never returned, because the private key is not intended to be exported.
PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set
appropriately.
Corresponds to the JSON property pkcs12
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 1275 1276 1277 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1275 def pkcs12 @pkcs12 end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1282 1283 1284 1285 1286 1287 1288 1289 1290 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1282 def update!(**args) @encrypted_key_password = args[:encrypted_key_password] if args.key?(:encrypted_key_password) @expiration = args[:expiration] if args.key?(:expiration) @id = args[:id] if args.key?(:id) @is_default = args[:is_default] if args.key?(:is_default) @issuer_cn = args[:issuer_cn] if args.key?(:issuer_cn) @pem = args[:pem] if args.key?(:pem) @pkcs12 = args[:pkcs12] if args.key?(:pkcs12) end |