Skip to content

Commit 2c60f9a

Browse files
1 parent b4c15c0 commit 2c60f9a

File tree

14 files changed

+460
-13
lines changed

14 files changed

+460
-13
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-rev20240920-2.0.0</version>
25+
<version>v1-rev20240929-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-rev20240920-2.0.0'
38+
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20240929-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public final class AutomationRun extends com.google.api.client.json.GenericJson
8484
private java.lang.String name;
8585

8686
/**
87-
* Output only. Contains information about what policies prevented the `AutomationRun` to proceed.
87+
* Output only. Contains information about what policies prevented the `AutomationRun` from
88+
* proceeding.
8889
* The value may be {@code null}.
8990
*/
9091
@com.google.api.client.util.Key
@@ -285,15 +286,17 @@ public AutomationRun setName(java.lang.String name) {
285286
}
286287

287288
/**
288-
* Output only. Contains information about what policies prevented the `AutomationRun` to proceed.
289+
* Output only. Contains information about what policies prevented the `AutomationRun` from
290+
* proceeding.
289291
* @return value or {@code null} for none
290292
*/
291293
public PolicyViolation getPolicyViolation() {
292294
return policyViolation;
293295
}
294296

295297
/**
296-
* Output only. Contains information about what policies prevented the `AutomationRun` to proceed.
298+
* Output only. Contains information about what policies prevented the `AutomationRun` from
299+
* proceeding.
297300
* @param policyViolation policyViolation or {@code null} for none
298301
*/
299302
public AutomationRun setPolicyViolation(PolicyViolation policyViolation) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package com.google.api.services.clouddeploy.v1.model;
1818

