Skip to content

Commit 38e1f0a

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 20475 b: refs/heads/autosynth-tasks c: 6660b92 h: refs/heads/master i: 20473: 50bbf71 20471: facb64b
1 parent 764801f commit 38e1f0a

8 files changed

Lines changed: 247 additions & 18 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ refs/heads/autosynth-redis: 9e1fe503973c7b4a9ba26afb1fcddc2a57ba795a
140140
refs/heads/autosynth-scheduler: 93995812e12a2fc009f4fd2e31f169b3d3cbbac8
141141
refs/heads/autosynth-spanner: a249d9564d8c27ab4439abc6562d7f3b9b7f655d
142142
refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
143-
refs/heads/autosynth-tasks: 266c880f2cae29bd1c3d8960d823c2179aa77448
143+
refs/heads/autosynth-tasks: 6660b92ce1e0d8ddf3f271de9a8e5b237e0395aa
144144
refs/heads/autosynth-texttospeech: 2dcc5dc22be0f456caa1b6a8a4bcdace2641239c
145145
refs/heads/autosynth-trace: db35fc1080cc51034e9c431c141cbceb53fb19c1
146146
refs/heads/autosynth-websecurityscanner: 55f58d7ce832aed82c4bb5e496af91b6c79fbdc3

branches/autosynth-tasks/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ public final ListReferrersInstancesPagedResponse listReferrersInstances(
16101610

16111611
// AUTO-GENERATED DOCUMENTATION AND METHOD
16121612
/**
1613-
* Performs a reset on the instance. This is a hard reset; the VM does not do a graceful shutdown.
1613+
* Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown.
16141614
* For more information, see Resetting an instance.
16151615
*
16161616
* <p>Sample code:
@@ -1637,7 +1637,7 @@ public final Operation resetInstance(ProjectZoneInstanceName instance) {
16371637

16381638
// AUTO-GENERATED DOCUMENTATION AND METHOD
16391639
/**
1640-
* Performs a reset on the instance. This is a hard reset; the VM does not do a graceful shutdown.
1640+
* Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown.
16411641
* For more information, see Resetting an instance.
16421642
*
16431643
* <p>Sample code:
@@ -1662,7 +1662,7 @@ public final Operation resetInstance(String instance) {
16621662

16631663
// AUTO-GENERATED DOCUMENTATION AND METHOD
16641664
/**
1665-
* Performs a reset on the instance. This is a hard reset; the VM does not do a graceful shutdown.
1665+
* Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown.
16661666
* For more information, see Resetting an instance.
16671667
*
16681668
* <p>Sample code:
@@ -1687,7 +1687,7 @@ public final Operation resetInstance(ResetInstanceHttpRequest request) {
16871687

16881688
// AUTO-GENERATED DOCUMENTATION AND METHOD
16891689
/**
1690-
* Performs a reset on the instance. This is a hard reset; the VM does not do a graceful shutdown.
1690+
* Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown.
16911691
* For more information, see Resetting an instance.
16921692
*
16931693
* <p>Sample code:

branches/autosynth-tasks/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Interconnect.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public String getGoogleIpAddress() {
265265
}
266266

267267
/**
268-
* [Output Only] Google reference ID; to be used when raising support tickets with Google or
268+
* [Output Only] Google reference ID to be used when raising support tickets with Google or
269269
* otherwise to debug backend connectivity issues.
270270
*/
271271
public String getGoogleReferenceId() {
@@ -646,15 +646,15 @@ public Builder setGoogleIpAddress(String googleIpAddress) {
646646
}
647647

648648
/**
649-
* [Output Only] Google reference ID; to be used when raising support tickets with Google or
649+
* [Output Only] Google reference ID to be used when raising support tickets with Google or
650650
* otherwise to debug backend connectivity issues.
651651
*/
652652
public String getGoogleReferenceId() {
653653
return googleReferenceId;
654654
}
655655

656656
/**
657-
* [Output Only] Google reference ID; to be used when raising support tickets with Google or
657+
* [Output Only] Google reference ID to be used when raising support tickets with Google or
658658
* otherwise to debug backend connectivity issues.
659659
*/
660660
public Builder setGoogleReferenceId(String googleReferenceId) {

branches/autosynth-tasks/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,30 @@ public final class ManagedInstance implements ApiMessage {
3131
private final String instance;
3232
private final String instanceStatus;
3333
private final ManagedInstanceLastAttempt lastAttempt;
34+
private final ManagedInstanceVersion version;
3435

3536
private ManagedInstance() {
3637
this.currentAction = null;
3738
this.id = null;
3839
this.instance = null;
3940
this.instanceStatus = null;
4041
this.lastAttempt = null;
42+
this.version = null;
4143
}
4244

4345
private ManagedInstance(
4446
String currentAction,
4547
String id,
4648
String instance,
4749
String instanceStatus,
48-
ManagedInstanceLastAttempt lastAttempt) {
50+
ManagedInstanceLastAttempt lastAttempt,
51+
ManagedInstanceVersion version) {
4952
this.currentAction = currentAction;
5053
this.id = id;
5154
this.instance = instance;
5255
this.instanceStatus = instanceStatus;
5356
this.lastAttempt = lastAttempt;
57+
this.version = version;
5458
}
5559

5660
@Override
@@ -70,6 +74,9 @@ public Object getFieldValue(String fieldName) {
7074
if ("lastAttempt".equals(fieldName)) {
7175
return lastAttempt;
7276
}
77+
if ("version".equals(fieldName)) {
78+
return version;
79+
}
7380
return null;
7481
}
7582

@@ -140,6 +147,11 @@ public ManagedInstanceLastAttempt getLastAttempt() {
140147
return lastAttempt;
141148
}
142149

150+
/** [Output Only] Intended version of this instance. */
151+
public ManagedInstanceVersion getVersion() {
152+
return version;
153+
}
154+
143155
public static Builder newBuilder() {
144156
return DEFAULT_INSTANCE.toBuilder();
145157
}
@@ -168,6 +180,7 @@ public static class Builder {
168180
private String instance;
169181
private String instanceStatus;
170182
private ManagedInstanceLastAttempt lastAttempt;
183+
private ManagedInstanceVersion version;
171184

172185
Builder() {}
173186

@@ -188,6 +201,9 @@ public Builder mergeFrom(ManagedInstance other) {
188201
if (other.getLastAttempt() != null) {
189202
this.lastAttempt = other.lastAttempt;
190203
}
204+
if (other.getVersion() != null) {
205+
this.version = other.version;
206+
}
191207
return this;
192208
}
193209

@@ -197,6 +213,7 @@ public Builder mergeFrom(ManagedInstance other) {
197213
this.instance = source.instance;
198214
this.instanceStatus = source.instanceStatus;
199215
this.lastAttempt = source.lastAttempt;
216+
this.version = source.version;
200217
}
201218

202219
/**
@@ -304,9 +321,20 @@ public Builder setLastAttempt(ManagedInstanceLastAttempt lastAttempt) {
304321
return this;
305322
}
306323

324+
/** [Output Only] Intended version of this instance. */
325+
public ManagedInstanceVersion getVersion() {
326+
return version;
327+
}
328+
329+
/** [Output Only] Intended version of this instance. */
330+
public Builder setVersion(ManagedInstanceVersion version) {
331+
this.version = version;
332+
return this;
333+
}
334+
307335
public ManagedInstance build() {
308336

309-
return new ManagedInstance(currentAction, id, instance, instanceStatus, lastAttempt);
337+
return new ManagedInstance(currentAction, id, instance, instanceStatus, lastAttempt, version);
310338
}
311339

312340
public Builder clone() {
@@ -316,6 +344,7 @@ public Builder clone() {
316344
newBuilder.setInstance(this.instance);
317345
newBuilder.setInstanceStatus(this.instanceStatus);
318346
newBuilder.setLastAttempt(this.lastAttempt);
347+
newBuilder.setVersion(this.version);
319348
return newBuilder;
320349
}
321350
}
@@ -337,6 +366,9 @@ public String toString() {
337366
+ ", "
338367
+ "lastAttempt="
339368
+ lastAttempt
369+
+ ", "
370+
+ "version="
371+
+ version
340372
+ "}";
341373
}
342374

@@ -351,13 +383,14 @@ public boolean equals(Object o) {
351383
&& Objects.equals(this.id, that.getId())
352384
&& Objects.equals(this.instance, that.getInstance())
353385
&& Objects.equals(this.instanceStatus, that.getInstanceStatus())
354-
&& Objects.equals(this.lastAttempt, that.getLastAttempt());
386+
&& Objects.equals(this.lastAttempt, that.getLastAttempt())
387+
&& Objects.equals(this.version, that.getVersion());
355388
}
356389
return false;
357390
}
358391

359392
@Override
360393
public int hashCode() {
361-
return Objects.hash(currentAction, id, instance, instanceStatus, lastAttempt);
394+
return Objects.hash(currentAction, id, instance, instanceStatus, lastAttempt, version);
362395
}
363396
}

0 commit comments

Comments
 (0)