Skip to content

Commit 3d9f2d4

Browse files
feat: Automated regeneration of CloudDeploy client (googleapis#12367)
Auto-created at 2024-10-20 13:11:17 +0000 using the toys pull request generator.
1 parent f288575 commit 3d9f2d4

File tree

7 files changed

+108
-3
lines changed

7 files changed

+108
-3
lines changed

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

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

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

23-
@discovery_revision "20241002"
23+
@discovery_revision "20241010"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.CloudDeploy.V1.Model.AssociatedEntities do
19+
@moduledoc """
20+
Information about entities associated with a `Target`.
21+
22+
## Attributes
23+
24+
* `anthosClusters` (*type:* `list(GoogleApi.CloudDeploy.V1.Model.AnthosCluster.t)`, *default:* `nil`) - Optional. Information specifying Anthos clusters as associated entities.
25+
* `gkeClusters` (*type:* `list(GoogleApi.CloudDeploy.V1.Model.GkeCluster.t)`, *default:* `nil`) - Optional. Information specifying GKE clusters as associated entities.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:anthosClusters => list(GoogleApi.CloudDeploy.V1.Model.AnthosCluster.t()) | nil,
32+
:gkeClusters => list(GoogleApi.CloudDeploy.V1.Model.GkeCluster.t()) | nil
33+
}
34+
35+
field(:anthosClusters, as: GoogleApi.CloudDeploy.V1.Model.AnthosCluster, type: :list)
36+
field(:gkeClusters, as: GoogleApi.CloudDeploy.V1.Model.GkeCluster, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.AssociatedEntities do
40+
def decode(value, options) do
41+
GoogleApi.CloudDeploy.V1.Model.AssociatedEntities.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.AssociatedEntities do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/gateway_service_mesh.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.GatewayServiceMesh do
2424
* `deployment` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.
2525
* `httpRoute` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Gateway API HTTPRoute.
2626
* `podSelectorLabel` (*type:* `String.t`, *default:* `nil`) - Optional. The label to use when selecting Pods for the Deployment and Service resources. This label must already be present in both resources.
27+
* `routeDestinations` (*type:* `GoogleApi.CloudDeploy.V1.Model.RouteDestinations.t`, *default:* `nil`) - Optional. Route destinations allow configuring the Gateway API HTTPRoute to be deployed to additional clusters. This option is available for multi-cluster service mesh set ups that require the route to exist in the clusters that call the service. If unspecified, the HTTPRoute will only be deployed to the Target cluster.
2728
* `routeUpdateWaitTime` (*type:* `String.t`, *default:* `nil`) - Optional. The time to wait for route updates to propagate. The maximum configurable time is 3 hours, in seconds format. If unspecified, there is no wait time.
2829
* `service` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Kubernetes Service.
2930
* `stableCutbackDuration` (*type:* `String.t`, *default:* `nil`) - Optional. The amount of time to migrate traffic back from the canary Service to the original Service during the stable phase deployment. If specified, must be between 15s and 3600s. If unspecified, there is no cutback time.
@@ -35,6 +36,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.GatewayServiceMesh do
3536
:deployment => String.t() | nil,
3637
:httpRoute => String.t() | nil,
3738
:podSelectorLabel => String.t() | nil,
39+
:routeDestinations => GoogleApi.CloudDeploy.V1.Model.RouteDestinations.t() | nil,
3840
:routeUpdateWaitTime => String.t() | nil,
3941
:service => String.t() | nil,
4042
:stableCutbackDuration => String.t() | nil
@@ -43,6 +45,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.GatewayServiceMesh do
4345
field(:deployment)
4446
field(:httpRoute)
4547
field(:podSelectorLabel)
48+
field(:routeDestinations, as: GoogleApi.CloudDeploy.V1.Model.RouteDestinations)
4649
field(:routeUpdateWaitTime)
4750
field(:service)
4851
field(:stableCutbackDuration)
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.CloudDeploy.V1.Model.RouteDestinations do
19+
@moduledoc """
20+
Information about route destinations for the Gateway API service mesh.
21+
22+
## Attributes
23+
24+
* `destinationIds` (*type:* `list(String.t)`, *default:* `nil`) - Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid entries include the associated entities IDs configured in the Target resource and "@self" to include the Target cluster.
25+
* `propagateService` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option may be used to facilitiate successful DNS lookup in the route destination clusters. Can only be set to true if destinations are specified.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:destinationIds => list(String.t()) | nil,
32+
:propagateService => boolean() | nil
33+
}
34+
35+
field(:destinationIds, type: :list)
36+
field(:propagateService)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.RouteDestinations do
40+
def decode(value, options) do
41+
GoogleApi.CloudDeploy.V1.Model.RouteDestinations.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.RouteDestinations do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/target.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.Target do
2323
2424
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
2525
* `anthosCluster` (*type:* `GoogleApi.CloudDeploy.V1.Model.AnthosCluster.t`, *default:* `nil`) - Optional. Information specifying an Anthos Cluster.
26+
* `associatedEntities` (*type:* `%{optional(String.t) => GoogleApi.CloudDeploy.V1.Model.AssociatedEntities.t}`, *default:* `nil`) - Optional. Map of entity IDs to their associated entities. Associated entities allows specifying places other than the deployment target for specific features. For example, the Gateway API canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment cluster using associated entities. An entity ID must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
2627
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the `Target` was created.
2728
* `customTarget` (*type:* `GoogleApi.CloudDeploy.V1.Model.CustomTarget.t`, *default:* `nil`) - Optional. Information specifying a Custom Target.
2829
* `deployParameters` (*type:* `map()`, *default:* `nil`) - Optional. The deploy parameters to use for this target.
@@ -45,6 +46,8 @@ defmodule GoogleApi.CloudDeploy.V1.Model.Target do
4546
@type t :: %__MODULE__{
4647
:annotations => map() | nil,
4748
:anthosCluster => GoogleApi.CloudDeploy.V1.Model.AnthosCluster.t() | nil,
49+
:associatedEntities =>
50+
%{optional(String.t()) => GoogleApi.CloudDeploy.V1.Model.AssociatedEntities.t()} | nil,
4851
:createTime => DateTime.t() | nil,
4952
:customTarget => GoogleApi.CloudDeploy.V1.Model.CustomTarget.t() | nil,
5053
:deployParameters => map() | nil,
@@ -64,6 +67,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.Target do
6467

6568
field(:annotations, type: :map)
6669
field(:anthosCluster, as: GoogleApi.CloudDeploy.V1.Model.AnthosCluster)
70+
field(:associatedEntities, as: GoogleApi.CloudDeploy.V1.Model.AssociatedEntities, type: :map)
6771
field(:createTime, as: DateTime)
6872
field(:customTarget, as: GoogleApi.CloudDeploy.V1.Model.CustomTarget)
6973
field(:deployParameters, type: :map)

clients/cloud_deploy/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.CloudDeploy.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)