Skip to content

Commit 1cf6dab

Browse files
feat: Automated regeneration of Apigee client (#13127)
Auto-created at 2025-03-10 13:19:17 +0000 using the toys pull request generator.
1 parent 1bd2551 commit 1cf6dab

12 files changed

+1072
-79
lines changed

clients/apigee/lib/google_api/apigee/v1/api/organizations.ex

Lines changed: 815 additions & 73 deletions
Large diffs are not rendered by default.

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

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

23-
@discovery_revision "20250214"
23+
@discovery_revision "20250306"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_api_product.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProduct do
3939
* `quotaInterval` (*type:* `String.t`, *default:* `nil`) - Time interval over which the number of request messages is calculated.
4040
* `quotaTimeUnit` (*type:* `String.t`, *default:* `nil`) - Time unit defined for the `quotaInterval`. Valid values include `minute`, `hour`, `day`, or `month`.
4141
* `scopes` (*type:* `list(String.t)`, *default:* `nil`) - Comma-separated list of OAuth scopes that are validated at runtime. Apigee validates that the scopes in any access token presented match the scopes defined in the OAuth policy associated with the API product.
42+
* `space` (*type:* `String.t`, *default:* `nil`) - Optional. The resource ID of the parent Space. If not set, the parent resource will be the Organization. To learn how Spaces can be used to manage resources, read the [Apigee Spaces Overview](https://cloud.google.com/apigee/docs/api-platform/system-administration/spaces/apigee-spaces-overview).
4243
"""
4344

4445
use GoogleApi.Gax.ModelBase
@@ -64,7 +65,8 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProduct do
6465
:quotaCounterScope => String.t() | nil,
6566
:quotaInterval => String.t() | nil,
6667
:quotaTimeUnit => String.t() | nil,
67-
:scopes => list(String.t()) | nil
68+
:scopes => list(String.t()) | nil,
69+
:space => String.t() | nil
6870
}
6971

7072
field(:apiResources, type: :list)
@@ -89,6 +91,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProduct do
8991
field(:quotaInterval)
9092
field(:quotaTimeUnit)
9193
field(:scopes, type: :list)
94+
field(:space)
9295
end
9396

9497
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProduct do

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_api_proxy.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProxy do
2828
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the API proxy.
2929
* `readOnly` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
3030
* `revision` (*type:* `list(String.t)`, *default:* `nil`) - Output only. List of revisions defined for the API proxy.
31+
* `space` (*type:* `String.t`, *default:* `nil`) - Optional. The id of the space this proxy is associated with. Any IAM policies applied to the space will control access to this proxy. To learn how Spaces can be used to manage resources, read the [Apigee Spaces Overview](https://cloud.google.com/apigee/docs/api-platform/system-administration/spaces/apigee-spaces-overview).
3132
"""
3233

3334
use GoogleApi.Gax.ModelBase
@@ -39,7 +40,8 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProxy do
3940
:metaData => GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1EntityMetadata.t() | nil,
4041
:name => String.t() | nil,
4142
:readOnly => boolean() | nil,
42-
:revision => list(String.t()) | nil
43+
:revision => list(String.t()) | nil,
44+
:space => String.t() | nil
4345
}
4446

4547
field(:apiProxyType)
@@ -49,6 +51,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProxy do
4951
field(:name)
5052
field(:readOnly)
5153
field(:revision, type: :list)
54+
field(:space)
5255
end
5356

5457
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProxy do

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_deployment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Deployment do
1919
@moduledoc """
20-
20+
Deployment represents a deployment of an API proxy or shared flow.
2121
2222
## Attributes
2323

clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_environment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Environment do
2727
* `deploymentType` (*type:* `String.t`, *default:* `nil`) - Optional. Deployment type supported by the environment. The deployment type can be set when creating the environment and cannot be changed. When you enable archive deployment, you will be **prevented from performing** a [subset of actions](/apigee/docs/api-platform/local-development/overview#prevented-actions) within the environment, including: * Managing the deployment of API proxy or shared flow revisions * Creating, updating, or deleting resource files * Creating, updating, or deleting target servers
2828
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the environment.
2929
* `displayName` (*type:* `String.t`, *default:* `nil`) - Optional. Display name for this environment.
30-
* `forwardProxyUri` (*type:* `String.t`, *default:* `nil`) - Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the scheme must be one of "http" or "https", and the port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
30+
* `forwardProxyUri` (*type:* `String.t`, *default:* `nil`) - Optional. URI of the forward proxy to be applied to the runtime instances in this environment. Must be in the format of {scheme}://{hostname}:{port}. Note that the only supported scheme is "http". The port must be supplied. To remove a forward proxy setting, update the field to an empty value. Note: At this time, PUT operations to add forwardProxyUri to an existing environment fail if the environment has nodeConfig set up. To successfully add the forwardProxyUri setting in this case, include the NodeConfig details with the request.
3131
* `hasAttachedFlowHooks` (*type:* `boolean()`, *default:* `nil`) -
3232
* `lastModifiedAt` (*type:* `String.t`, *default:* `nil`) - Output only. Last modification time of this environment as milliseconds since epoch.
3333
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the environment. Values must match the regular expression `^[.\\\\p{Alnum}-_]{1,255}$`
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.Apigee.V1.Model.GoogleCloudApigeeV1ListSpacesResponse do
19+
@moduledoc """
20+
A response to a ListSpaces request containing the list of organization spaces and a page token for the next page.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
25+
* `spaces` (*type:* `list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Space.t)`, *default:* `nil`) - List of Apigee organization spaces.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:spaces => list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Space.t()) | nil
33+
}
34+
35+
field(:nextPageToken)
36+
field(:spaces, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Space, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListSpacesResponse do
40+
def decode(value, options) do
41+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListSpacesResponse.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ListSpacesResponse do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProductRequest do
19+
@moduledoc """
20+
Moves API product to a different space.
21+
22+
## Attributes
23+
24+
* `space` (*type:* `String.t`, *default:* `nil`) - Optional. Resource ID of the space to move the API product to. If unspecified, the API product will be moved to the organization level.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:space => String.t() | nil
31+
}
32+
33+
field(:space)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProductRequest do
37+
def decode(value, options) do
38+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProductRequest.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProductRequest do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
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.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProxyRequest do
19+
@moduledoc """
20+
Moves an API Proxy to a different Space.
21+
22+
## Attributes
23+
24+
* `space` (*type:* `String.t`, *default:* `nil`) - Optional. Resource ID of the space to move the proxy to. If unspecified, the proxy will be moved to the organization level.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:space => String.t() | nil
31+
}
32+
33+
field(:space)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProxyRequest do
37+
def decode(value, options) do
38+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProxyRequest.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveApiProxyRequest do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
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.Apigee.V1.Model.GoogleCloudApigeeV1MoveSharedFlowRequest do
19+
@moduledoc """
20+
Moves a Shared Flow to a different space.
21+
22+
## Attributes
23+
24+
* `space` (*type:* `String.t`, *default:* `nil`) - Optional. Resource ID of the space to move the shared flow to. If unspecified, the shared flow will be moved to the organization level.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:space => String.t() | nil
31+
}
32+
33+
field(:space)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveSharedFlowRequest do
37+
def decode(value, options) do
38+
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveSharedFlowRequest.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1MoveSharedFlowRequest do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)