Skip to content

Commit 2533ebb

Browse files
yoshi-automationsduskis
authored andcommitted
---
yaml --- r: 23999 b: refs/heads/autosynth-kms c: 4f96e56 h: refs/heads/master i: 23997: c02059d 23995: 4ac35bb 23991: 2db5c34 23983: 9452bff 23967: 0479527 23935: ada486e
1 parent 40ba125 commit 2533ebb

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
@@ -132,7 +132,7 @@ refs/heads/autosynth-dialogflow: cb1ceeb3ec1a132d3096fc88d44b930a52130e18
132132
refs/heads/autosynth-errorreporting: 3f176c20b55dfaaa8fc32f28d82b31784b93e636
133133
refs/heads/autosynth-firestore: d48d82caace227856b6cd85ac30ee474528733ea
134134
refs/heads/autosynth-iot: 4025d1804241e74d54950a324dc4f667aeaad4b3
135-
refs/heads/autosynth-kms: bab445bc0653297ef94543cb97e6c8c440b806a3
135+
refs/heads/autosynth-kms: 4f96e56df346dbce93097823736bcef3b85ce793
136136
refs/heads/autosynth-language: c3d990dd34d81e7e935041e7147fb9dd27f8a557
137137
refs/heads/autosynth-os-login: 092fdbed6d5317948f92b708e9f50dedd89fc666
138138
refs/heads/autosynth-redis: 9e1fe503973c7b4a9ba26afb1fcddc2a57ba795a

branches/autosynth-kms/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)