Skip to content

Commit da80249

Browse files
1 parent 28a1d2f commit da80249

29 files changed

Lines changed: 2691 additions & 12 deletions

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-rev20260821-2.0.0</version>
25+
<version>v1-rev20260828-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-rev20260821-2.0.0'
38+
implementation 'com.google.apis:google-api-services-compute:v1-rev20260828-2.0.0'
3939
}
4040
```
4141

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

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public final class BackendServiceHAPolicyLeaderNetworkEndpoint extends com.googl
3333
* The name of the VM instance of the leader network endpoint. The instance must already be
3434
* attached to the NEG specified in the haPolicy.leader.backendGroup.
3535
*
36-
* The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the
37-
* following IAM permission on the specified resource instance: compute.instances.use
36+
* The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization
37+
* requires the following IAM permission on the specified resource instance: compute.instances.use
3838
* The value may be {@code null}.
3939
*/
4040
@com.google.api.client.util.Key
@@ -44,8 +44,8 @@ public final class BackendServiceHAPolicyLeaderNetworkEndpoint extends com.googl
4444
* The name of the VM instance of the leader network endpoint. The instance must already be
4545
* attached to the NEG specified in the haPolicy.leader.backendGroup.
4646
*
47-
* The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the
48-
* following IAM permission on the specified resource instance: compute.instances.use
47+
* The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization
48+
* requires the following IAM permission on the specified resource instance: compute.instances.use
4949
* @return value or {@code null} for none
5050
*/
5151
public java.lang.String getInstance() {
@@ -56,8 +56,8 @@ public java.lang.String getInstance() {
5656
* The name of the VM instance of the leader network endpoint. The instance must already be
5757
* attached to the NEG specified in the haPolicy.leader.backendGroup.
5858
*
59-
* The name must be 1-63 characters long, and comply with RFC1035. Authorization requires the
60-
* following IAM permission on the specified resource instance: compute.instances.use
59+
* The value must be a valid RFC1035 name (1-63 characters) or a valid instance URL. Authorization
60+
* requires the following IAM permission on the specified resource instance: compute.instances.use
6161
* @param instance instance or {@code null} for none
6262
*/
6363
public BackendServiceHAPolicyLeaderNetworkEndpoint setInstance(java.lang.String instance) {
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.compute.model;
18+
19+
/**
20+
* A request to provide Assistant Scores. These scores determine VM obtainability and preemption
21+
* likelihood.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CapacityAdviceRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Policy specifying the distribution of instances across zones within the requested region.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private CapacityAdviceRequestDistributionPolicy distributionPolicy;
39+
40+
/**
41+
* Policy for instance selectors.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy;
46+
47+
/**
48+
* Instance properties for this request.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private CapacityAdviceRequestInstanceProperties instanceProperties;
53+
54+
/**
55+
* The number of VM instances to request.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.lang.Integer size;
60+
61+
/**
62+
* Policy specifying the distribution of instances across zones within the requested region.
63+
* @return value or {@code null} for none
64+
*/
65+
public CapacityAdviceRequestDistributionPolicy getDistributionPolicy() {
66+
return distributionPolicy;
67+
}
68+
69+
/**
70+
* Policy specifying the distribution of instances across zones within the requested region.
71+
* @param distributionPolicy distributionPolicy or {@code null} for none
72+
*/
73+
public CapacityAdviceRequest setDistributionPolicy(CapacityAdviceRequestDistributionPolicy distributionPolicy) {
74+
this.distributionPolicy = distributionPolicy;
75+
return this;
76+
}
77+
78+
/**
79+
* Policy for instance selectors.
80+
* @return value or {@code null} for none
81+
*/
82+
public CapacityAdviceRequestInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() {
83+
return instanceFlexibilityPolicy;
84+
}
85+
86+
/**
87+
* Policy for instance selectors.
88+
* @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none
89+
*/
90+
public CapacityAdviceRequest setInstanceFlexibilityPolicy(CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy) {
91+
this.instanceFlexibilityPolicy = instanceFlexibilityPolicy;
92+
return this;
93+
}
94+
95+
/**
96+
* Instance properties for this request.
97+
* @return value or {@code null} for none
98+
*/
99+
public CapacityAdviceRequestInstanceProperties getInstanceProperties() {
100+
return instanceProperties;
101+
}
102+
103+
/**
104+
* Instance properties for this request.
105+
* @param instanceProperties instanceProperties or {@code null} for none
106+
*/
107+
public CapacityAdviceRequest setInstanceProperties(CapacityAdviceRequestInstanceProperties instanceProperties) {
108+
this.instanceProperties = instanceProperties;
109+
return this;
110+
}
111+
112+
/**
113+
* The number of VM instances to request.
114+
* @return value or {@code null} for none
115+
*/
116+
public java.lang.Integer getSize() {
117+
return size;
118+
}
119+
120+
/**
121+
* The number of VM instances to request.
122+
* @param size size or {@code null} for none
123+
*/
124+
public CapacityAdviceRequest setSize(java.lang.Integer size) {
125+
this.size = size;
126+
return this;
127+
}
128+
129+
@Override
130+
public CapacityAdviceRequest set(String fieldName, Object value) {
131+
return (CapacityAdviceRequest) super.set(fieldName, value);
132+
}
133+
134+
@Override
135+
public CapacityAdviceRequest clone() {
136+
return (CapacityAdviceRequest) super.clone();
137+
}
138+
139+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.compute.model;
18+
19+
/**
20+
* Distribution policy.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class CapacityAdviceRequestDistributionPolicy extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or
34+
* BALANCED.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String targetShape;
39+
40+
/**
41+
* Zones where Capacity Advisor looks for capacity.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<CapacityAdviceRequestDistributionPolicyZoneConfiguration> zones;
46+
47+
/**
48+
* Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or
49+
* BALANCED.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getTargetShape() {
53+
return targetShape;
54+
}
55+
56+
/**
57+
* Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or
58+
* BALANCED.
59+
* @param targetShape targetShape or {@code null} for none
60+
*/
61+
public CapacityAdviceRequestDistributionPolicy setTargetShape(java.lang.String targetShape) {
62+
this.targetShape = targetShape;
63+
return this;
64+
}
65+
66+
/**
67+
* Zones where Capacity Advisor looks for capacity.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.util.List<CapacityAdviceRequestDistributionPolicyZoneConfiguration> getZones() {
71+
return zones;
72+
}
73+
74+
/**
75+
* Zones where Capacity Advisor looks for capacity.
76+
* @param zones zones or {@code null} for none
77+
*/
78+
public CapacityAdviceRequestDistributionPolicy setZones(java.util.List<CapacityAdviceRequestDistributionPolicyZoneConfiguration> zones) {
79+
this.zones = zones;
80+
return this;
81+
}
82+
83+
@Override
84+
public CapacityAdviceRequestDistributionPolicy set(String fieldName, Object value) {
85+
return (CapacityAdviceRequestDistributionPolicy) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public CapacityAdviceRequestDistributionPolicy clone() {
90+
return (CapacityAdviceRequestDistributionPolicy) super.clone();
91+
}
92+
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.compute.model;
18+
19+
/**
20+
* Zone configuration for the distribution policy.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class CapacityAdviceRequestDistributionPolicyZoneConfiguration extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The URL of the zone. It can be a partial or full URL. For example, the following are valid
34+
* values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone -
35+
* projects/project/zones/zone - zones/zone
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String zone;
40+
41+
/**
42+
* The URL of the zone. It can be a partial or full URL. For example, the following are valid
43+
* values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone -
44+
* projects/project/zones/zone - zones/zone
45+
* @return value or {@code null} for none
46+
*/
47+
public java.lang.String getZone() {
48+
return zone;
49+
}
50+
51+
/**
52+
* The URL of the zone. It can be a partial or full URL. For example, the following are valid
53+
* values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone -
54+
* projects/project/zones/zone - zones/zone
55+
* @param zone zone or {@code null} for none
56+
*/
57+
public CapacityAdviceRequestDistributionPolicyZoneConfiguration setZone(java.lang.String zone) {
58+
this.zone = zone;
59+
return this;
60+
}
61+
62+
@Override
63+
public CapacityAdviceRequestDistributionPolicyZoneConfiguration set(String fieldName, Object value) {
64+
return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.set(fieldName, value);
65+
}
66+
67+
@Override
68+
public CapacityAdviceRequestDistributionPolicyZoneConfiguration clone() {
69+
return (CapacityAdviceRequestDistributionPolicyZoneConfiguration) super.clone();
70+
}
71+
72+
}

0 commit comments

Comments
 (0)