Skip to content

Commit 2e8a7c1

Browse files
1 parent e9f53d0 commit 2e8a7c1

File tree

10 files changed

+599
-12
lines changed

10 files changed

+599
-12
lines changed

clients/google-api-services-clouddeploy/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-clouddeploy</artifactId>
25-
<version>v1-rev20241010-2.0.0</version>
25+
<version>v1-rev20241029-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241010-2.0.0'
38+
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241029-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRule.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ public final class AutomationRule extends com.google.api.client.json.GenericJson
5151
@com.google.api.client.util.Key
5252
private RepairRolloutRule repairRolloutRule;
5353

54+
/**
55+
* Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current
56+
* target(s) to the specified target(s) on a configured schedule.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private TimedPromoteReleaseRule timedPromoteReleaseRule;
61+
5462
/**
5563
* Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout.
5664
* @return value or {@code null} for none
@@ -104,6 +112,25 @@ public AutomationRule setRepairRolloutRule(RepairRolloutRule repairRolloutRule)
104112
return this;
105113
}
106114

115+
/**
116+
* Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current
117+
* target(s) to the specified target(s) on a configured schedule.
118+
* @return value or {@code null} for none
119+
*/
120+
public TimedPromoteReleaseRule getTimedPromoteReleaseRule() {
121+
return timedPromoteReleaseRule;
122+
}
123+
124+
/**
125+
* Optional. The `TimedPromoteReleaseRule` will automatically promote a release from the current
126+
* target(s) to the specified target(s) on a configured schedule.
127+
* @param timedPromoteReleaseRule timedPromoteReleaseRule or {@code null} for none
128+
*/
129+
public AutomationRule setTimedPromoteReleaseRule(TimedPromoteReleaseRule timedPromoteReleaseRule) {
130+
this.timedPromoteReleaseRule = timedPromoteReleaseRule;
131+
return this;
132+
}
133+
107134
@Override
108135
public AutomationRule set(String fieldName, Object value) {
109136
return (AutomationRule) super.set(fieldName, value);

clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRuleCondition.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public final class AutomationRuleCondition extends com.google.api.client.json.Ge
3636
@com.google.api.client.util.Key
3737
private TargetsPresentCondition targetsPresentCondition;
3838

39+
/**
40+
* Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation
41+
* with a timed promote release rule defined.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private TimedPromoteReleaseCondition timedPromoteReleaseCondition;
46+
3947
/**
4048
* Optional. Details around targets enumerated in the rule.
4149
* @return value or {@code null} for none
@@ -53,6 +61,25 @@ public AutomationRuleCondition setTargetsPresentCondition(TargetsPresentConditio
5361
return this;
5462
}
5563

64+
/**
65+
* Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation
66+
* with a timed promote release rule defined.
67+
* @return value or {@code null} for none
68+
*/
69+
public TimedPromoteReleaseCondition getTimedPromoteReleaseCondition() {
70+
return timedPromoteReleaseCondition;
71+
}
72+
73+
/**
74+
* Optional. TimedPromoteReleaseCondition contains rule conditions specific to a an Automation
75+
* with a timed promote release rule defined.
76+
* @param timedPromoteReleaseCondition timedPromoteReleaseCondition or {@code null} for none
77+
*/
78+
public AutomationRuleCondition setTimedPromoteReleaseCondition(TimedPromoteReleaseCondition timedPromoteReleaseCondition) {
79+
this.timedPromoteReleaseCondition = timedPromoteReleaseCondition;
80+
return this;
81+
}
82+
5683
@Override
5784
public AutomationRuleCondition set(String fieldName, Object value) {
5885
return (AutomationRuleCondition) super.set(fieldName, value);

clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/AutomationRun.java

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,21 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson
136136
private java.lang.String stateDescription;
137137

138138
/**
139-
* Output only. The ID of the target that represents the promotion stage that initiates the
140-
* `AutomationRun`. The value of this field is the last segment of a target name.
139+
* Output only. The ID of the source target that initiates the `AutomationRun`. The value of this
140+
* field is the last segment of a target name.
141141
* The value may be {@code null}.
142142
*/
143143
@com.google.api.client.util.Key
144144
private java.lang.String targetId;
145145

146+
/**
147+
* Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release
148+
* rule.
149+
* The value may be {@code null}.
150+
*/
151+
@com.google.api.client.util.Key
152+
private TimedPromoteReleaseOperation timedPromoteReleaseOperation;
153+
146154
/**
147155
* Output only. Time at which the automationRun was updated.
148156
* The value may be {@code null}.
@@ -411,24 +419,43 @@ public AutomationRun setStateDescription(java.lang.String stateDescription) {
411419
}
412420

413421
/**
414-
* Output only. The ID of the target that represents the promotion stage that initiates the
415-
* `AutomationRun`. The value of this field is the last segment of a target name.
422+
* Output only. The ID of the source target that initiates the `AutomationRun`. The value of this
423+
* field is the last segment of a target name.
416424
* @return value or {@code null} for none
417425
*/
418426
public java.lang.String getTargetId() {
419427
return targetId;
420428
}
421429

422430
/**
423-
* Output only. The ID of the target that represents the promotion stage that initiates the
424-
* `AutomationRun`. The value of this field is the last segment of a target name.
431+
* Output only. The ID of the source target that initiates the `AutomationRun`. The value of this
432+
* field is the last segment of a target name.
425433
* @param targetId targetId or {@code null} for none
426434
*/
427435
public AutomationRun setTargetId(java.lang.String targetId) {
428436
this.targetId = targetId;
429437
return this;
430438
}
431439

440+
/**
441+
* Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release
442+
* rule.
443+
* @return value or {@code null} for none
444+
*/
445+
public TimedPromoteReleaseOperation getTimedPromoteReleaseOperation() {
446+
return timedPromoteReleaseOperation;
447+
}
448+
449+
/**
450+
* Output only. Promotes a release to a specified 'Target' as defined in a Timed Promote Release
451+
* rule.
452+
* @param timedPromoteReleaseOperation timedPromoteReleaseOperation or {@code null} for none
453+
*/
454+
public AutomationRun setTimedPromoteReleaseOperation(TimedPromoteReleaseOperation timedPromoteReleaseOperation) {
455+
this.timedPromoteReleaseOperation = timedPromoteReleaseOperation;
456+
return this;
457+
}
458+
432459
/**
433460
* Output only. Time at which the automationRun was updated.
434461
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.clouddeploy.v1.model;
18+
19+
/**
20+
* The targets involved in a single timed promotion.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class Targets extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The destination target ID.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String destinationTargetId;
38+
39+
/**
40+
* Optional. The source target ID.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String sourceTargetId;
45+
46+
/**
47+
* Optional. The destination target ID.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.lang.String getDestinationTargetId() {
51+
return destinationTargetId;
52+
}
53+
54+
/**
55+
* Optional. The destination target ID.
56+
* @param destinationTargetId destinationTargetId or {@code null} for none
57+
*/
58+
public Targets setDestinationTargetId(java.lang.String destinationTargetId) {
59+
this.destinationTargetId = destinationTargetId;
60+
return this;
61+
}
62+
63+
/**
64+
* Optional. The source target ID.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getSourceTargetId() {
68+
return sourceTargetId;
69+
}
70+
71+
/**
72+
* Optional. The source target ID.
73+
* @param sourceTargetId sourceTargetId or {@code null} for none
74+
*/
75+
public Targets setSourceTargetId(java.lang.String sourceTargetId) {
76+
this.sourceTargetId = sourceTargetId;
77+
return this;
78+
}
79+
80+
@Override
81+
public Targets set(String fieldName, Object value) {
82+
return (Targets) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public Targets clone() {
87+
return (Targets) super.clone();
88+
}
89+
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.clouddeploy.v1.model;
18+
19+
/**
20+
* `TimedPromoteReleaseCondition` contains conditions specific to an Automation with a Timed Promote
21+
* Release rule defined.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class TimedPromoteReleaseCondition extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. When the next scheduled promotion(s) will occur.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private String nextPromotionTime;
39+
40+
/**
41+
* Output only. A list of targets involved in the upcoming timed promotion(s).
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<Targets> targetsList;
46+
47+
static {
48+
// hack to force ProGuard to consider Targets used, since otherwise it would be stripped out
49+
// see https://github.com/google/google-api-java-client/issues/543
50+
com.google.api.client.util.Data.nullOf(Targets.class);
51+
}
52+
53+
/**
54+
* Output only. When the next scheduled promotion(s) will occur.
55+
* @return value or {@code null} for none
56+
*/
57+
public String getNextPromotionTime() {
58+
return nextPromotionTime;
59+
}
60+
61+
/**
62+
* Output only. When the next scheduled promotion(s) will occur.
63+
* @param nextPromotionTime nextPromotionTime or {@code null} for none
64+
*/
65+
public TimedPromoteReleaseCondition setNextPromotionTime(String nextPromotionTime) {
66+
this.nextPromotionTime = nextPromotionTime;
67+
return this;
68+
}
69+
70+
/**
71+
* Output only. A list of targets involved in the upcoming timed promotion(s).
72+
* @return value or {@code null} for none
73+
*/
74+
public java.util.List<Targets> getTargetsList() {
75+
return targetsList;
76+
}
77+
78+
/**
79+
* Output only. A list of targets involved in the upcoming timed promotion(s).
80+
* @param targetsList targetsList or {@code null} for none
81+
*/
82+
public TimedPromoteReleaseCondition setTargetsList(java.util.List<Targets> targetsList) {
83+
this.targetsList = targetsList;
84+
return this;
85+
}
86+
87+
@Override
88+
public TimedPromoteReleaseCondition set(String fieldName, Object value) {
89+
return (TimedPromoteReleaseCondition) super.set(fieldName, value);
90+
}
91+
92+
@Override
93+
public TimedPromoteReleaseCondition clone() {
94+
return (TimedPromoteReleaseCondition) super.clone();
95+
}
96+
97+
}

0 commit comments

Comments
 (0)