1919
/**
20-
* A `DeployPolicy` resource in the Cloud Deploy API. A `DeployPolicy` inhibits manual or automation
21-
* driven actions within a Delivery Pipeline or Target.
20+
* A `DeployPolicy` resource in the Cloud Deploy API. A `DeployPolicy` inhibits manual or
21+
* automation-driven actions within a Delivery Pipeline or Target.
2222
*
2323
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2424
* transmitted over HTTP when working with the Cloud Deploy API. For a detailed explanation see:
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+
* Configuration of the repair phase.
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 RepairPhaseConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Retries a failed job.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private Retry retry;
38+
39+
/**
40+
* Optional. Rolls back a `Rollout`.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private Rollback rollback;
45+
46+
/**
47+
* Optional. Retries a failed job.
48+
* @return value or {@code null} for none
49+
*/
50+
public Retry getRetry() {
51+
return retry;
52+
}
53+
54+
/**
55+
* Optional. Retries a failed job.
56+
* @param retry retry or {@code null} for none
57+
*/
58+
public RepairPhaseConfig setRetry(Retry retry) {
59+
this.retry = retry;
60+
return this;
61+
}
62+
63+
/**
64+
* Optional. Rolls back a `Rollout`.
65+
* @return value or {@code null} for none
66+
*/
67+
public Rollback getRollback() {
68+
return rollback;
69+
}
70+
71+
/**
72+
* Optional. Rolls back a `Rollout`.
73+
* @param rollback rollback or {@code null} for none
74+
*/
75+
public RepairPhaseConfig setRollback(Rollback rollback) {
76+
this.rollback = rollback;
77+
return this;
78+
}
79+
80+
@Override
81+
public RepairPhaseConfig set(String fieldName, Object value) {
82+
return (RepairPhaseConfig) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public RepairPhaseConfig clone() {
87+
return (RepairPhaseConfig) super.clone();
88+
}
89+
90+
}

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
@SuppressWarnings("javadoc")
3030
public final class RepairRolloutOperation extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Output only. The index of the current repair action in the repair sequence.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
37+
private java.lang.Long currentRepairPhaseIndex;
38+
3239
/**
3340
* Output only. The job ID for the Job to repair.
3441
* The value may be {@code null}.
@@ -64,6 +71,23 @@ public final class RepairRolloutOperation extends com.google.api.client.json.Gen
6471
@com.google.api.client.util.Key
6572
private java.lang.String rollout;
6673

74+
/**
75+
* Output only. The index of the current repair action in the repair sequence.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.Long getCurrentRepairPhaseIndex() {
79+
return currentRepairPhaseIndex;
80+
}
81+
82+
/**
83+
* Output only. The index of the current repair action in the repair sequence.
84+
* @param currentRepairPhaseIndex currentRepairPhaseIndex or {@code null} for none
85+
*/
86+
public RepairRolloutOperation setCurrentRepairPhaseIndex(java.lang.Long currentRepairPhaseIndex) {
87+
this.currentRepairPhaseIndex = currentRepairPhaseIndex;
88+
return this;
89+
}
90+
6791
/**
6892
* Output only. The job ID for the Job to repair.
6993
* @return value or {@code null} for none

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,30 @@ public final class RepairRolloutRule extends com.google.api.client.json.GenericJ
5555
@com.google.api.client.util.Key
5656
private java.util.List<java.lang.String> jobs;
5757

58+
/**
59+
* Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds
60+
* only after phase name matched any one in the list, or for all phases if unspecified. This value
61+
* must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a
62+
* letter or a number, and have a max length of 63 characters. In other words, it must match the
63+
* following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private java.util.List<java.lang.String> phases;
68+
69+
/**
70+
* Required. Defines the types of automatic repair phases for failed jobs.
71+
* The value may be {@code null}.
72+
*/
73+
@com.google.api.client.util.Key
74+
private java.util.List<RepairPhaseConfig> repairPhases;
75+
76+
static {
77+
// hack to force ProGuard to consider RepairPhaseConfig used, since otherwise it would be stripped out
78+
// see https://github.com/google/google-api-java-client/issues/543
79+
com.google.api.client.util.Data.nullOf(RepairPhaseConfig.class);
80+
}
81+
5882
/**
5983
* Output only. Information around the state of the 'Automation' rule.
6084
* @return value or {@code null} for none
@@ -116,6 +140,48 @@ public RepairRolloutRule setJobs(java.util.List<java.lang.String> jobs) {
116140
return this;
117141
}
118142

143+
/**
144+
* Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds
145+
* only after phase name matched any one in the list, or for all phases if unspecified. This value
146+
* must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a
147+
* letter or a number, and have a max length of 63 characters. In other words, it must match the
148+
* following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
149+
* @return value or {@code null} for none
150+
*/
151+
public java.util.List<java.lang.String> getPhases() {
152+
return phases;
153+
}
154+
155+
/**
156+
* Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds
157+
* only after phase name matched any one in the list, or for all phases if unspecified. This value
158+
* must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a
159+
* letter or a number, and have a max length of 63 characters. In other words, it must match the
160+
* following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
161+
* @param phases phases or {@code null} for none
162+
*/
163+
public RepairRolloutRule setPhases(java.util.List<java.lang.String> phases) {
164+
this.phases = phases;
165+
return this;
166+
}
167+
168+
/**
169+
* Required. Defines the types of automatic repair phases for failed jobs.
170+
* @return value or {@code null} for none
171+
*/
172+
public java.util.List<RepairPhaseConfig> getRepairPhases() {
173+
return repairPhases;
174+
}
175+
176+
/**
177+
* Required. Defines the types of automatic repair phases for failed jobs.
178+
* @param repairPhases repairPhases or {@code null} for none
179+
*/
180+
public RepairRolloutRule setRepairPhases(java.util.List<RepairPhaseConfig> repairPhases) {
181+
this.repairPhases = repairPhases;
182+
return this;
183+
}
184+
119185
@Override
120186
public RepairRolloutRule set(String fieldName, Object value) {
121187
return (RepairRolloutRule) super.set(fieldName, value);
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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+
* Retries the failed job.
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 Retry extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and
34+
* the maximum value is 10.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
38+
private java.lang.Long attempts;
39+
40+
/**
41+
* Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will
42+
* be ignored if `wait` is 0.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String backoffMode;
47+
48+
/**
49+
* Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private String wait;
54+
55+
/**
56+
* Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and
57+
* the maximum value is 10.
58+
* @return value or {@code null} for none
59+
*/
60+
public java.lang.Long getAttempts() {
61+
return attempts;
62+
}
63+
64+
/**
65+
* Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and
66+
* the maximum value is 10.
67+
* @param attempts attempts or {@code null} for none
68+
*/
69+
public Retry setAttempts(java.lang.Long attempts) {
70+
this.attempts = attempts;
71+
return this;
72+
}
73+
74+
/**
75+
* Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will
76+
* be ignored if `wait` is 0.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.lang.String getBackoffMode() {
80+
return backoffMode;
81+
}
82+
83+
/**
84+
* Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will
85+
* be ignored if `wait` is 0.
86+
* @param backoffMode backoffMode or {@code null} for none
87+
*/
88+
public Retry setBackoffMode(java.lang.String backoffMode) {
89+
this.backoffMode = backoffMode;
90+
return this;
91+
}
92+
93+
/**
94+
* Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
95+
* @return value or {@code null} for none
96+
*/
97+
public String getWait() {
98+
return wait;
99+
}
100+
101+
/**
102+
* Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
103+
* @param wait wait or {@code null} for none
104+
*/
105+
public Retry setWait(String wait) {
106+
this.wait = wait;
107+
return this;
108+
}
109+
110+
@Override
111+
public Retry set(String fieldName, Object value) {
112+
return (Retry) super.set(fieldName, value);
113+
}
114+
115+
@Override
116+
public Retry clone() {
117+
return (Retry) super.clone();
118+
}
119+
120+
}

0 commit comments

Comments
 (0)