Skip to content

Commit e64a08e

Browse files
feat: Automated regeneration of DigitalAssetLinks client (googleapis#12984)
Auto-created at 2025-02-16 13:13:58 +0000 using the toys pull request generator.
1 parent 944ca57 commit e64a08e

File tree

7 files changed

+220
-3
lines changed

7 files changed

+220
-3
lines changed

clients/digital_asset_links/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_digital_asset_links, "~> 0.13"}]
14+
[{:google_api_digital_asset_links, "~> 0.14"}]
1515
end
1616
```
1717

clients/digital_asset_links/lib/google_api/digital_asset_links/v1/api/assetlinks.ex

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,67 @@ defmodule GoogleApi.DigitalAssetLinks.V1.Api.Assetlinks do
2525

2626
@library_version Mix.Project.config() |> Keyword.get(:version, "")
2727

28+
@doc """
29+
Send a bundle of statement checks in a single RPC to minimize latency and service load. Statements need not be all for the same source and/or target. We recommend using this method when you need to check more than one statement in a short period of time.
30+
31+
## Parameters
32+
33+
* `connection` (*type:* `GoogleApi.DigitalAssetLinks.V1.Connection.t`) - Connection to server
34+
* `optional_params` (*type:* `keyword()`) - Optional parameters
35+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
36+
* `:access_token` (*type:* `String.t`) - OAuth access token.
37+
* `:alt` (*type:* `String.t`) - Data format for response.
38+
* `:callback` (*type:* `String.t`) - JSONP
39+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
40+
* `: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.
41+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
42+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
43+
* `: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.
44+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
45+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
46+
* `:body` (*type:* `GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckRequest.t`) -
47+
* `opts` (*type:* `keyword()`) - Call options
48+
49+
## Returns
50+
51+
* `{:ok, %GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckResponse{}}` on success
52+
* `{:error, info}` on failure
53+
"""
54+
@spec digitalassetlinks_assetlinks_bulk_check(Tesla.Env.client(), keyword(), keyword()) ::
55+
{:ok, GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckResponse.t()}
56+
| {:ok, Tesla.Env.t()}
57+
| {:ok, list()}
58+
| {:error, any()}
59+
def digitalassetlinks_assetlinks_bulk_check(connection, optional_params \\ [], opts \\ []) do
60+
optional_params_config = %{
61+
:"$.xgafv" => :query,
62+
:access_token => :query,
63+
:alt => :query,
64+
:callback => :query,
65+
:fields => :query,
66+
:key => :query,
67+
:oauth_token => :query,
68+
:prettyPrint => :query,
69+
:quotaUser => :query,
70+
:uploadType => :query,
71+
:upload_protocol => :query,
72+
:body => :body
73+
}
74+
75+
request =
76+
Request.new()
77+
|> Request.method(:post)
78+
|> Request.url("/v1/assetlinks:bulkCheck", %{})
79+
|> Request.add_optional_params(optional_params_config, optional_params)
80+
|> Request.library_version(@library_version)
81+
82+
connection
83+
|> Connection.execute(request)
84+
|> Response.decode(
85+
opts ++ [struct: %GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckResponse{}]
86+
)
87+
end
88+
2889
@doc """
2990
Determines whether the specified (directional) relationship exists between the specified source and target assets. The relation describes the intent of the link between the two assets as claimed by the source asset. An example for such relationships is the delegation of privileges or permissions. This command is most often used by infrastructure systems to check preconditions for an action. For example, a client may want to know if it is OK to send a web URL to a particular mobile app instead. The client can check for the relevant asset link from the website to the mobile app to decide if the operation should be allowed. A note about security: if you specify a secure asset as the source, such as an HTTPS website or an Android app, the API will ensure that any statements used to generate the response have been made in a secure way by the owner of that asset. Conversely, if the source asset is an insecure HTTP website (that is, the URL starts with `http://` instead of `https://`), the API cannot verify its statements securely, and it is not possible to ensure that the website's statements have not been altered by a third party. For more information, see the [Digital Asset Links technical design specification](https://github.com/google/digitalassetlinks/blob/master/well-known/details.md).
3091

clients/digital_asset_links/lib/google_api/digital_asset_links/v1/metadata.ex

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

