Skip to content

Commit e8769e8

Browse files
feat: Automated regeneration of WalletObjects client (googleapis#12925)
Auto-created at 2025-02-05 13:12:55 +0000 using the toys pull request generator.
1 parent d3a9cee commit e8769e8

File tree

6 files changed

+192
-3
lines changed

6 files changed

+192
-3
lines changed

clients/wallet_objects/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_wallet_objects, "~> 0.11"}]
14+
[{:google_api_wallet_objects, "~> 0.12"}]
1515
end
1616
```
1717

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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.WalletObjects.V1.Api.Walletobjects do
19+
@moduledoc """
20+
API calls for all endpoints tagged `Walletobjects`.
21+
"""
22+
23+
alias GoogleApi.WalletObjects.V1.Connection
24+
alias GoogleApi.Gax.{Request, Response}
25+
26+
@library_version Mix.Project.config() |> Keyword.get(:version, "")
27+
28+
@doc """
29+
Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.
30+
31+
## Parameters
32+
33+
* `connection` (*type:* `GoogleApi.WalletObjects.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.WalletObjects.V1.Model.SetPassUpdateNoticeRequest.t`) -
47+
* `opts` (*type:* `keyword()`) - Call options
48+
49+
## Returns
50+
51+
* `{:ok, %GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeResponse{}}` on success
52+
* `{:error, info}` on failure
53+
"""
54+
@spec walletobjects_walletobjects_v1_private_content_set_pass_update_notice(
55+
Tesla.Env.client(),
56+
keyword(),
57+
keyword()
58+
) ::
59+
{:ok, GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeResponse.t()}
60+
| {:ok, Tesla.Env.t()}
61+
| {:ok, list()}
62+
| {:error, any()}
63+
def walletobjects_walletobjects_v1_private_content_set_pass_update_notice(
64+
connection,
65+
optional_params \\ [],
66+
opts \\ []
67+
) do
68+
optional_params_config = %{
69+
:"$.xgafv" => :query,
70+
:access_token => :query,
71+
:alt => :query,
72+
:callback => :query,
73+
:fields => :query,
74+
:key => :query,
75+
:oauth_token => :query,
76+
:prettyPrint => :query,
77+
:quotaUser => :query,
78+
:uploadType => :query,
79+
:upload_protocol => :query,
80+
:body => :body
81+
}
82+
83+
request =
84+
Request.new()
85+
|> Request.method(:post)
86+
|> Request.url("/walletobjects/v1/privateContent/setPassUpdateNotice", %{})
87+
|> Request.add_optional_params(optional_params_config, optional_params)
88+
|> Request.library_version(@library_version)
89+
90+
connection
91+
|> Connection.execute(request)
92+
|> Response.decode(
93+
opts ++ [struct: %GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeResponse{}]
94+
)
95+
end
96+
end

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

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

23-
@discovery_revision "20241203"
23+
@discovery_revision "20250204"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.WalletObjects.V1.Model.SetPassUpdateNoticeRequest do
19+
@moduledoc """
20+
Request to send a private pass update notice information to Google, so that devices can then fetch the notice prompting the user to update a pass.
21+
22+
## Attributes
23+
24+
* `externalPassId` (*type:* `String.t`, *default:* `nil`) - Required. A fully qualified identifier of the pass that the issuer wants to notify the pass holder(s) about. Formatted as .
25+
* `updateUri` (*type:* `String.t`, *default:* `nil`) - Required. The issuer endpoint URI the pass holder needs to follow in order to receive an updated pass JWT. It can not contain any sensitive information. The endpoint needs to authenticate the user before giving the user the updated JWT. Example update URI https://someissuer.com/update/passId=someExternalPassId
26+
* `updatedPassJwtSignature` (*type:* `String.t`, *default:* `nil`) - Required. The JWT signature of the updated pass that the issuer wants to notify Google about. Only devices that report a different JWT signature than this JWT signature will receive the update notification.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:externalPassId => String.t() | nil,
33+
:updateUri => String.t() | nil,
34+
:updatedPassJwtSignature => String.t() | nil
35+
}
36+
37+
field(:externalPassId)
38+
field(:updateUri)
39+
field(:updatedPassJwtSignature)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeRequest do
43+
def decode(value, options) do
44+
GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeRequest.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeRequest do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.WalletObjects.V1.Model.SetPassUpdateNoticeResponse do
19+
@moduledoc """
20+
A response to a request to notify Google of an awaiting update to a private pass.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeResponse do
32+
def decode(value, options) do
33+
GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeResponse.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.WalletObjects.V1.Model.SetPassUpdateNoticeResponse do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end

clients/wallet_objects/mix.exs

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

21-
@version "0.11.1"
21+
@version "0.12.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)