Skip to content

Commit 3b27c21

Browse files
feat: Automated regeneration of DisplayVideo client (googleapis#12909)
Auto-created at 2025-02-01 13:10:35 +0000 using the toys pull request generator.
1 parent 2727a16 commit 3b27c21

File tree

6 files changed

+198
-3
lines changed

6 files changed

+198
-3
lines changed

clients/display_video/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_display_video, "~> 0.38"}]
14+
[{:google_api_display_video, "~> 0.39"}]
1515
end
1616
```
1717

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DisplayVideo.V3.Api.Sdfuploadtasks do
19+
@moduledoc """
20+
API calls for all endpoints tagged `Sdfuploadtasks`.
21+
"""
22+
23+
alias GoogleApi.DisplayVideo.V3.Connection
24+
alias GoogleApi.Gax.{Request, Response}
25+
26+
@library_version Mix.Project.config() |> Keyword.get(:version, "")
27+
28+
@doc """
29+
Gets the latest state of an asynchronous SDF download task operation. Clients should poll this method at intervals of 30 seconds.
30+
31+
## Parameters
32+
33+
* `connection` (*type:* `GoogleApi.DisplayVideo.V3.Connection.t`) - Connection to server
34+
* `name` (*type:* `String.t`) - The name of the operation resource.
35+
* `optional_params` (*type:* `keyword()`) - Optional parameters
36+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
37+
* `:access_token` (*type:* `String.t`) - OAuth access token.
38+
* `:alt` (*type:* `String.t`) - Data format for response.
39+
* `:callback` (*type:* `String.t`) - JSONP
40+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
41+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
42+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
43+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
44+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
46+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
47+
* `opts` (*type:* `keyword()`) - Call options
48+
49+
## Returns
50+
51+
* `{:ok, %GoogleApi.DisplayVideo.V3.Model.Operation{}}` on success
52+
* `{:error, info}` on failure
53+
"""
54+
@spec displayvideo_sdfuploadtasks_operations_get(
55+
Tesla.Env.client(),
56+
String.t(),
57+
keyword(),
58+
keyword()
59+
) ::
60+
{:ok, GoogleApi.DisplayVideo.V3.Model.Operation.t()}
61+
| {:ok, Tesla.Env.t()}
62+
| {:ok, list()}
63+
| {:error, any()}
64+
def displayvideo_sdfuploadtasks_operations_get(
65+
connection,
66+
name,
67+
optional_params \\ [],
68+
opts \\ []
69+
) do
70+
optional_params_config = %{
71+
:"$.xgafv" => :query,
72+
:access_token => :query,
73+
:alt => :query,
74+
:callback => :query,
75+
:fields => :query,
76+
:key => :query,
77+
:oauth_token => :query,
78+
:prettyPrint => :query,
79+
:quotaUser => :query,
80+
:uploadType => :query,
81+
:upload_protocol => :query
82+
}
83+
84+
request =
85+
Request.new()
86+
|> Request.method(:get)
87+
|> Request.url("/v3/{+name}", %{
88+
"name" => URI.encode(name, &URI.char_unreserved?/1)
89+
})
90+
|> Request.add_optional_params(optional_params_config, optional_params)
91+
|> Request.library_version(@library_version)
92+
93+
connection
94+
|> Connection.execute(request)
95+
|> Response.decode(opts ++ [struct: %GoogleApi.DisplayVideo.V3.Model.Operation{}])
96+
end
97+
end

clients/display_video/lib/google_api/display_video/v3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.DisplayVideo.V3 do
2020
API client metadata for GoogleApi.DisplayVideo.V3.
2121
"""
2222

23-
@discovery_revision "20250123"
23+
@discovery_revision "20250129"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DisplayVideo.V3.Model.SdfUploadTask do
19+
@moduledoc """
20+
Type for the response returned by [SdfUploadTaskService.CreateSdfUploadTask].
21+
22+
## Attributes
23+
24+
* `resourceName` (*type:* `String.t`, *default:* `nil`) - A resource name to be used in media.download to Download the script files. Or media.upload to Upload the script files. Resource names have the format `download/sdfuploadtasks/media/{media_id}`.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:resourceName => String.t() | nil
31+
}
32+
33+
field(:resourceName)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V3.Model.SdfUploadTask do
37+
def decode(value, options) do
38+
GoogleApi.DisplayVideo.V3.Model.SdfUploadTask.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V3.Model.SdfUploadTask do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DisplayVideo.V3.Model.SdfUploadTaskMetadata do
19+
@moduledoc """
20+
Type for the metadata returned by [SdfUploadTaskService.CreateSdfUploadTask].
21+
22+
## Attributes
23+
24+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the operation was created.
25+
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when execution was completed.
26+
* `version` (*type:* `String.t`, *default:* `nil`) - The SDF version used to execute this upload task.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:createTime => DateTime.t() | nil,
33+
:endTime => DateTime.t() | nil,
34+
:version => String.t() | nil
35+
}
36+
37+
field(:createTime, as: DateTime)
38+
field(:endTime, as: DateTime)
39+
field(:version)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.DisplayVideo.V3.Model.SdfUploadTaskMetadata do
43+
def decode(value, options) do
44+
GoogleApi.DisplayVideo.V3.Model.SdfUploadTaskMetadata.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.DisplayVideo.V3.Model.SdfUploadTaskMetadata do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/display_video/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.DisplayVideo.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.38.4"
21+
@version "0.39.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)