Skip to content

Commit e12275b

Browse files
feat: Automated regeneration of DeveloperConnect client (#13252)
Auto-created at 2025-03-27 13:24:22 +0000 using the toys pull request generator.
1 parent 308c654 commit e12275b

File tree

10 files changed

+1179
-1
lines changed

10 files changed

+1179
-1
lines changed

clients/developer_connect/lib/google_api/developer_connect/v1/api/projects.ex

Lines changed: 756 additions & 0 deletions
Large diffs are not rendered by default.

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

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

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

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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.DeveloperConnect.V1.Model.AccountConnector do
19+
@moduledoc """
20+
AccountConnector encapsulates what a platform administrator needs to configure for users to connect to the service providers, which includes, among other fields, the OAuth client ID, client secret, and authorization and token endpoints.
21+
22+
## Attributes
23+
24+
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Allows users to store small amounts of arbitrary data.
25+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the userConnection was created.
26+
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
27+
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Labels as key value pairs
28+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the userConnection, in the format `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
29+
* `oauthStartUri` (*type:* `String.t`, *default:* `nil`) - Output only. Start OAuth flow by clicking on this URL.
30+
* `providerOauthConfig` (*type:* `GoogleApi.DeveloperConnect.V1.Model.ProviderOAuthConfig.t`, *default:* `nil`) - Provider OAuth config.
31+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the userConnection was updated.
32+
"""
33+
34+
use GoogleApi.Gax.ModelBase
35+
36+
@type t :: %__MODULE__{
37+
:annotations => map() | nil,
38+
:createTime => DateTime.t() | nil,
39+
:etag => String.t() | nil,
40+
:labels => map() | nil,
41+
:name => String.t() | nil,
42+
:oauthStartUri => String.t() | nil,
43+
:providerOauthConfig =>
44+
GoogleApi.DeveloperConnect.V1.Model.ProviderOAuthConfig.t() | nil,
45+
:updateTime => DateTime.t() | nil
46+
}
47+
48+
field(:annotations, type: :map)
49+
field(:createTime, as: DateTime)
50+
field(:etag)
51+
field(:labels, type: :map)
52+
field(:name)
53+
field(:oauthStartUri)
54+
field(:providerOauthConfig, as: GoogleApi.DeveloperConnect.V1.Model.ProviderOAuthConfig)
55+
field(:updateTime, as: DateTime)
56+
end
57+
58+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.AccountConnector do
59+
def decode(value, options) do
60+
GoogleApi.DeveloperConnect.V1.Model.AccountConnector.decode(value, options)
61+
end
62+
end
63+
64+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.AccountConnector do
65+
def encode(value, options) do
66+
GoogleApi.Gax.ModelBase.encode(value, options)
67+
end
68+
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.DeveloperConnect.V1.Model.ExchangeError do
19+
@moduledoc """
20+
Message for representing an error from exchanging OAuth tokens.
21+
22+
## Attributes
23+
24+
* `code` (*type:* `String.t`, *default:* `nil`) - https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error
25+
* `description` (*type:* `String.t`, *default:* `nil`) - https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:code => String.t() | nil,
32+
:description => String.t() | nil
33+
}
34+
35+
field(:code)
36+
field(:description)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.ExchangeError do
40+
def decode(value, options) do
41+
GoogleApi.DeveloperConnect.V1.Model.ExchangeError.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.ExchangeError do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.DeveloperConnect.V1.Model.FetchAccessTokenRequest do
19+
@moduledoc """
20+
Message for fetching an OAuth access token.
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.DeveloperConnect.V1.Model.FetchAccessTokenRequest do
32+
def decode(value, options) do
33+
GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenRequest.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenRequest do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
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.DeveloperConnect.V1.Model.FetchAccessTokenResponse do
19+
@moduledoc """
20+
Message for responding to getting an OAuth access token.
21+
22+
## Attributes
23+
24+
* `exchangeError` (*type:* `GoogleApi.DeveloperConnect.V1.Model.ExchangeError.t`, *default:* `nil`) - The error resulted from exchanging OAuth tokens from the service provider.
25+
* `expirationTime` (*type:* `DateTime.t`, *default:* `nil`) - Expiration timestamp. Can be empty if unknown or non-expiring.
26+
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - The scopes of the access token.
27+
* `token` (*type:* `String.t`, *default:* `nil`) - The token content.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:exchangeError => GoogleApi.DeveloperConnect.V1.Model.ExchangeError.t() | nil,
34+
:expirationTime => DateTime.t() | nil,
35+
:scopes => list(String.t()) | nil,
36+
:token => String.t() | nil
37+
}
38+
39+
field(:exchangeError, as: GoogleApi.DeveloperConnect.V1.Model.ExchangeError)
40+
field(:expirationTime, as: DateTime)
41+
field(:scopes, type: :list)
42+
field(:token)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenResponse do
46+
def decode(value, options) do
47+
GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenResponse.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenResponse do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.DeveloperConnect.V1.Model.ListAccountConnectorsResponse do
19+
@moduledoc """
20+
Message for response to listing AccountConnectors
21+
22+
## Attributes
23+
24+
* `accountConnectors` (*type:* `list(GoogleApi.DeveloperConnect.V1.Model.AccountConnector.t)`, *default:* `nil`) - The list of AccountConnectors
25+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token identifying a page of results the server should return.
26+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:accountConnectors =>
33+
list(GoogleApi.DeveloperConnect.V1.Model.AccountConnector.t()) | nil,
34+
:nextPageToken => String.t() | nil,
35+
:unreachable => list(String.t()) | nil
36+
}
37+
38+
field(:accountConnectors, as: GoogleApi.DeveloperConnect.V1.Model.AccountConnector, type: :list)
39+
field(:nextPageToken)
40+
field(:unreachable, type: :list)
41+
end
42+
43+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.ListAccountConnectorsResponse do
44+
def decode(value, options) do
45+
GoogleApi.DeveloperConnect.V1.Model.ListAccountConnectorsResponse.decode(value, options)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.ListAccountConnectorsResponse do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
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.DeveloperConnect.V1.Model.ListUsersResponse do
19+
@moduledoc """
20+
Message for response to listing Users
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token identifying a page of results the server should return.
25+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached.
26+
* `users` (*type:* `list(GoogleApi.DeveloperConnect.V1.Model.User.t)`, *default:* `nil`) - The list of Users
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:nextPageToken => String.t() | nil,
33+
:unreachable => list(String.t()) | nil,
34+
:users => list(GoogleApi.DeveloperConnect.V1.Model.User.t()) | nil
35+
}
36+
37+
field(:nextPageToken)
38+
field(:unreachable, type: :list)
39+
field(:users, as: GoogleApi.DeveloperConnect.V1.Model.User, type: :list)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.ListUsersResponse do
43+
def decode(value, options) do
44+
GoogleApi.DeveloperConnect.V1.Model.ListUsersResponse.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.ListUsersResponse do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
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.DeveloperConnect.V1.Model.ProviderOAuthConfig do
19+
@moduledoc """
20+
ProviderOAuthConfig is the OAuth config for a provider.
21+
22+
## Attributes
23+
24+
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
25+
* `systemProviderId` (*type:* `String.t`, *default:* `nil`) - Immutable. Developer Connect provided OAuth.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:scopes => list(String.t()) | nil,
32+
:systemProviderId => String.t() | nil
33+
}
34+
35+
field(:scopes, type: :list)
36+
field(:systemProviderId)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.ProviderOAuthConfig do
40+
def decode(value, options) do
41+
GoogleApi.DeveloperConnect.V1.Model.ProviderOAuthConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.ProviderOAuthConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

0 commit comments

Comments
 (0)