# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # NOTE: This class is auto generated by the swagger code generator program. # https://github.com/swagger-api/swagger-codegen.git # Do not edit the class manually. defmodule GoogleApi.Gmail.V1.Model.SmimeInfo do @moduledoc """ An S/MIME email config. ## Attributes - encryptedKeyPassword (String.t): Encrypted key password, when key is encrypted. Defaults to: `null`. - expiration (String.t): When the certificate expires (in milliseconds since epoch). Defaults to: `null`. - id (String.t): The immutable ID for the SmimeInfo. Defaults to: `null`. - isDefault (boolean()): Whether this SmimeInfo is the default one for this user's send-as address. Defaults to: `null`. - issuerCn (String.t): The S/MIME certificate issuer's common name. Defaults to: `null`. - pem (String.t): 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). Defaults to: `null`. - pkcs12 (binary()): 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. Defaults to: `null`. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :encryptedKeyPassword => any(), :expiration => any(), :id => any(), :isDefault => any(), :issuerCn => any(), :pem => any(), :pkcs12 => any() } field(:encryptedKeyPassword) field(:expiration) field(:id) field(:isDefault) field(:issuerCn) field(:pem) field(:pkcs12) end defimpl Poison.Decoder, for: GoogleApi.Gmail.V1.Model.SmimeInfo do def decode(value, options) do GoogleApi.Gmail.V1.Model.SmimeInfo.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Gmail.V1.Model.SmimeInfo do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end