Skip to content

Commit a586bef

Browse files
yoshi-automationchingor13
authored andcommitted
Regenerate compute client (#6249)
1 parent 7d6b394 commit a586bef

File tree

98 files changed

+21716
-297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+21716
-297
lines changed

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

Lines changed: 683 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ public List<String> getFieldMask() {
7777
return null;
7878
}
7979

80-
/** Specifies number of resources that are allocated. */
80+
/** Specifies the number of resources that are allocated. */
8181
public String getCount() {
8282
return count;
8383
}
8484

85-
/** [OutputOnly] Indicates how many resource are in use. */
85+
/** [OutputOnly] Indicates how many instances are in use. */
8686
public String getInUseCount() {
8787
return inUseCount;
8888
}
8989

90-
/** The instance properties for this specific sku reservation. */
90+
/** The instance properties for the reservation. */
9191
public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties() {
9292
return instanceProperties;
9393
}
@@ -141,34 +141,34 @@ public Builder mergeFrom(AllocationSpecificSKUReservation other) {
141141
this.instanceProperties = source.instanceProperties;
142142
}
143143

144-
/** Specifies number of resources that are allocated. */
144+
/** Specifies the number of resources that are allocated. */
145145
public String getCount() {
146146
return count;
147147
}
148148

149-
/** Specifies number of resources that are allocated. */
149+
/** Specifies the number of resources that are allocated. */
150150
public Builder setCount(String count) {
151151
this.count = count;
152152
return this;
153153
}
154154

155-
/** [OutputOnly] Indicates how many resource are in use. */
155+
/** [OutputOnly] Indicates how many instances are in use. */
156156
public String getInUseCount() {
157157
return inUseCount;
158158
}
159159

160-
/** [OutputOnly] Indicates how many resource are in use. */
160+
/** [OutputOnly] Indicates how many instances are in use. */
161161
public Builder setInUseCount(String inUseCount) {
162162
this.inUseCount = inUseCount;
163163
return this;
164164
}
165165

166-
/** The instance properties for this specific sku reservation. */
166+
/** The instance properties for the reservation. */
167167
public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties() {
168168
return instanceProperties;
169169
}
170170

171-
/** The instance properties for this specific sku reservation. */
171+
/** The instance properties for the reservation. */
172172
public Builder setInstanceProperties(
173173
AllocationSpecificSKUAllocationReservedInstanceProperties instanceProperties) {
174174
this.instanceProperties = instanceProperties;

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ public String getDiskName() {
149149
return diskName;
150150
}
151151

152-
/** Specifies the size of the disk in base-2 GB. */
152+
/**
153+
* Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size
154+
* as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB.
155+
*/
153156
public String getDiskSizeGb() {
154157
return diskSizeGb;
155158
}
@@ -353,12 +356,18 @@ public Builder setDiskName(String diskName) {
353356
return this;
354357
}
355358

356-
/** Specifies the size of the disk in base-2 GB. */
359+
/**
360+
* Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size
361+
* as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB.
362+
*/
357363
public String getDiskSizeGb() {
358364
return diskSizeGb;
359365
}
360366

361-
/** Specifies the size of the disk in base-2 GB. */
367+
/**
368+
* Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size
369+
* as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB.
370+
*/
362371
public Builder setDiskSizeGb(String diskSizeGb) {
363372
this.diskSizeGb = diskSizeGb;
364373
return this;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
* <p>Example Policy with multiple AuditConfigs:
3838
*
3939
* <p>{ "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type":
40-
* "DATA_READ", "exempted_members": [ "user:foo{@literal @}gmail.com" ] }, { "log_type":
41-
* "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com"
40+
* "DATA_READ", "exempted_members": [ "user:jose{@literal @}example.com" ] }, { "log_type":
41+
* "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "sampleservice.googleapis.com"
4242
* "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE",
43-
* "exempted_members": [ "user:bar{@literal @}gmail.com" ] } ] } ] }
43+
* "exempted_members": [ "user:aliya{@literal @}example.com" ] } ] } ] }
4444
*
45-
* <p>For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
46-
* exempts foo{@literal @}gmail.com from DATA_READ logging, and bar{@literal @}gmail.com from
45+
* <p>For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
46+
* exempts jose{@literal @}example.com from DATA_READ logging, and aliya{@literal @}example.com from
4747
* DATA_WRITE logging.
4848
*/
4949
public final class AuditConfig implements ApiMessage {

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

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,26 @@
2929
* Provides the configuration for logging a type of permissions. Example:
3030
*
3131
* <p>{ "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
32-
* "user:foo{@literal @}gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
32+
* "user:jose{@literal @}example.com" ] }, { "log_type": "DATA_WRITE", } ] }
3333
*
34-
* <p>This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo{@literal @}gmail.com
34+
* <p>This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose{@literal @}example.com
3535
* from DATA_READ logging.
3636
*/
3737
public final class AuditLogConfig implements ApiMessage {
3838
private final List<String> exemptedMembers;
39+
private final Boolean ignoreChildExemptions;
3940
private final String logType;
4041

4142
private AuditLogConfig() {
4243
this.exemptedMembers = null;
44+
this.ignoreChildExemptions = null;
4345
this.logType = null;
4446
}
4547

46-
private AuditLogConfig(List<String> exemptedMembers, String logType) {
48+
private AuditLogConfig(
49+
List<String> exemptedMembers, Boolean ignoreChildExemptions, String logType) {
4750
this.exemptedMembers = exemptedMembers;
51+
this.ignoreChildExemptions = ignoreChildExemptions;
4852
this.logType = logType;
4953
}
5054

@@ -53,6 +57,9 @@ public Object getFieldValue(String fieldName) {
5357
if ("exemptedMembers".equals(fieldName)) {
5458
return exemptedMembers;
5559
}
60+
if ("ignoreChildExemptions".equals(fieldName)) {
61+
return ignoreChildExemptions;
62+
}
5663
if ("logType".equals(fieldName)) {
5764
return logType;
5865
}
@@ -85,6 +92,14 @@ public List<String> getExemptedMembersList() {
8592
return exemptedMembers;
8693
}
8794

95+
/**
96+
* Specifies whether principals can be exempted for the same LogType in lower-level resource
97+
* policies. If true, any lower-level exemptions will be ignored.
98+
*/
99+
public Boolean getIgnoreChildExemptions() {
100+
return ignoreChildExemptions;
101+
}
102+
88103
/** The log type that this config enables. */
89104
public String getLogType() {
90105
return logType;
@@ -114,6 +129,7 @@ public static AuditLogConfig getDefaultInstance() {
114129

115130
public static class Builder {
116131
private List<String> exemptedMembers;
132+
private Boolean ignoreChildExemptions;
117133
private String logType;
118134

119135
Builder() {}
@@ -123,6 +139,9 @@ public Builder mergeFrom(AuditLogConfig other) {
123139
if (other.getExemptedMembersList() != null) {
124140
this.exemptedMembers = other.exemptedMembers;
125141
}
142+
if (other.getIgnoreChildExemptions() != null) {
143+
this.ignoreChildExemptions = other.ignoreChildExemptions;
144+
}
126145
if (other.getLogType() != null) {
127146
this.logType = other.logType;
128147
}
@@ -131,6 +150,7 @@ public Builder mergeFrom(AuditLogConfig other) {
131150

132151
Builder(AuditLogConfig source) {
133152
this.exemptedMembers = source.exemptedMembers;
153+
this.ignoreChildExemptions = source.ignoreChildExemptions;
134154
this.logType = source.logType;
135155
}
136156

@@ -166,6 +186,23 @@ public Builder addExemptedMembers(String exemptedMembers) {
166186
return this;
167187
}
168188

189+
/**
190+
* Specifies whether principals can be exempted for the same LogType in lower-level resource
191+
* policies. If true, any lower-level exemptions will be ignored.
192+
*/
193+
public Boolean getIgnoreChildExemptions() {
194+
return ignoreChildExemptions;
195+
}
196+
197+
/**
198+
* Specifies whether principals can be exempted for the same LogType in lower-level resource
199+
* policies. If true, any lower-level exemptions will be ignored.
200+
*/
201+
public Builder setIgnoreChildExemptions(Boolean ignoreChildExemptions) {
202+
this.ignoreChildExemptions = ignoreChildExemptions;
203+
return this;
204+
}
205+
169206
/** The log type that this config enables. */
170207
public String getLogType() {
171208
return logType;
@@ -179,12 +216,13 @@ public Builder setLogType(String logType) {
179216

180217
public AuditLogConfig build() {
181218

182-
return new AuditLogConfig(exemptedMembers, logType);
219+
return new AuditLogConfig(exemptedMembers, ignoreChildExemptions, logType);
183220
}
184221

185222
public Builder clone() {
186223
Builder newBuilder = new Builder();
187224
newBuilder.addAllExemptedMembers(this.exemptedMembers);
225+
newBuilder.setIgnoreChildExemptions(this.ignoreChildExemptions);
188226
newBuilder.setLogType(this.logType);
189227
return newBuilder;
190228
}
@@ -196,6 +234,9 @@ public String toString() {
196234
+ "exemptedMembers="
197235
+ exemptedMembers
198236
+ ", "
237+
+ "ignoreChildExemptions="
238+
+ ignoreChildExemptions
239+
+ ", "
199240
+ "logType="
200241
+ logType
201242
+ "}";
@@ -209,13 +250,14 @@ public boolean equals(Object o) {
209250
if (o instanceof AuditLogConfig) {
210251
AuditLogConfig that = (AuditLogConfig) o;
211252
return Objects.equals(this.exemptedMembers, that.getExemptedMembersList())
253+
&& Objects.equals(this.ignoreChildExemptions, that.getIgnoreChildExemptions())
212254
&& Objects.equals(this.logType, that.getLogType());
213255
}
214256
return false;
215257
}
216258

217259
@Override
218260
public int hashCode() {
219-
return Objects.hash(exemptedMembers, logType);
261+
return Objects.hash(exemptedMembers, ignoreChildExemptions, logType);
220262
}
221263
}

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ public List<String> getFieldMask() {
140140
* for the backend service, as well as the type of backend (instance group or NEG).
141141
*
142142
* <p>- If the load balancing mode is CONNECTION, then the load is spread based on how many
143-
* concurrent connections the backend can handle. The CONNECTION balancing mode is only available
144-
* if the protocol for the backend service is SSL, TCP, or UDP.
143+
* concurrent connections the backend can handle. You can use the CONNECTION balancing mode if the
144+
* protocol for the backend service is SSL, TCP, or UDP.
145145
*
146146
* <p>If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy load
147147
* balancers), you must also specify exactly one of the following parameters: maxConnections,
@@ -150,16 +150,16 @@ public List<String> getFieldMask() {
150150
* <p>If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load
151151
* balancers), you cannot specify any additional parameters.
152152
*
153-
* <p>- If the load balancing mode is RATE, then the load is spread based on the rate of HTTP
154-
* requests per second (RPS). The RATE balancing mode is only available if the protocol for the
155-
* backend service is HTTP or HTTPS. You must specify exactly one of the following parameters:
156-
* maxRate, maxRatePerInstance, or maxRatePerEndpoint.
153+
* <p>- If the load balancing mode is RATE, the load is spread based on the rate of HTTP requests
154+
* per second (RPS). You can use the RATE balancing mode if the protocol for the backend service
155+
* is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate,
156+
* maxRatePerInstance, or maxRatePerEndpoint.
157157
*
158-
* <p>- If the load balancing mode is UTILIZATION, then the load is spread based on the CPU
159-
* utilization of instances in an instance group. The UTILIZATION balancing mode is only available
160-
* if the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
161-
* INTERNAL_MANAGED and the backend is made up of instance groups. There are no restrictions on
162-
* the backend service protocol.
158+
* <p>- If the load balancing mode is UTILIZATION, the load is spread based on the CPU utilization
159+
* of instances in an instance group. You can use the UTILIZATION balancing mode if the
160+
* loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
161+
* INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the backend
162+
* service protocol.
163163
*/
164164
public String getBalancingMode() {
165165
return balancingMode;
@@ -399,8 +399,8 @@ public Builder mergeFrom(Backend other) {
399399
* for the backend service, as well as the type of backend (instance group or NEG).
400400
*
401401
* <p>- If the load balancing mode is CONNECTION, then the load is spread based on how many
402-
* concurrent connections the backend can handle. The CONNECTION balancing mode is only
403-
* available if the protocol for the backend service is SSL, TCP, or UDP.
402+
* concurrent connections the backend can handle. You can use the CONNECTION balancing mode if
403+
* the protocol for the backend service is SSL, TCP, or UDP.
404404
*
405405
* <p>If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy
406406
* load balancers), you must also specify exactly one of the following parameters:
@@ -409,16 +409,16 @@ public Builder mergeFrom(Backend other) {
409409
* <p>If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load
410410
* balancers), you cannot specify any additional parameters.
411411
*
412-
* <p>- If the load balancing mode is RATE, then the load is spread based on the rate of HTTP
413-
* requests per second (RPS). The RATE balancing mode is only available if the protocol for the
412+
* <p>- If the load balancing mode is RATE, the load is spread based on the rate of HTTP
413+
* requests per second (RPS). You can use the RATE balancing mode if the protocol for the
414414
* backend service is HTTP or HTTPS. You must specify exactly one of the following parameters:
415415
* maxRate, maxRatePerInstance, or maxRatePerEndpoint.
416416
*
417-
* <p>- If the load balancing mode is UTILIZATION, then the load is spread based on the CPU
418-
* utilization of instances in an instance group. The UTILIZATION balancing mode is only
419-
* available if the loadBalancingScheme of the backend service is EXTERNAL,
420-
* INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backend is made up of instance groups.
421-
* There are no restrictions on the backend service protocol.
417+
* <p>- If the load balancing mode is UTILIZATION, the load is spread based on the CPU
418+
* utilization of instances in an instance group. You can use the UTILIZATION balancing mode if
419+
* the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
420+
* INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the
421+
* backend service protocol.
422422
*/
423423
public String getBalancingMode() {
424424
return balancingMode;
@@ -431,8 +431,8 @@ public String getBalancingMode() {
431431
* for the backend service, as well as the type of backend (instance group or NEG).
432432
*
433433
* <p>- If the load balancing mode is CONNECTION, then the load is spread based on how many
434-
* concurrent connections the backend can handle. The CONNECTION balancing mode is only
435-
* available if the protocol for the backend service is SSL, TCP, or UDP.
434+
* concurrent connections the backend can handle. You can use the CONNECTION balancing mode if
435+
* the protocol for the backend service is SSL, TCP, or UDP.
436436
*
437437
* <p>If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy
438438
* load balancers), you must also specify exactly one of the following parameters:
@@ -441,16 +441,16 @@ public String getBalancingMode() {
441441
* <p>If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load
442442
* balancers), you cannot specify any additional parameters.
443443
*
444-
* <p>- If the load balancing mode is RATE, then the load is spread based on the rate of HTTP
445-
* requests per second (RPS). The RATE balancing mode is only available if the protocol for the
444+
* <p>- If the load balancing mode is RATE, the load is spread based on the rate of HTTP
445+
* requests per second (RPS). You can use the RATE balancing mode if the protocol for the
446446
* backend service is HTTP or HTTPS. You must specify exactly one of the following parameters:
447447
* maxRate, maxRatePerInstance, or maxRatePerEndpoint.
448448
*
449-
* <p>- If the load balancing mode is UTILIZATION, then the load is spread based on the CPU
450-
* utilization of instances in an instance group. The UTILIZATION balancing mode is only
451-
* available if the loadBalancingScheme of the backend service is EXTERNAL,
452-
* INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED and the backend is made up of instance groups.
453-
* There are no restrictions on the backend service protocol.
449+
* <p>- If the load balancing mode is UTILIZATION, the load is spread based on the CPU
450+
* utilization of instances in an instance group. You can use the UTILIZATION balancing mode if
451+
* the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
452+
* INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the
453+
* backend service protocol.
454454
*/
455455
public Builder setBalancingMode(String balancingMode) {
456456
this.balancingMode = balancingMode;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public String getSelfLink() {
398398
* --protocol is UDP.
399399
*
400400
* <p>When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or
401-
* GENERATED_COOKIE. GENERATED_COOKIE is only available if the protocol is HTTP or HTTPS.
401+
* GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS.
402402
*
403403
* <p>When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP,
404404
* CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
@@ -964,7 +964,7 @@ public Builder setSelfLink(String selfLink) {
964964
* the --protocol is UDP.
965965
*
966966
* <p>When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or
967-
* GENERATED_COOKIE. GENERATED_COOKIE is only available if the protocol is HTTP or HTTPS.
967+
* GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS.
968968
*
969969
* <p>When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP,
970970
* CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
@@ -981,7 +981,7 @@ public String getSessionAffinity() {
981981
* the --protocol is UDP.
982982
*
983983
* <p>When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or
984-
* GENERATED_COOKIE. GENERATED_COOKIE is only available if the protocol is HTTP or HTTPS.
984+
* GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS.
985985
*
986986
* <p>When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP,
987987
* CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.

0 commit comments

Comments
 (0)