Skip to content

Commit 9bd4424

Browse files
feat: Automated regeneration of CloudDeploy client (googleapis#12476)
Auto-created at 2024-11-04 13:17:38 +0000 using the toys pull request generator.
1 parent fb0d9b9 commit 9bd4424

File tree

10 files changed

+236
-6
lines changed

10 files changed

+236
-6
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.12"}]
14+
[{:google_api_cloud_deploy, "~> 0.13"}]
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 "20241010"
23+
@discovery_revision "20241029"
2424

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

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,23 @@ defmodule GoogleApi.CloudDeploy.V1.Model.AutomationRule do
2424
* `advanceRolloutRule` (*type:* `GoogleApi.CloudDeploy.V1.Model.AdvanceRolloutRule.t`, *default:* `nil`) - Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
2525
* `promoteReleaseRule` (*type:* `GoogleApi.CloudDeploy.V1.Model.PromoteReleaseRule.t`, *default:* `nil`) - Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target.
2626
* `repairRolloutRule` (*type:* `GoogleApi.CloudDeploy.V1.Model.RepairRolloutRule.t`, *default:* `nil`) - Optional. The `RepairRolloutRule` will automatically repair a failed rollout.
27+
* `timedPromoteReleaseRule` (*type:* `GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseRule.t`, *default:* `nil`) - Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:advanceRolloutRule => GoogleApi.CloudDeploy.V1.Model.AdvanceRolloutRule.t() | nil,
3334
:promoteReleaseRule => GoogleApi.CloudDeploy.V1.Model.PromoteReleaseRule.t() | nil,
34-
:repairRolloutRule => GoogleApi.CloudDeploy.V1.Model.RepairRolloutRule.t() | nil
35+
:repairRolloutRule => GoogleApi.CloudDeploy.V1.Model.RepairRolloutRule.t() | nil,
36+
:timedPromoteReleaseRule =>
37+
GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseRule.t() | nil
3538
}
3639

3740
field(:advanceRolloutRule, as: GoogleApi.CloudDeploy.V1.Model.AdvanceRolloutRule)
3841
field(:promoteReleaseRule, as: GoogleApi.CloudDeploy.V1.Model.PromoteReleaseRule)
3942
field(:repairRolloutRule, as: GoogleApi.CloudDeploy.V1.Model.RepairRolloutRule)
43+
field(:timedPromoteReleaseRule, as: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseRule)
4044
end
4145

4246
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.AutomationRule do

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,23 @@ defmodule GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition do
2222
## Attributes
2323
2424
* `targetsPresentCondition` (*type:* `GoogleApi.CloudDeploy.V1.Model.TargetsPresentCondition.t`, *default:* `nil`) - Optional. Details around targets enumerated in the rule.
25+
* `timedPromoteReleaseCondition` (*type:* `GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseCondition.t`, *default:* `nil`) - Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation with a timed promote release rule defined.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
3031
:targetsPresentCondition =>
31-
GoogleApi.CloudDeploy.V1.Model.TargetsPresentCondition.t() | nil
32+
GoogleApi.CloudDeploy.V1.Model.TargetsPresentCondition.t() | nil,
33+
:timedPromoteReleaseCondition =>
34+
GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseCondition.t() | nil
3235
}
3336

3437
field(:targetsPresentCondition, as: GoogleApi.CloudDeploy.V1.Model.TargetsPresentCondition)
38+
39+
field(:timedPromoteReleaseCondition,
40+
as: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseCondition
41+
)
3542
end
3643

