# Copyright 2019 Google LLC # # 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 file is auto generated by the elixir code generator program. # Do not edit this file manually. defmodule GoogleApi.Transcoder.V1.Model.Encryption do @moduledoc """ Encryption settings. ## Attributes * `aes128` (*type:* `GoogleApi.Transcoder.V1.Model.Aes128Encryption.t`, *default:* `nil`) - Configuration for AES-128 encryption. * `drmSystems` (*type:* `GoogleApi.Transcoder.V1.Model.DrmSystems.t`, *default:* `nil`) - Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled. * `id` (*type:* `String.t`, *default:* `nil`) - Required. Identifier for this set of encryption options. * `mpegCenc` (*type:* `GoogleApi.Transcoder.V1.Model.MpegCommonEncryption.t`, *default:* `nil`) - Configuration for MPEG Common Encryption (MPEG-CENC). * `sampleAes` (*type:* `GoogleApi.Transcoder.V1.Model.SampleAesEncryption.t`, *default:* `nil`) - Configuration for SAMPLE-AES encryption. * `secretManagerKeySource` (*type:* `GoogleApi.Transcoder.V1.Model.SecretManagerSource.t`, *default:* `nil`) - Keys are stored in Google Secret Manager. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :aes128 => GoogleApi.Transcoder.V1.Model.Aes128Encryption.t() | nil, :drmSystems => GoogleApi.Transcoder.V1.Model.DrmSystems.t() | nil, :id => String.t() | nil, :mpegCenc => GoogleApi.Transcoder.V1.Model.MpegCommonEncryption.t() | nil, :sampleAes => GoogleApi.Transcoder.V1.Model.SampleAesEncryption.t() | nil, :secretManagerKeySource => GoogleApi.Transcoder.V1.Model.SecretManagerSource.t() | nil } field(:aes128, as: GoogleApi.Transcoder.V1.Model.Aes128Encryption) field(:drmSystems, as: GoogleApi.Transcoder.V1.Model.DrmSystems) field(:id) field(:mpegCenc, as: GoogleApi.Transcoder.V1.Model.MpegCommonEncryption) field(:sampleAes, as: GoogleApi.Transcoder.V1.Model.SampleAesEncryption) field(:secretManagerKeySource, as: GoogleApi.Transcoder.V1.Model.SecretManagerSource) end defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.Encryption do def decode(value, options) do GoogleApi.Transcoder.V1.Model.Encryption.decode(value, options) end end defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.Encryption do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end end