23-
@discovery_revision "20241109"
23+
@discovery_revision "20250211"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.DigitalAssetLinks.V1.Model.BulkCheckRequest do
19+
@moduledoc """
20+
Message used to check for the existence of multiple digital asset links within a single RPC.
21+
22+
## Attributes
23+
24+
* `defaultRelation` (*type:* `String.t`, *default:* `nil`) - If specified, will be used in any given template statement that doesn’t specify a relation.
25+
* `defaultSource` (*type:* `GoogleApi.DigitalAssetLinks.V1.Model.Asset.t`, *default:* `nil`) - If specified, will be used in any given template statement that doesn’t specify a source.
26+
* `defaultTarget` (*type:* `GoogleApi.DigitalAssetLinks.V1.Model.Asset.t`, *default:* `nil`) - If specified, will be used in any given template statement that doesn’t specify a target.
27+
* `statements` (*type:* `list(GoogleApi.DigitalAssetLinks.V1.Model.StatementTemplate.t)`, *default:* `nil`) - List of statements to check. For each statement, you can omit a field if the corresponding default_* field below was supplied. Minimum 1 statement; maximum 1,000 statements. Any additional statements will be ignored.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:defaultRelation => String.t() | nil,
34+
:defaultSource => GoogleApi.DigitalAssetLinks.V1.Model.Asset.t() | nil,
35+
:defaultTarget => GoogleApi.DigitalAssetLinks.V1.Model.Asset.t() | nil,
36+
:statements => list(GoogleApi.DigitalAssetLinks.V1.Model.StatementTemplate.t()) | nil
37+
}
38+
39+
field(:defaultRelation)
40+
field(:defaultSource, as: GoogleApi.DigitalAssetLinks.V1.Model.Asset)
41+
field(:defaultTarget, as: GoogleApi.DigitalAssetLinks.V1.Model.Asset)
42+
field(:statements, as: GoogleApi.DigitalAssetLinks.V1.Model.StatementTemplate, type: :list)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckRequest do
46+
def decode(value, options) do
47+
GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckRequest.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckRequest do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.DigitalAssetLinks.V1.Model.BulkCheckResponse do
19+
@moduledoc """
20+
Response for BulkCheck call. Results are sent in a list in the same order in which they were sent. Individual check errors are described in the appropriate check_results entry. If the entire call fails, the response will include a bulk_error_code field describing the error.
21+
22+
## Attributes
23+
24+
* `bulkErrorCode` (*type:* `String.t`, *default:* `nil`) - Error code for the entire request. Present only if the entire request failed. Individual check errors will not trigger the presence of this field.
25+
* `checkResults` (*type:* `list(GoogleApi.DigitalAssetLinks.V1.Model.CheckResponse.t)`, *default:* `nil`) - List of results for each check request. Results are returned in the same order in which they were sent in the request.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:bulkErrorCode => String.t() | nil,
32+
:checkResults => list(GoogleApi.DigitalAssetLinks.V1.Model.CheckResponse.t()) | nil
33+
}
34+
35+
field(:bulkErrorCode)
36+
field(:checkResults, as: GoogleApi.DigitalAssetLinks.V1.Model.CheckResponse, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckResponse do
40+
def decode(value, options) do
41+
GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckResponse.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.DigitalAssetLinks.V1.Model.BulkCheckResponse do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.DigitalAssetLinks.V1.Model.StatementTemplate do
19+
@moduledoc """
20+
A single statement to check in a bulk call using BulkCheck. See CheckRequest for details about each field.
21+
22+
## Attributes
23+
24+
* `relation` (*type:* `String.t`, *default:* `nil`) - The relationship being asserted between the source and target. If omitted, you must specify a BulkCheckRequest.default_relation value to use here.
25+
* `source` (*type:* `GoogleApi.DigitalAssetLinks.V1.Model.Asset.t`, *default:* `nil`) - The source asset that is asserting the statement. If omitted, you must specify a BulkCheckRequest.default_source value to use here.
26+
* `target` (*type:* `GoogleApi.DigitalAssetLinks.V1.Model.Asset.t`, *default:* `nil`) - The target that the source is declaring the relationship with. If omitted, you must specify a BulkCheckRequest.default_target to use here.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:relation => String.t() | nil,
33+
:source => GoogleApi.DigitalAssetLinks.V1.Model.Asset.t() | nil,
34+
:target => GoogleApi.DigitalAssetLinks.V1.Model.Asset.t() | nil
35+
}
36+
37+
field(:relation)
38+
field(:source, as: GoogleApi.DigitalAssetLinks.V1.Model.Asset)
39+
field(:target, as: GoogleApi.DigitalAssetLinks.V1.Model.Asset)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.DigitalAssetLinks.V1.Model.StatementTemplate do
43+
def decode(value, options) do
44+
GoogleApi.DigitalAssetLinks.V1.Model.StatementTemplate.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.DigitalAssetLinks.V1.Model.StatementTemplate do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/digital_asset_links/mix.exs

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

21-
@version "0.13.0"
21+
@version "0.14.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)