Skip to content

Commit

Permalink
feat: Automated regeneration of Transcoder client (#10998)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 02:53:51 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 651f606 commit 15104a8
Show file tree
Hide file tree
Showing 38 changed files with 942 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Transcoder.V1 do
API client metadata for GoogleApi.Transcoder.V1.
"""

@discovery_revision "20221027"
@discovery_revision "20240228"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.Aes128Encryption do
@moduledoc """
Configuration for AES-128 encryption.
## Attributes
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.Aes128Encryption do
def decode(value, options) do
GoogleApi.Transcoder.V1.Model.Aes128Encryption.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.Aes128Encryption do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.Transcoder.V1.Model.AnimationEnd do
@moduledoc """
End previous overlay animation from the video. Without AnimationEnd, the overlay object will keep the state of previous animation until the end of the video.
End previous overlay animation from the video. Without `AnimationEnd`, the overlay object will keep the state of previous animation until the end of the video.
## Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

defmodule GoogleApi.Transcoder.V1.Model.AudioMapping do
@moduledoc """
The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
## Attributes
* `atomKey` (*type:* `String.t`, *default:* `nil`) - Required. The `EditAtom.key` that references the atom with audio inputs in the `Job.edit_list`.
* `atomKey` (*type:* `String.t`, *default:* `nil`) - Required. The EditAtom.key that references the atom with audio inputs in the JobConfig.edit_list.
* `gainDb` (*type:* `float()`, *default:* `nil`) - Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.
* `inputChannel` (*type:* `integer()`, *default:* `nil`) - Required. The zero-based index of the channel in the input audio stream.
* `inputKey` (*type:* `String.t`, *default:* `nil`) - Required. The `Input.key` that identifies the input file.
* `inputKey` (*type:* `String.t`, *default:* `nil`) - Required. The Input.key that identifies the input file.
* `inputTrack` (*type:* `integer()`, *default:* `nil`) - Required. The zero-based index of the track in the input file.
* `outputChannel` (*type:* `integer()`, *default:* `nil`) - Required. The zero-based index of the channel in the output audio stream.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ defmodule GoogleApi.Transcoder.V1.Model.AudioStream do
* `channelCount` (*type:* `integer()`, *default:* `nil`) - Number of audio channels. Must be between 1 and 6. The default is 2.
* `channelLayout` (*type:* `list(String.t)`, *default:* `nil`) - A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `["fl", "fr"]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
* `codec` (*type:* `String.t`, *default:* `nil`) - The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3`
* `mapping` (*type:* `list(GoogleApi.Transcoder.V1.Model.AudioMapping.t)`, *default:* `nil`) - The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
* `displayName` (*type:* `String.t`, *default:* `nil`) - The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
* `languageCode` (*type:* `String.t`, *default:* `nil`) - The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
* `mapping` (*type:* `list(GoogleApi.Transcoder.V1.Model.AudioMapping.t)`, *default:* `nil`) - The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
* `sampleRateHertz` (*type:* `integer()`, *default:* `nil`) - The audio sample rate in Hertz. The default is 48000 Hertz.
"""

Expand All @@ -36,6 +38,8 @@ defmodule GoogleApi.Transcoder.V1.Model.AudioStream do
:channelCount => integer() | nil,
:channelLayout => list(String.t()) | nil,
:codec => String.t() | nil,
:displayName => String.t() | nil,
:languageCode => String.t() | nil,
:mapping => list(GoogleApi.Transcoder.V1.Model.AudioMapping.t()) | nil,
:sampleRateHertz => integer() | nil
}
Expand All @@ -44,6 +48,8 @@ defmodule GoogleApi.Transcoder.V1.Model.AudioStream do
field(:channelCount)
field(:channelLayout, type: :list)
field(:codec)
field(:displayName)
field(:languageCode)
field(:mapping, as: GoogleApi.Transcoder.V1.Model.AudioMapping, type: :list)
field(:sampleRateHertz)
end
Expand Down
41 changes: 41 additions & 0 deletions clients/transcoder/lib/google_api/transcoder/v1/model/clearkey.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.Clearkey do
@moduledoc """
Clearkey configuration.
## Attributes
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.Clearkey do
def decode(value, options) do
GoogleApi.Transcoder.V1.Model.Clearkey.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.Clearkey do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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.DashConfig do
@moduledoc """
`DASH` manifest configuration.
## Attributes
* `segmentReferenceScheme` (*type:* `String.t`, *default:* `nil`) - The segment reference scheme for a `DASH` manifest. The default is `SEGMENT_LIST`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:segmentReferenceScheme => String.t() | nil
}

field(:segmentReferenceScheme)
end

defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.DashConfig do
def decode(value, options) do
GoogleApi.Transcoder.V1.Model.DashConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.DashConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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.DrmSystems do
@moduledoc """
Defines configuration for DRM systems in use.
## Attributes
* `clearkey` (*type:* `GoogleApi.Transcoder.V1.Model.Clearkey.t`, *default:* `nil`) - Clearkey configuration.
* `fairplay` (*type:* `GoogleApi.Transcoder.V1.Model.Fairplay.t`, *default:* `nil`) - Fairplay configuration.
* `playready` (*type:* `GoogleApi.Transcoder.V1.Model.Playready.t`, *default:* `nil`) - Playready configuration.
* `widevine` (*type:* `GoogleApi.Transcoder.V1.Model.Widevine.t`, *default:* `nil`) - Widevine configuration.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:clearkey => GoogleApi.Transcoder.V1.Model.Clearkey.t() | nil,
:fairplay => GoogleApi.Transcoder.V1.Model.Fairplay.t() | nil,
:playready => GoogleApi.Transcoder.V1.Model.Playready.t() | nil,
:widevine => GoogleApi.Transcoder.V1.Model.Widevine.t() | nil
}

field(:clearkey, as: GoogleApi.Transcoder.V1.Model.Clearkey)
field(:fairplay, as: GoogleApi.Transcoder.V1.Model.Fairplay)
field(:playready, as: GoogleApi.Transcoder.V1.Model.Playready)
field(:widevine, as: GoogleApi.Transcoder.V1.Model.Widevine)
end

defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.DrmSystems do
def decode(value, options) do
GoogleApi.Transcoder.V1.Model.DrmSystems.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.DrmSystems do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.Transcoder.V1.Model.EditAtom do
## Attributes
* `endTimeOffset` (*type:* `String.t`, *default:* `nil`) - End time in seconds for the atom, relative to the input file timeline. When `end_time_offset` is not specified, the `inputs` are used until the end of the atom.
* `inputs` (*type:* `list(String.t)`, *default:* `nil`) - List of `Input.key`s identifying files that should be used in this atom. The listed `inputs` must have the same timeline.
* `inputs` (*type:* `list(String.t)`, *default:* `nil`) - List of Input.key values identifying files that should be used in this atom. The listed `inputs` must have the same timeline.
* `key` (*type:* `String.t`, *default:* `nil`) - A unique key for this atom. Must be specified when using advanced mapping.
* `startTimeOffset` (*type:* `String.t`, *default:* `nil`) - Start time in seconds for the atom, relative to the input file timeline. The default is `0s`.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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
41 changes: 41 additions & 0 deletions clients/transcoder/lib/google_api/transcoder/v1/model/fairplay.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.Fairplay do
@moduledoc """
Fairplay configuration.
## Attributes
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.Fairplay do
def decode(value, options) do
GoogleApi.Transcoder.V1.Model.Fairplay.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.Fairplay do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading

0 comments on commit 15104a8

Please sign in to comment.