Skip to content

Commit e06e4a4

Browse files
Regenerate compute client
1 parent 83ea49e commit e06e4a4

File tree

12 files changed

+568
-81
lines changed

12 files changed

+568
-81
lines changed

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public final class BackendService implements ApiMessage {
3535
private final BackendServiceCdnPolicy cdnPolicy;
3636
private final ConnectionDraining connectionDraining;
3737
private final String creationTimestamp;
38+
private final List<String> customRequestHeaders;
3839
private final String description;
3940
private final Boolean enableCDN;
4041
private final String fingerprint;
@@ -59,6 +60,7 @@ private BackendService() {
5960
this.cdnPolicy = null;
6061
this.connectionDraining = null;
6162
this.creationTimestamp = null;
63+
this.customRequestHeaders = null;
6264
this.description = null;
6365
this.enableCDN = null;
6466
this.fingerprint = null;
@@ -84,6 +86,7 @@ private BackendService(
8486
BackendServiceCdnPolicy cdnPolicy,
8587
ConnectionDraining connectionDraining,
8688
String creationTimestamp,
89+
List<String> customRequestHeaders,
8790
String description,
8891
Boolean enableCDN,
8992
String fingerprint,
@@ -106,6 +109,7 @@ private BackendService(
106109
this.cdnPolicy = cdnPolicy;
107110
this.connectionDraining = connectionDraining;
108111
this.creationTimestamp = creationTimestamp;
112+
this.customRequestHeaders = customRequestHeaders;
109113
this.description = description;
110114
this.enableCDN = enableCDN;
111115
this.fingerprint = fingerprint;
@@ -142,6 +146,9 @@ public Object getFieldValue(String fieldName) {
142146
if ("creationTimestamp".equals(fieldName)) {
143147
return creationTimestamp;
144148
}
149+
if ("customRequestHeaders".equals(fieldName)) {
150+
return customRequestHeaders;
151+
}
145152
if ("description".equals(fieldName)) {
146153
return description;
147154
}
@@ -244,6 +251,11 @@ public String getCreationTimestamp() {
244251
return creationTimestamp;
245252
}
246253

254+
/** Headers that the HTTP/S load balancer should add to proxied requests. */
255+
public List<String> getCustomRequestHeadersList() {
256+
return customRequestHeaders;
257+
}
258+
247259
/**
248260
* An optional description of this resource. Provide this property when you create the resource.
249261
*/
@@ -422,6 +434,7 @@ public static class Builder {
422434
private BackendServiceCdnPolicy cdnPolicy;
423435
private ConnectionDraining connectionDraining;
424436
private String creationTimestamp;
437+
private List<String> customRequestHeaders;
425438
private String description;
426439
private Boolean enableCDN;
427440
private String fingerprint;
@@ -459,6 +472,9 @@ public Builder mergeFrom(BackendService other) {
459472
if (other.getCreationTimestamp() != null) {
460473
this.creationTimestamp = other.creationTimestamp;
461474
}
475+
if (other.getCustomRequestHeadersList() != null) {
476+
this.customRequestHeaders = other.customRequestHeaders;
477+
}
462478
if (other.getDescription() != null) {
463479
this.description = other.description;
464480
}
@@ -519,6 +535,7 @@ public Builder mergeFrom(BackendService other) {
519535
this.cdnPolicy = source.cdnPolicy;
520536
this.connectionDraining = source.connectionDraining;
521537
this.creationTimestamp = source.creationTimestamp;
538+
this.customRequestHeaders = source.customRequestHeaders;
522539
this.description = source.description;
523540
this.enableCDN = source.enableCDN;
524541
this.fingerprint = source.fingerprint;
@@ -615,6 +632,29 @@ public Builder setCreationTimestamp(String creationTimestamp) {
615632
return this;
616633
}
617634

635+
/** Headers that the HTTP/S load balancer should add to proxied requests. */
636+
public List<String> getCustomRequestHeadersList() {
637+
return customRequestHeaders;
638+
}
639+
640+
/** Headers that the HTTP/S load balancer should add to proxied requests. */
641+
public Builder addAllCustomRequestHeaders(List<String> customRequestHeaders) {
642+
if (this.customRequestHeaders == null) {
643+
this.customRequestHeaders = new LinkedList<>();
644+
}
645+
this.customRequestHeaders.addAll(customRequestHeaders);
646+
return this;
647+
}
648+
649+
/** Headers that the HTTP/S load balancer should add to proxied requests. */
650+
public Builder addCustomRequestHeaders(String customRequestHeaders) {
651+
if (this.customRequestHeaders == null) {
652+
this.customRequestHeaders = new LinkedList<>();
653+
}
654+
this.customRequestHeaders.add(customRequestHeaders);
655+
return this;
656+
}
657+
618658
/**
619659
* An optional description of this resource. Provide this property when you create the resource.
620660
*/
@@ -961,6 +1001,7 @@ public BackendService build() {
9611001
cdnPolicy,
9621002
connectionDraining,
9631003
creationTimestamp,
1004+
customRequestHeaders,
9641005
description,
9651006
enableCDN,
9661007
fingerprint,
@@ -987,6 +1028,7 @@ public Builder clone() {
9871028
newBuilder.setCdnPolicy(this.cdnPolicy);
9881029
newBuilder.setConnectionDraining(this.connectionDraining);
9891030
newBuilder.setCreationTimestamp(this.creationTimestamp);
1031+
newBuilder.addAllCustomRequestHeaders(this.customRequestHeaders);
9901032
newBuilder.setDescription(this.description);
9911033
newBuilder.setEnableCDN(this.enableCDN);
9921034
newBuilder.setFingerprint(this.fingerprint);
@@ -1026,6 +1068,9 @@ public String toString() {
10261068
+ "creationTimestamp="
10271069
+ creationTimestamp
10281070
+ ", "
1071+
+ "customRequestHeaders="
1072+
+ customRequestHeaders
1073+
+ ", "
10291074
+ "description="
10301075
+ description
10311076
+ ", "
@@ -1091,6 +1136,7 @@ public boolean equals(Object o) {
10911136
&& Objects.equals(this.cdnPolicy, that.getCdnPolicy())
10921137
&& Objects.equals(this.connectionDraining, that.getConnectionDraining())
10931138
&& Objects.equals(this.creationTimestamp, that.getCreationTimestamp())
1139+
&& Objects.equals(this.customRequestHeaders, that.getCustomRequestHeadersList())
10941140
&& Objects.equals(this.description, that.getDescription())
10951141
&& Objects.equals(this.enableCDN, that.getEnableCDN())
10961142
&& Objects.equals(this.fingerprint, that.getFingerprint())
@@ -1120,6 +1166,7 @@ public int hashCode() {
11201166
cdnPolicy,
11211167
connectionDraining,
11221168
creationTimestamp,
1169+
customRequestHeaders,
11231170
description,
11241171
enableCDN,
11251172
fingerprint,

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public Expr getCondition() {
103103
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
104104
* `admins{@literal @}example.com`.
105105
*
106-
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
106+
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of that
107107
* domain. For example, `google.com` or `example.com`.
108108
*/
109109
public List<String> getMembersList() {
@@ -205,8 +205,8 @@ public Builder setCondition(Expr condition) {
205205
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
206206
* `admins{@literal @}example.com`.
207207
*
208-
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
209-
* domain. For example, `google.com` or `example.com`.
208+
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of
209+
* that domain. For example, `google.com` or `example.com`.
210210
*/
211211
public List<String> getMembersList() {
212212
return members;
@@ -231,8 +231,8 @@ public List<String> getMembersList() {
231231
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
232232
* `admins{@literal @}example.com`.
233233
*
234-
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
235-
* domain. For example, `google.com` or `example.com`.
234+
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of
235+
* that domain. For example, `google.com` or `example.com`.
236236
*/
237237
public Builder addAllMembers(List<String> members) {
238238
if (this.members == null) {
@@ -261,8 +261,8 @@ public Builder addAllMembers(List<String> members) {
261261
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
262262
* `admins{@literal @}example.com`.
263263
*
264-
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
265-
* domain. For example, `google.com` or `example.com`.
264+
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of
265+
* that domain. For example, `google.com` or `example.com`.
266266
*/
267267
public Builder addMembers(String members) {
268268
if (this.members == null) {

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ public String getReplacement() {
123123
}
124124

125125
/**
126-
* The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED.
127-
* Operations which create a new resource using a DEPRECATED resource will return successfully,
128-
* but with a warning indicating the deprecated resource and recommending its replacement.
129-
* Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
126+
* The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
127+
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
128+
* which create a new resource using a DEPRECATED resource will return successfully, but with a
129+
* warning indicating the deprecated resource and recommending its replacement. Operations which
130+
* use OBSOLETE or DELETED resources will be rejected and result in an error.
130131
*/
131132
public String getState() {
132133
return state;
@@ -266,20 +267,22 @@ public Builder setReplacement(String replacement) {
266267
}
267268

268269
/**
269-
* The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED.
270-
* Operations which create a new resource using a DEPRECATED resource will return successfully,
271-
* but with a warning indicating the deprecated resource and recommending its replacement.
272-
* Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
270+
* The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
271+
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
272+
* which create a new resource using a DEPRECATED resource will return successfully, but with a
273+
* warning indicating the deprecated resource and recommending its replacement. Operations which
274+
* use OBSOLETE or DELETED resources will be rejected and result in an error.
273275
*/
274276
public String getState() {
275277
return state;
276278
}
277279

278280
/**
279-
* The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED.
280-
* Operations which create a new resource using a DEPRECATED resource will return successfully,
281-
* but with a warning indicating the deprecated resource and recommending its replacement.
282-
* Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
281+
* The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
282+
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
283+
* which create a new resource using a DEPRECATED resource will return successfully, but with a
284+
* warning indicating the deprecated resource and recommending its replacement. Operations which
285+
* use OBSOLETE or DELETED resources will be rejected and result in an error.
283286
*/
284287
public Builder setState(String state) {
285288
this.state = state;

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public final class HealthCheck implements ApiMessage {
3333
private final String creationTimestamp;
3434
private final String description;
3535
private final Integer healthyThreshold;
36+
private final Http2HealthCheck http2HealthCheck;
3637
private final HttpHealthCheck httpHealthCheck;
3738
private final HttpSHealthCheck httpsHealthCheck;
3839
private final String id;
@@ -50,6 +51,7 @@ private HealthCheck() {
5051
this.creationTimestamp = null;
5152
this.description = null;
5253
this.healthyThreshold = null;
54+
this.http2HealthCheck = null;
5355
this.httpHealthCheck = null;
5456
this.httpsHealthCheck = null;
5557
this.id = null;
@@ -68,6 +70,7 @@ private HealthCheck(
6870
String creationTimestamp,
6971
String description,
7072
Integer healthyThreshold,
73+
Http2HealthCheck http2HealthCheck,
7174
HttpHealthCheck httpHealthCheck,
7275
HttpSHealthCheck httpsHealthCheck,
7376
String id,
@@ -83,6 +86,7 @@ private HealthCheck(
8386
this.creationTimestamp = creationTimestamp;
8487
this.description = description;
8588
this.healthyThreshold = healthyThreshold;
89+
this.http2HealthCheck = http2HealthCheck;
8690
this.httpHealthCheck = httpHealthCheck;
8791
this.httpsHealthCheck = httpsHealthCheck;
8892
this.id = id;
@@ -110,6 +114,9 @@ public Object getFieldValue(String fieldName) {
110114
if ("healthyThreshold".equals(fieldName)) {
111115
return healthyThreshold;
112116
}
117+
if ("http2HealthCheck".equals(fieldName)) {
118+
return http2HealthCheck;
119+
}
113120
if ("httpHealthCheck".equals(fieldName)) {
114121
return httpHealthCheck;
115122
}
@@ -189,6 +196,10 @@ public Integer getHealthyThreshold() {
189196
return healthyThreshold;
190197
}
191198

199+
public Http2HealthCheck getHttp2HealthCheck() {
200+
return http2HealthCheck;
201+
}
202+
192203
public HttpHealthCheck getHttpHealthCheck() {
193204
return httpHealthCheck;
194205
}
@@ -285,6 +296,7 @@ public static class Builder {
285296
private String creationTimestamp;
286297
private String description;
287298
private Integer healthyThreshold;
299+
private Http2HealthCheck http2HealthCheck;
288300
private HttpHealthCheck httpHealthCheck;
289301
private HttpSHealthCheck httpsHealthCheck;
290302
private String id;
@@ -313,6 +325,9 @@ public Builder mergeFrom(HealthCheck other) {
313325
if (other.getHealthyThreshold() != null) {
314326
this.healthyThreshold = other.healthyThreshold;
315327
}
328+
if (other.getHttp2HealthCheck() != null) {
329+
this.http2HealthCheck = other.http2HealthCheck;
330+
}
316331
if (other.getHttpHealthCheck() != null) {
317332
this.httpHealthCheck = other.httpHealthCheck;
318333
}
@@ -354,6 +369,7 @@ public Builder mergeFrom(HealthCheck other) {
354369
this.creationTimestamp = source.creationTimestamp;
355370
this.description = source.description;
356371
this.healthyThreshold = source.healthyThreshold;
372+
this.http2HealthCheck = source.http2HealthCheck;
357373
this.httpHealthCheck = source.httpHealthCheck;
358374
this.httpsHealthCheck = source.httpsHealthCheck;
359375
this.id = source.id;
@@ -421,6 +437,15 @@ public Builder setHealthyThreshold(Integer healthyThreshold) {
421437
return this;
422438
}
423439

440+
public Http2HealthCheck getHttp2HealthCheck() {
441+
return http2HealthCheck;
442+
}
443+
444+
public Builder setHttp2HealthCheck(Http2HealthCheck http2HealthCheck) {
445+
this.http2HealthCheck = http2HealthCheck;
446+
return this;
447+
}
448+
424449
public HttpHealthCheck getHttpHealthCheck() {
425450
return httpHealthCheck;
426451
}
@@ -579,6 +604,7 @@ public HealthCheck build() {
579604
creationTimestamp,
580605
description,
581606
healthyThreshold,
607+
http2HealthCheck,
582608
httpHealthCheck,
583609
httpsHealthCheck,
584610
id,
@@ -598,6 +624,7 @@ public Builder clone() {
598624
newBuilder.setCreationTimestamp(this.creationTimestamp);
599625
newBuilder.setDescription(this.description);
600626
newBuilder.setHealthyThreshold(this.healthyThreshold);
627+
newBuilder.setHttp2HealthCheck(this.http2HealthCheck);
601628
newBuilder.setHttpHealthCheck(this.httpHealthCheck);
602629
newBuilder.setHttpsHealthCheck(this.httpsHealthCheck);
603630
newBuilder.setId(this.id);
@@ -628,6 +655,9 @@ public String toString() {
628655
+ "healthyThreshold="
629656
+ healthyThreshold
630657
+ ", "
658+
+ "http2HealthCheck="
659+
+ http2HealthCheck
660+
+ ", "
631661
+ "httpHealthCheck="
632662
+ httpHealthCheck
633663
+ ", "
@@ -674,6 +704,7 @@ public boolean equals(Object o) {
674704
&& Objects.equals(this.creationTimestamp, that.getCreationTimestamp())
675705
&& Objects.equals(this.description, that.getDescription())
676706
&& Objects.equals(this.healthyThreshold, that.getHealthyThreshold())
707+
&& Objects.equals(this.http2HealthCheck, that.getHttp2HealthCheck())
677708
&& Objects.equals(this.httpHealthCheck, that.getHttpHealthCheck())
678709
&& Objects.equals(this.httpsHealthCheck, that.getHttpsHealthCheck())
679710
&& Objects.equals(this.id, that.getId())
@@ -696,6 +727,7 @@ public int hashCode() {
696727
creationTimestamp,
697728
description,
698729
healthyThreshold,
730+
http2HealthCheck,
699731
httpHealthCheck,
700732
httpsHealthCheck,
701733
id,

0 commit comments

Comments
 (0)