Skip to content

Commit 4d8538d

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 24895 b: refs/heads/autosynth-spanner c: 4f96e56 h: refs/heads/master i: 24893: bca8c2a 24891: e95046e 24887: 8017455 24879: 0fe0ff2 24863: 0d0d453 24831: d0bc062
1 parent 82e4923 commit 4d8538d

7 files changed

Lines changed: 870 additions & 5 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9
137137
refs/heads/autosynth-os-login: 123ba209c5769d0ee067e0ce5848bec13b42a4f4
138138
refs/heads/autosynth-redis: 6bedce4d7c7c6ca6a22e83ad1780e08fdc565a9e
139139
refs/heads/autosynth-scheduler: 57f9fdb1e7de30c85f4ec7198931a07f50603e55
140-
refs/heads/autosynth-spanner: bab445bc0653297ef94543cb97e6c8c440b806a3
140+
refs/heads/autosynth-spanner: 4f96e56df346dbce93097823736bcef3b85ce793
141141
refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
142142
refs/heads/autosynth-tasks: 5d6a4f686ffef2080506d3b613fc7563a8bba1cb
143143
refs/heads/autosynth-texttospeech: 2dcc5dc22be0f456caa1b6a8a4bcdace2641239c

branches/autosynth-spanner/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public final class Instance implements ApiMessage {
4848
private final Scheduling scheduling;
4949
private final String selfLink;
5050
private final List<ServiceAccount> serviceAccounts;
51+
private final ShieldedInstanceConfig shieldedInstanceConfig;
52+
private final ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy;
5153
private final Boolean startRestricted;
5254
private final String status;
5355
private final String statusMessage;
@@ -75,6 +77,8 @@ private Instance() {
7577
this.scheduling = null;
7678
this.selfLink = null;
7779
this.serviceAccounts = null;
80+
this.shieldedInstanceConfig = null;
81+
this.shieldedInstanceIntegrityPolicy = null;
7882
this.startRestricted = null;
7983
this.status = null;
8084
this.statusMessage = null;
@@ -103,6 +107,8 @@ private Instance(
103107
Scheduling scheduling,
104108
String selfLink,
105109
List<ServiceAccount> serviceAccounts,
110+
ShieldedInstanceConfig shieldedInstanceConfig,
111+
ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy,
106112
Boolean startRestricted,
107113
String status,
108114
String statusMessage,
@@ -128,6 +134,8 @@ private Instance(
128134
this.scheduling = scheduling;
129135
this.selfLink = selfLink;
130136
this.serviceAccounts = serviceAccounts;
137+
this.shieldedInstanceConfig = shieldedInstanceConfig;
138+
this.shieldedInstanceIntegrityPolicy = shieldedInstanceIntegrityPolicy;
131139
this.startRestricted = startRestricted;
132140
this.status = status;
133141
this.statusMessage = statusMessage;
@@ -197,6 +205,12 @@ public Object getFieldValue(String fieldName) {
197205
if ("serviceAccounts".equals(fieldName)) {
198206
return serviceAccounts;
199207
}
208+
if ("shieldedInstanceConfig".equals(fieldName)) {
209+
return shieldedInstanceConfig;
210+
}
211+
if ("shieldedInstanceIntegrityPolicy".equals(fieldName)) {
212+
return shieldedInstanceIntegrityPolicy;
213+
}
200214
if ("startRestricted".equals(fieldName)) {
201215
return startRestricted;
202216
}
@@ -387,6 +401,14 @@ public List<ServiceAccount> getServiceAccountsList() {
387401
return serviceAccounts;
388402
}
389403

404+
public ShieldedInstanceConfig getShieldedInstanceConfig() {
405+
return shieldedInstanceConfig;
406+
}
407+
408+
public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy() {
409+
return shieldedInstanceIntegrityPolicy;
410+
}
411+
390412
/**
391413
* [Output Only] Whether a VM has been restricted for start because Compute Engine has detected
392414
* suspicious activity.
@@ -469,6 +491,8 @@ public static class Builder {
469491
private Scheduling scheduling;
470492
private String selfLink;
471493
private List<ServiceAccount> serviceAccounts;
494+
private ShieldedInstanceConfig shieldedInstanceConfig;
495+
private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy;
472496
private Boolean startRestricted;
473497
private String status;
474498
private String statusMessage;
@@ -539,6 +563,12 @@ public Builder mergeFrom(Instance other) {
539563
if (other.getServiceAccountsList() != null) {
540564
this.serviceAccounts = other.serviceAccounts;
541565
}
566+
if (other.getShieldedInstanceConfig() != null) {
567+
this.shieldedInstanceConfig = other.shieldedInstanceConfig;
568+
}
569+
if (other.getShieldedInstanceIntegrityPolicy() != null) {
570+
this.shieldedInstanceIntegrityPolicy = other.shieldedInstanceIntegrityPolicy;
571+
}
542572
if (other.getStartRestricted() != null) {
543573
this.startRestricted = other.startRestricted;
544574
}
@@ -578,6 +608,8 @@ public Builder mergeFrom(Instance other) {
578608
this.scheduling = source.scheduling;
579609
this.selfLink = source.selfLink;
580610
this.serviceAccounts = source.serviceAccounts;
611+
this.shieldedInstanceConfig = source.shieldedInstanceConfig;
612+
this.shieldedInstanceIntegrityPolicy = source.shieldedInstanceIntegrityPolicy;
581613
this.startRestricted = source.startRestricted;
582614
this.status = source.status;
583615
this.statusMessage = source.statusMessage;
@@ -981,6 +1013,25 @@ public Builder addServiceAccounts(ServiceAccount serviceAccounts) {
9811013
return this;
9821014
}
9831015

1016+
public ShieldedInstanceConfig getShieldedInstanceConfig() {
1017+
return shieldedInstanceConfig;
1018+
}
1019+
1020+
public Builder setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig) {
1021+
this.shieldedInstanceConfig = shieldedInstanceConfig;
1022+
return this;
1023+
}
1024+
1025+
public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy() {
1026+
return shieldedInstanceIntegrityPolicy;
1027+
}
1028+
1029+
public Builder setShieldedInstanceIntegrityPolicy(
1030+
ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy) {
1031+
this.shieldedInstanceIntegrityPolicy = shieldedInstanceIntegrityPolicy;
1032+
return this;
1033+
}
1034+
9841035
/**
9851036
* [Output Only] Whether a VM has been restricted for start because Compute Engine has detected
9861037
* suspicious activity.
@@ -1087,6 +1138,8 @@ public Instance build() {
10871138
scheduling,
10881139
selfLink,
10891140
serviceAccounts,
1141+
shieldedInstanceConfig,
1142+
shieldedInstanceIntegrityPolicy,
10901143
startRestricted,
10911144
status,
10921145
statusMessage,
@@ -1116,6 +1169,8 @@ public Builder clone() {
11161169
newBuilder.setScheduling(this.scheduling);
11171170
newBuilder.setSelfLink(this.selfLink);
11181171
newBuilder.addAllServiceAccounts(this.serviceAccounts);
1172+
newBuilder.setShieldedInstanceConfig(this.shieldedInstanceConfig);
1173+
newBuilder.setShieldedInstanceIntegrityPolicy(this.shieldedInstanceIntegrityPolicy);
11191174
newBuilder.setStartRestricted(this.startRestricted);
11201175
newBuilder.setStatus(this.status);
11211176
newBuilder.setStatusMessage(this.statusMessage);
@@ -1188,6 +1243,12 @@ public String toString() {
11881243
+ "serviceAccounts="
11891244
+ serviceAccounts
11901245
+ ", "
1246+
+ "shieldedInstanceConfig="
1247+
+ shieldedInstanceConfig
1248+
+ ", "
1249+
+ "shieldedInstanceIntegrityPolicy="
1250+
+ shieldedInstanceIntegrityPolicy
1251+
+ ", "
11911252
+ "startRestricted="
11921253
+ startRestricted
11931254
+ ", "
@@ -1232,6 +1293,9 @@ public boolean equals(Object o) {
12321293
&& Objects.equals(this.scheduling, that.getScheduling())
12331294
&& Objects.equals(this.selfLink, that.getSelfLink())
12341295
&& Objects.equals(this.serviceAccounts, that.getServiceAccountsList())
1296+
&& Objects.equals(this.shieldedInstanceConfig, that.getShieldedInstanceConfig())
1297+
&& Objects.equals(
1298+
this.shieldedInstanceIntegrityPolicy, that.getShieldedInstanceIntegrityPolicy())
12351299
&& Objects.equals(this.startRestricted, that.getStartRestricted())
12361300
&& Objects.equals(this.status, that.getStatus())
12371301
&& Objects.equals(this.statusMessage, that.getStatusMessage())
@@ -1264,6 +1328,8 @@ public int hashCode() {
12641328
scheduling,
12651329
selfLink,
12661330
serviceAccounts,
1331+
shieldedInstanceConfig,
1332+
shieldedInstanceIntegrityPolicy,
12671333
startRestricted,
12681334
status,
12691335
statusMessage,

0 commit comments

Comments
 (0)