3744
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition do

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ defmodule GoogleApi.CloudDeploy.V1.Model.AutomationRun do
3535
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources.
3636
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. Current state of the `AutomationRun`.
3737
* `stateDescription` (*type:* `String.t`, *default:* `nil`) - Output only. Explains the current state of the `AutomationRun`. Present only when an explanation is needed.
38-
* `targetId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the target that represents the promotion stage that initiates the `AutomationRun`. The value of this field is the last segment of a target name.
38+
* `targetId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the source target that initiates the `AutomationRun`. The value of this field is the last segment of a target name.
39+
* `timedPromoteReleaseOperation` (*type:* `GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseOperation.t`, *default:* `nil`) - Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release rule.
3940
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the automationRun was updated.
4041
* `waitUntilTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Earliest time the `AutomationRun` will attempt to resume. Wait-time is configured by `wait` in automation rule.
4142
"""
@@ -61,6 +62,8 @@ defmodule GoogleApi.CloudDeploy.V1.Model.AutomationRun do
6162
:state => String.t() | nil,
6263
:stateDescription => String.t() | nil,
6364
:targetId => String.t() | nil,
65+
:timedPromoteReleaseOperation =>
66+
GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseOperation.t() | nil,
6467
:updateTime => DateTime.t() | nil,
6568
:waitUntilTime => DateTime.t() | nil
6669
}
@@ -80,6 +83,11 @@ defmodule GoogleApi.CloudDeploy.V1.Model.AutomationRun do
8083
field(:state)
8184
field(:stateDescription)
8285
field(:targetId)
86+
87+
field(:timedPromoteReleaseOperation,
88+
as: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseOperation
89+
)
90+
8391
field(:updateTime, as: DateTime)
8492
field(:waitUntilTime, as: DateTime)
8593
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.Targets do
19+
@moduledoc """
20+
The targets involved in a single timed promotion.
21+
22+
## Attributes
23+
24+
* `destinationTargetId` (*type:* `String.t`, *default:* `nil`) - Optional. The destination target ID.
25+
* `sourceTargetId` (*type:* `String.t`, *default:* `nil`) - Optional. The source target ID.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:destinationTargetId => String.t() | nil,
32+
:sourceTargetId => String.t() | nil
33+
}
34+
35+
field(:destinationTargetId)
36+
field(:sourceTargetId)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.Targets do
40+
def decode(value, options) do
41+
GoogleApi.CloudDeploy.V1.Model.Targets.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.Targets do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.TimedPromoteReleaseCondition do
19+
@moduledoc """
20+
`TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote Release rule defined.
21+
22+
## Attributes
23+
24+
* `nextPromotionTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. When the next scheduled promotion(s) will occur.
25+
* `targetsList` (*type:* `list(GoogleApi.CloudDeploy.V1.Model.Targets.t)`, *default:* `nil`) - Output only. A list of targets involved in the upcoming timed promotion(s).
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPromotionTime => DateTime.t() | nil,
32+
:targetsList => list(GoogleApi.CloudDeploy.V1.Model.Targets.t()) | nil
33+
}
34+
35+
field(:nextPromotionTime, as: DateTime)
36+
field(:targetsList, as: GoogleApi.CloudDeploy.V1.Model.Targets, type: :list)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseCondition do
40+
def decode(value, options) do
41+
GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseCondition.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseCondition 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.CloudDeploy.V1.Model.TimedPromoteReleaseOperation do
19+
@moduledoc """
20+
Contains the information of an automated timed promote-release operation.
21+
22+
## Attributes
23+
24+
* `phase` (*type:* `String.t`, *default:* `nil`) - Output only. The starting phase of the rollout created by this operation.
25+
* `release` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the release to be promoted.
26+
* `targetId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:phase => String.t() | nil,
33+
:release => String.t() | nil,
34+
:targetId => String.t() | nil
35+
}
36+
37+
field(:phase)
38+
field(:release)
39+
field(:targetId)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseOperation do
43+
def decode(value, options) do
44+
GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseOperation.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseOperation do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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.TimedPromoteReleaseRule do
19+
@moduledoc """
20+
The `TimedPromoteReleaseRule` will automatically promote a release from the current target(s) to the specified target(s) on a configured schedule.
21+
22+
## Attributes
23+
24+
* `condition` (*type:* `GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition.t`, *default:* `nil`) - Output only. Information around the state of the Automation rule.
25+
* `destinationPhase` (*type:* `String.t`, *default:* `nil`) - Optional. The starting phase of the rollout created by this rule. Default to the first phase.
26+
* `destinationTargetId` (*type:* `String.t`, *default:* `nil`) - Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name * "@next", the next target in the promotion sequence
27+
* `id` (*type:* `String.t`, *default:* `nil`) - Required. ID of the rule. This ID must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
28+
* `schedule` (*type:* `String.t`, *default:* `nil`) - Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at 9am.
29+
* `timeZone` (*type:* `String.t`, *default:* `nil`) - Required. The time zone in IANA format [IANA Time Zone Database](https://www.iana.org/time-zones) (e.g. America/New_York).
30+
"""
31+
32+
use GoogleApi.Gax.ModelBase
33+
34+
@type t :: %__MODULE__{
35+
:condition => GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition.t() | nil,
36+
:destinationPhase => String.t() | nil,
37+
:destinationTargetId => String.t() | nil,
38+
:id => String.t() | nil,
39+
:schedule => String.t() | nil,
40+
:timeZone => String.t() | nil
41+
}
42+
43+
field(:condition, as: GoogleApi.CloudDeploy.V1.Model.AutomationRuleCondition)
44+
field(:destinationPhase)
45+
field(:destinationTargetId)
46+
field(:id)
47+
field(:schedule)
48+
field(:timeZone)
49+
end
50+
51+
defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseRule do
52+
def decode(value, options) do
53+
GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseRule.decode(value, options)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.TimedPromoteReleaseRule do
58+
def encode(value, options) do
59+
GoogleApi.Gax.ModelBase.encode(value, options)
60+
end
61+
end

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.12.0"
21+
@version "0.13.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)