Skip to content

Commit 244588b

Browse files
1 parent f5bdd90 commit 244588b

12 files changed

+173
-80
lines changed

clients/google-api-services-compute/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-compute</artifactId>
25-
<version>v1-rev20250717-2.0.0</version>
25+
<version>v1-rev20250728-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-compute:v1-rev20250717-2.0.0'
38+
implementation 'com.google.apis:google-api-services-compute:v1-rev20250728-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java

Lines changed: 59 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13632,6 +13632,9 @@ public class Delete extends ComputeRequest<com.google.api.services.compute.model
1363213632
private final java.util.regex.Pattern ZONE_PATTERN =
1363313633
java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?");
1363413634

13635+
private final java.util.regex.Pattern DISK_PATTERN =
13636+
java.util.regex.Pattern.compile("\\S{1,66}");
13637+
1363513638
/**
1363613639
* Deletes the specified persistent disk. Deleting a disk removes its data permanently and is
1363713640
* irreversible. However, deleting a disk does not delete any snapshots previously made from the
@@ -13664,6 +13667,11 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri
1366413667
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?");
1366513668
}
1366613669
this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified.");
13670+
if (!getSuppressPatternChecks()) {
13671+
com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(),
13672+
"Parameter disk must conform to the pattern " +
13673+
"\\S{1,66}");
13674+
}
1366713675
}
1366813676

1366913677
@Override
@@ -13780,6 +13788,11 @@ public java.lang.String getDisk() {
1378013788

1378113789
/** Name of the persistent disk to delete. */
1378213790
public Delete setDisk(java.lang.String disk) {
13791+
if (!getSuppressPatternChecks()) {
13792+
com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(),
13793+
"Parameter disk must conform to the pattern " +
13794+
"\\S{1,66}");
13795+
}
1378313796
this.disk = disk;
1378413797
return this;
1378513798
}
@@ -31025,7 +31038,7 @@ public Delete set(String parameterName, Object value) {
3102531038
* This request holds the parameters needed by the compute server. After setting any optional
3102631039
* parameters, call the {@link Get#execute()} method to invoke the remote operation.
3102731040
*
31028-
* @param operation Name of the Operations resource to return, or its unique numeric identifier.
31041+
* @param operation Name of the Operations resource to return. Parent is derived from this field.
3102931042
* @return the request
3103031043
*/
3103131044
public Get get(java.lang.String operation) throws java.io.IOException {
@@ -31052,7 +31065,7 @@ public class Get extends ComputeRequest<com.google.api.services.compute.model.Op
3105231065
* Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
3105331066
* called to initialize this instance immediately after invoking the constructor. </p>
3105431067
*
31055-
* @param operation Name of the Operations resource to return, or its unique numeric identifier.
31068+
* @param operation Name of the Operations resource to return. Parent is derived from this field.
3105631069
* @since 1.13
3105731070
*/
3105831071
protected Get(java.lang.String operation) {
@@ -31135,17 +31148,17 @@ public Get setUserIp(java.lang.String userIp) {
3113531148
return (Get) super.setUserIp(userIp);
3113631149
}
3113731150

31138-
/** Name of the Operations resource to return, or its unique numeric identifier. */
31151+
/** Name of the Operations resource to return. Parent is derived from this field. */
3113931152
@com.google.api.client.util.Key
3114031153
private java.lang.String operation;
3114131154

31142-
/** Name of the Operations resource to return, or its unique numeric identifier.
31155+
/** Name of the Operations resource to return. Parent is derived from this field.
3114331156
*/
3114431157
public java.lang.String getOperation() {
3114531158
return operation;
3114631159
}
3114731160

31148-
/** Name of the Operations resource to return, or its unique numeric identifier. */
31161+
/** Name of the Operations resource to return. Parent is derived from this field. */
3114931162
public Get setOperation(java.lang.String operation) {
3115031163
if (!getSuppressPatternChecks()) {
3115131164
com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(),
@@ -31156,17 +31169,17 @@ public Get setOperation(java.lang.String operation) {
3115631169
return this;
3115731170
}
3115831171

31159-
/** Parent ID for this request. */
31172+
/** Parent ID for this request. Not used. Parent is derived from resource_id. */
3116031173
@com.google.api.client.util.Key
3116131174
private java.lang.String parentId;
3116231175

31163-
/** Parent ID for this request.
31176+
/** Parent ID for this request. Not used. Parent is derived from resource_id.
3116431177
*/
3116531178
public java.lang.String getParentId() {
3116631179
return parentId;
3116731180
}
3116831181

31169-
/** Parent ID for this request. */
31182+
/** Parent ID for this request. Not used. Parent is derived from resource_id. */
3117031183
public Get setParentId(java.lang.String parentId) {
3117131184
this.parentId = parentId;
3117231185
return this;
@@ -117056,6 +117069,9 @@ public class Delete extends ComputeRequest<com.google.api.services.compute.model
117056117069
private final java.util.regex.Pattern REGION_PATTERN =
117057117070
java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?");
117058117071

117072+
private final java.util.regex.Pattern DISK_PATTERN =
117073+
java.util.regex.Pattern.compile("\\S{1,66}");
117074+
117059117075
/**
117060117076
* Deletes the specified regional persistent disk. Deleting a regional disk removes all the
117061117077
* replicas of its data permanently and is irreversible. However, deleting a disk does not delete
@@ -117088,6 +117104,11 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St
117088117104
"[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?");
117089117105
}
117090117106
this.disk = com.google.api.client.util.Preconditions.checkNotNull(disk, "Required parameter disk must be specified.");
117107+
if (!getSuppressPatternChecks()) {
117108+
com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(),
117109+
"Parameter disk must conform to the pattern " +
117110+
"\\S{1,66}");
117111+
}
117091117112
}
117092117113

117093117114
@Override
@@ -117204,6 +117225,11 @@ public java.lang.String getDisk() {
117204117225

117205117226
/** Name of the regional persistent disk to delete. */
117206117227
public Delete setDisk(java.lang.String disk) {
117228+
if (!getSuppressPatternChecks()) {
117229+
com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(),
117230+
"Parameter disk must conform to the pattern " +
117231+
"\\S{1,66}");
117232+
}
117207117233
this.disk = disk;
117208117234
return this;
117209117235
}
@@ -182602,6 +182628,31 @@ public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess
182602182628
return this;
182603182629
}
182604182630

182631+
/**
182632+
* The project id or project number in which the subnetwork is intended to be used. Only
182633+
* applied for Shared VPC. See [Shared VPC
182634+
* documentation](https://cloud.google.com/vpc/docs/shared-vpc/)
182635+
*/
182636+
@com.google.api.client.util.Key
182637+
private java.lang.String serviceProject;
182638+
182639+
/** The project id or project number in which the subnetwork is intended to be used. Only applied for
182640+
Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/)
182641+
*/
182642+
public java.lang.String getServiceProject() {
182643+
return serviceProject;
182644+
}
182645+
182646+
/**
182647+
* The project id or project number in which the subnetwork is intended to be used. Only
182648+
* applied for Shared VPC. See [Shared VPC
182649+
* documentation](https://cloud.google.com/vpc/docs/shared-vpc/)
182650+
*/
182651+
public ListUsable setServiceProject(java.lang.String serviceProject) {
182652+
this.serviceProject = serviceProject;
182653+
return this;
182654+
}
182655+
182605182656
@Override
182606182657
public ListUsable set(String parameterName, Object value) {
182607182658
return (ListUsable) super.set(parameterName, value);

clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendCustomMetric.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class BackendCustomMetric extends com.google.api.client.json.Generi
4747

4848
/**
4949
* Name of a custom utilization signal. The name must be 1-64 characters long and match the
50-
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a
50+
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a
5151
* lowercase letter, and all following characters must be a dash, period, underscore, lowercase
5252
* letter, or digit, except the last character, which cannot be a dash, period, or underscore. For
5353
* usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global
@@ -98,7 +98,7 @@ public BackendCustomMetric setMaxUtilization(java.lang.Float maxUtilization) {
9898

9999
/**
100100
* Name of a custom utilization signal. The name must be 1-64 characters long and match the
101-
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a
101+
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a
102102
* lowercase letter, and all following characters must be a dash, period, underscore, lowercase
103103
* letter, or digit, except the last character, which cannot be a dash, period, or underscore. For
104104
* usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global
@@ -112,7 +112,7 @@ public java.lang.String getName() {
112112

113113
/**
114114
* Name of a custom utilization signal. The name must be 1-64 characters long and match the
115-
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a
115+
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a
116116
* lowercase letter, and all following characters must be a dash, period, underscore, lowercase
117117
* letter, or digit, except the last character, which cannot be a dash, period, or underscore. For
118118
* usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global

clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -326,16 +326,20 @@ public final class BackendService extends com.google.api.client.json.GenericJson
326326
* redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load
327327
* balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host
328328
* selection times. For more information about Maglev, see
329-
* https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional
330-
* backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and
331-
* load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the
332-
* load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If
333-
* sessionAffinity is not configured—that is, if session affinity remains at the default value of
334-
* NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to
335-
* a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only
336-
* ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map
337-
* that is bound to target gRPC proxy that has validateForProxyless field set to true.
338-
* localityLbPolicy cannot be specified with haPolicy.
329+
* https://ai.google/research/pubs/pub44824 - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round
330+
* Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the
331+
* Backend Service responses are expected to contain non-standard HTTP response header field
332+
* Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via
333+
* the customMetrics field. This field is applicable to either: - A regional backend service with
334+
* the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to
335+
* INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to
336+
* INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not
337+
* configured—that is, if session affinity remains at the default value of NONE—then the default
338+
* value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than
339+
* NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are
340+
* supported when the backend service is referenced by a URL map that is bound to target gRPC
341+
* proxy that has validateForProxyless field set to true. localityLbPolicy cannot be specified
342+
* with haPolicy.
339343
* The value may be {@code null}.
340344
*/
341345
@com.google.api.client.util.Key
@@ -1219,16 +1223,20 @@ public BackendService setLocalityLbPolicies(java.util.List<BackendServiceLocalit
12191223
* redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load
12201224
* balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host
12211225
* selection times. For more information about Maglev, see
1222-
* https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional
1223-
* backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and
1224-
* load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the
1225-
* load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If
1226-
* sessionAffinity is not configured—that is, if session affinity remains at the default value of
1227-
* NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to
1228-
* a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only
1229-
* ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map
1230-
* that is bound to target gRPC proxy that has validateForProxyless field set to true.
1231-
* localityLbPolicy cannot be specified with haPolicy.
1226+
* https://ai.google/research/pubs/pub44824 - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round
1227+
* Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the
1228+
* Backend Service responses are expected to contain non-standard HTTP response header field
1229+
* Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via
1230+
* the customMetrics field. This field is applicable to either: - A regional backend service with
1231+
* the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to
1232+
* INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to
1233+
* INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not
1234+
* configured—that is, if session affinity remains at the default value of NONE—then the default
1235+
* value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than
1236+
* NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are
1237+
* supported when the backend service is referenced by a URL map that is bound to target gRPC
1238+
* proxy that has validateForProxyless field set to true. localityLbPolicy cannot be specified
1239+
* with haPolicy.
12321240
* @return value or {@code null} for none
12331241
*/
12341242
public java.lang.String getLocalityLbPolicy() {
@@ -1248,16 +1256,20 @@ public java.lang.String getLocalityLbPolicy() {
12481256
* redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load
12491257
* balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host
12501258
* selection times. For more information about Maglev, see
1251-
* https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional
1252-
* backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and
1253-
* load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the
1254-
* load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If
1255-
* sessionAffinity is not configured—that is, if session affinity remains at the default value of
1256-
* NONE—then the default value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to
1257-
* a value other than NONE, then the default value for localityLbPolicy is MAGLEV. Only
1258-
* ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map
1259-
* that is bound to target gRPC proxy that has validateForProxyless field set to true.
1260-
* localityLbPolicy cannot be specified with haPolicy.
1259+
* https://ai.google/research/pubs/pub44824 - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round
1260+
* Robin Load Balancing using weights computed from Backend reported Custom Metrics. If set, the
1261+
* Backend Service responses are expected to contain non-standard HTTP response header field
1262+
* Endpoint-Load-Metrics. The reported metrics to use for computing the weights are specified via
1263+
* the customMetrics field. This field is applicable to either: - A regional backend service with
1264+
* the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to
1265+
* INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to
1266+
* INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not
1267+
* configured—that is, if session affinity remains at the default value of NONE—then the default
1268+
* value for localityLbPolicy is ROUND_ROBIN. If session affinity is set to a value other than
1269+
* NONE, then the default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH are
1270+
* supported when the backend service is referenced by a URL map that is bound to target gRPC
1271+
* proxy that has validateForProxyless field set to true. localityLbPolicy cannot be specified
1272+
* with haPolicy.
12611273
* @param localityLbPolicy localityLbPolicy or {@code null} for none
12621274
*/
12631275
public BackendService setLocalityLbPolicy(java.lang.String localityLbPolicy) {

clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceCustomMetric.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class BackendServiceCustomMetric extends com.google.api.client.json
3838

3939
/**
4040
* Name of a custom utilization signal. The name must be 1-64 characters long and match the
41-
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a
41+
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a
4242
* lowercase letter, and all following characters must be a dash, period, underscore, lowercase
4343
* letter, or digit, except the last character, which cannot be a dash, period, or underscore. For
4444
* usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global
@@ -68,7 +68,7 @@ public BackendServiceCustomMetric setDryRun(java.lang.Boolean dryRun) {
6868

6969
/**
7070
* Name of a custom utilization signal. The name must be 1-64 characters long and match the
71-
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a
71+
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a
7272
* lowercase letter, and all following characters must be a dash, period, underscore, lowercase
7373
* letter, or digit, except the last character, which cannot be a dash, period, or underscore. For
7474
* usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global
@@ -82,7 +82,7 @@ public java.lang.String getName() {
8282

8383
/**
8484
* Name of a custom utilization signal. The name must be 1-64 characters long and match the
85-
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a
85+
* regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means that the first character must be a
8686
* lowercase letter, and all following characters must be a dash, period, underscore, lowercase
8787
* letter, or digit, except the last character, which cannot be a dash, period, or underscore. For
8888
* usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global

0 commit comments

Comments
 (0)